Class NBTProviderComponent
java.lang.Object
org.cyclops.cyclopscore.persist.nbt.NBTProviderComponent
- All Implemented Interfaces:
INBTProvider
Default implementation of
INBTProvider as a component.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreadGeneratedFieldsFromNBT(net.minecraft.nbt.CompoundTag tag) Read data from the given tag to this provider.voidwriteGeneratedFieldsToNBT(net.minecraft.nbt.CompoundTag tag) Write the data in this provider to NBT.
-
Constructor Details
-
NBTProviderComponent
-
-
Method Details
-
writeGeneratedFieldsToNBT
public void writeGeneratedFieldsToNBT(net.minecraft.nbt.CompoundTag tag) Description copied from interface:INBTProviderWrite the data in this provider to NBT.- Specified by:
writeGeneratedFieldsToNBTin interfaceINBTProvider- Parameters:
tag- The tag to write to.
-
readGeneratedFieldsFromNBT
public void readGeneratedFieldsFromNBT(net.minecraft.nbt.CompoundTag tag) Description copied from interface:INBTProviderRead data from the given tag to this provider.- Specified by:
readGeneratedFieldsFromNBTin interfaceINBTProvider- Parameters:
tag- The tag to read from.
-