Class NBTProviderComponent
java.lang.Object
org.cyclops.cyclopscore.persist.nbt.NBTProviderComponent
- All Implemented Interfaces:
INBTProvider
Default implementation of
INBTProvider
as a component.-
Constructor Summary
-
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.
-
Constructor Details
-
NBTProviderComponent
-
-
Method Details
-
writeGeneratedFieldsToNBT
public void writeGeneratedFieldsToNBT(net.minecraft.nbt.CompoundTag tag) Description copied from interface:INBTProvider
Write the data in this provider to NBT.- Specified by:
writeGeneratedFieldsToNBT
in interfaceINBTProvider
- Parameters:
tag
- The tag to write to.
-
readGeneratedFieldsFromNBT
public void readGeneratedFieldsFromNBT(net.minecraft.nbt.CompoundTag tag) Description copied from interface:INBTProvider
Read data from the given tag to this provider.- Specified by:
readGeneratedFieldsFromNBT
in interfaceINBTProvider
- Parameters:
tag
- The tag to read from.
-