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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromByteBuf(net.minecraft.network.FriendlyByteBuf buffer)
     
    fromJSON(com.google.gson.JsonElement json)
     
    fromNBT(net.minecraft.nbt.Tag nbt)
     
    void
    toByteBuf(net.minecraft.network.FriendlyByteBuf buffer, DisplayState toWrite)
     
    com.google.gson.JsonElement
     
    net.minecraft.nbt.Tag
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public DisplayState fromJSON(com.google.gson.JsonElement json)
      Specified by:
      fromJSON in interface net.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
    • toJSON

      public com.google.gson.JsonElement toJSON(DisplayState toWrite)
      Specified by:
      toJSON in interface net.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
    • fromByteBuf

      public DisplayState fromByteBuf(net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      fromByteBuf in interface net.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
    • toByteBuf

      public void toByteBuf(net.minecraft.network.FriendlyByteBuf buffer, DisplayState toWrite)
      Specified by:
      toByteBuf in interface net.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
    • toNBT

      public net.minecraft.nbt.Tag toNBT(DisplayState toWrite)
      Specified by:
      toNBT in interface net.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>
    • fromNBT

      public DisplayState fromNBT(net.minecraft.nbt.Tag nbt)
      Specified by:
      fromNBT in interface net.darkhax.bookshelf.api.serialization.ISerializer<DisplayState>