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 streamCodec is for.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec<T> Gets a streamCodec created by the use of thePrimaryConstructorannotation.
-
Constructor Details
-
Codecs
public Codecs()
-
-
Method Details
-
get
Gets a streamCodec created by the use of thePrimaryConstructorannotation. Should be assigned to apublic static finalfield namedCODECin the same file.- Parameters:
mod- Your mods' classclazz- The class of which the streamCodec was created
-