Class NBTProviderComponent

java.lang.Object
org.cyclops.cyclopscore.persist.nbt.NBTProviderComponent
All Implemented Interfaces:
INBTProvider

public class NBTProviderComponent extends Object implements INBTProvider
Default implementation of INBTProvider as a component.
  • Constructor Details

    • NBTProviderComponent

      public NBTProviderComponent(INBTProvider provider)
  • 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 interface INBTProvider
      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 interface INBTProvider
      Parameters:
      tag - The tag to read from.