public interface Persistable
Modifier and Type | Method and Description |
---|---|
void |
load(net.minecraft.nbt.NBTTagCompound nbt)
Restores a previous state of the object from the specified NBT tag.
|
void |
save(net.minecraft.nbt.NBTTagCompound nbt)
Saves the current state of the object into the specified NBT tag.
|
void load(net.minecraft.nbt.NBTTagCompound nbt)
nbt
- the tag to read the state from.void save(net.minecraft.nbt.NBTTagCompound nbt)
load(net.minecraft.nbt.NBTTagCompound)
is called with that tag.nbt
- the tag to save the state to.