Package org.moddingx.libx.annotation.api
Class Codecs
java.lang.Object
org.moddingx.libx.annotation.api.Codecs
Class to retrieve generated
codecs
. They should normally be assigned to a
public static final
field in the class that the codec is for.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec<T>
Gets a codec created by the use of thePrimaryConstructor
annotation.
-
Constructor Details
-
Codecs
public Codecs()
-
-
Method Details
-
get
Gets a codec created by the use of thePrimaryConstructor
annotation. Should be assigned to apublic static final
field namedCODEC
in the same file.- Parameters:
mod
- Your mods' classclazz
- The class of which the codec was created
-