Class SerializerHarvestEntry

java.lang.Object
net.darkhax.botanypots.data.recipes.crop.SerializerHarvestEntry
All Implemented Interfaces:
net.darkhax.bookshelf.api.serialization.ISerializer<HarvestEntry>

public final class SerializerHarvestEntry extends Object implements net.darkhax.bookshelf.api.serialization.ISerializer<HarvestEntry>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static net.darkhax.bookshelf.api.serialization.ISerializer<HarvestEntry>
     
  • 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, HarvestEntry 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
  • Field Details

    • SERIALIZER

      public static net.darkhax.bookshelf.api.serialization.ISerializer<HarvestEntry> SERIALIZER
  • Constructor Details

    • SerializerHarvestEntry

      public SerializerHarvestEntry()
  • Method Details

    • fromJSON

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

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

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

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

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

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