Package com.samsthenerd.inline.api
Interface InlineData.InlineDataType<D extends InlineData<D>>
- All Known Implementing Classes:
EntityInlineData.EntityDataType
,ItemInlineData.ItemDataType
,ModIconData.ModIconDataType
,PlayerHeadData.PlayerHeadDataType
,SpriteInlineData.SpriteDataType
- Enclosing interface:
- InlineData<Self extends InlineData<Self>>
public static interface InlineData.InlineDataType<D extends InlineData<D>>
The type of some InlineData.
Used mostly for deserialization.
Make sure to register each type with InlineAPI.addDataType(InlineDataType)
-
Method Summary
-
Method Details
-
getId
net.minecraft.util.Identifier getId()Gets a unique identifier for this data type. Used for deserialization- Returns:
- id
-
getCodec
com.mojang.serialization.Codec<D> getCodec()Gets a codec for serializing data of type D.- Returns:
- codec
-