Package etithespirit.orimod.util.nbt
Interface ISimpleNBTSerializable
public interface ISimpleNBTSerializable
Allows the implementor to read to and write from a
CompoundTag
instance.- Author:
- Eti
-
Method Summary
Modifier and TypeMethodDescriptionvoid
readFromNBT
(net.minecraft.nbt.CompoundTag tag) Reads the data from the nbt tag and sets the values in this class from it.net.minecraft.nbt.CompoundTag
writeToNBT
(net.minecraft.nbt.CompoundTag tag) Writes the data of this class to the given nbt tag.
-
Method Details
-
writeToNBT
net.minecraft.nbt.CompoundTag writeToNBT(net.minecraft.nbt.CompoundTag tag) Writes the data of this class to the given nbt tag.- Parameters:
tag
- The compound tag to write to.- Returns:
- The modified tag.
-
readFromNBT
void readFromNBT(net.minecraft.nbt.CompoundTag tag) Reads the data from the nbt tag and sets the values in this class from it.- Parameters:
tag
- The tag to read from.
-