Package com.samsthenerd.inline.api.data
Class PlayerHeadData.PlayerHeadDataType
java.lang.Object
com.samsthenerd.inline.api.data.PlayerHeadData.PlayerHeadDataType
- All Implemented Interfaces:
InlineData.InlineDataType<PlayerHeadData>
- Enclosing class:
- PlayerHeadData
public static class PlayerHeadData.PlayerHeadDataType
extends Object
implements InlineData.InlineDataType<PlayerHeadData>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json) com.mojang.serialization.Codec<PlayerHeadData>
getCodec()
Gets a codec for serializing data of type D.net.minecraft.util.Identifier
getId()
Gets a unique identifier for this data type.com.google.gson.JsonElement
serializeData
(PlayerHeadData data)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
PlayerHeadDataType
public PlayerHeadDataType()
-
-
Method Details
-
getId
public net.minecraft.util.Identifier getId()Description copied from interface:InlineData.InlineDataType
Gets a unique identifier for this data type. Used for deserialization- Specified by:
getId
in interfaceInlineData.InlineDataType<PlayerHeadData>
- Returns:
- id
-
getCodec
Description copied from interface:InlineData.InlineDataType
Gets a codec for serializing data of type D.- Specified by:
getCodec
in interfaceInlineData.InlineDataType<PlayerHeadData>
- Returns:
- codec
-
deserialize
-
serializeData
-