Package de.Keyle.MyPet.api.util
Interface NBTStorage
- All Known Subinterfaces:
MyPetPlayer
public interface NBTStorage
Something that can write itself to NBT and read itself back.
-
Method Summary
Modifier and TypeMethodDescriptionvoidload(CompoundBinaryTag compound) Restores state previously written bysave().save()Writes this object's state.
-
Method Details
-
save
CompoundBinaryTag save()Writes this object's state.- Returns:
- the state as an NBT compound
-
load
Restores state previously written bysave().- Parameters:
compound- the state to read
-