Interface NBTStorage

All Known Subinterfaces:
MyPetPlayer

public interface NBTStorage
Something that can write itself to NBT and read itself back.
  • Method Details

    • save

      Writes this object's state.
      Returns:
      the state as an NBT compound
    • load

      void load(CompoundBinaryTag compound)
      Restores state previously written by save().
      Parameters:
      compound - the state to read