Class DisplayState.Serializer
java.lang.Object
net.darkhax.botanypots.data.displaystate.DisplayState.Serializer
- All Implemented Interfaces:
net.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
- Enclosing class:
- DisplayState
public static class DisplayState.Serializer
extends Object
implements net.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromByteBuf(net.minecraft.network.FriendlyByteBuf buffer) fromJSON(com.google.gson.JsonElement json) fromNBT(net.minecraft.nbt.Tag nbt) voidtoByteBuf(net.minecraft.network.FriendlyByteBuf buffer, DisplayState toWrite) com.google.gson.JsonElementtoJSON(DisplayState toWrite) net.minecraft.nbt.TagtoNBT(DisplayState toWrite) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.darkhax.bookshelf.api.serialization.ISerializer
fromByteBufList, fromByteBufNullable, fromByteBufOptional, fromByteBufWeighted, fromByteBufWeightedList, fromJSON, fromJSON, fromJSON, fromJSONList, fromJSONList, fromJSONList, fromJSONList, fromJSONNullable, fromJSONNullable, fromJSONOptional, fromJSONOptional, fromJSONSet, fromJSONSet, fromJSONSet, fromJSONSet, fromJSONString, fromJSONWeighted, fromJSONWeightedList, fromNBT, fromNBT, fromNBTList, fromNBTList, readByteBufSet, toByteBufList, toByteBufNullable, toByteBufOptional, toByteBufWeighted, toByteBufWeightedList, toJSON, toJSONList, toJSONList, toJSONNullable, toJSONNullable, toJSONOptional, toJSONOptional, toJSONOptional, toJSONSet, toJSONString, toJSONWeighted, toJSONWeightedList, toNBT, toNBTList, toNBTList, writeByteBufSet
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
fromJSON
- Specified by:
fromJSONin interfacenet.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
-
toJSON
- Specified by:
toJSONin interfacenet.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
-
fromByteBuf
- Specified by:
fromByteBufin interfacenet.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
-
toByteBuf
- Specified by:
toByteBufin interfacenet.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
-
toNBT
- Specified by:
toNBTin interfacenet.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
-
fromNBT
- Specified by:
fromNBTin interfacenet.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
-