Interface INBTProvider
- All Known Implementing Classes:
CyclopsBlockEntity
,GlobalCounters
,NBTProviderComponent
,WorldStorage
public interface INBTProvider
Classes tagged with this interface can have their fields persisted to NBT when they are annotated with
NBTPersist
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
readGeneratedFieldsFromNBT
(net.minecraft.nbt.CompoundTag tag) Read data from the given tag to this provider.void
writeGeneratedFieldsToNBT
(net.minecraft.nbt.CompoundTag tag) Write the data in this provider to NBT.
-
Method Details
-
writeGeneratedFieldsToNBT
void writeGeneratedFieldsToNBT(net.minecraft.nbt.CompoundTag tag) Write the data in this provider to NBT.- Parameters:
tag
- The tag to write to.
-
readGeneratedFieldsFromNBT
void readGeneratedFieldsFromNBT(net.minecraft.nbt.CompoundTag tag) Read data from the given tag to this provider.- Parameters:
tag
- The tag to read from.
-