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