Class CustomStorageData

java.lang.Object
net.nullved.pmweatherapi.storage.data.StorageData
net.nullved.pmweatherapi.example.storage.CustomStorageData
All Implemented Interfaces:
IStorageData

public class CustomStorageData extends StorageData
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
  • Constructor Details

    • CustomStorageData

      public CustomStorageData(net.minecraft.core.BlockPos pos, String string)
  • Method Details

    • getId

      public net.minecraft.resources.ResourceLocation getId()
    • serializeToNBT

      public net.minecraft.nbt.CompoundTag serializeToNBT()
      Description copied from class: StorageData
      Serialize this storage data to NBT
      Specified by:
      serializeToNBT in interface IStorageData
      Overrides:
      serializeToNBT in class StorageData
      Returns:
      A CompoundTag of the serialized data
    • deserializeFromNBT

      public static CustomStorageData deserializeFromNBT(net.minecraft.nbt.CompoundTag tag, int version)