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

    Modifier and Type
    Method
    Description
    com.mojang.serialization.Codec<D>
    Gets a codec for serializing data of type D.
    net.minecraft.util.Identifier
    Gets a unique identifier for this data type.
  • 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