Class PMWStorageSavedData

java.lang.Object
net.minecraft.world.level.saveddata.SavedData
net.nullved.pmweatherapi.data.PMWStorageSavedData

public class PMWStorageSavedData extends net.minecraft.world.level.saveddata.SavedData
A SavedData instance for IStorages
Since:
0.15.3.3
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.saveddata.SavedData

    net.minecraft.world.level.saveddata.SavedData.Factory<T extends net.minecraft.world.level.saveddata.SavedData>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    PMWStorageSavedData(net.minecraft.nbt.CompoundTag tag)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.saveddata.SavedData.Factory<PMWStorageSavedData>
    Gets the factory for loading the SavedData
    net.minecraft.nbt.CompoundTag
    Gets the SavedData from the Level
    boolean
     
    net.minecraft.nbt.CompoundTag
    save(net.minecraft.nbt.CompoundTag compoundTag, net.minecraft.core.HolderLookup.Provider provider)
     
    void
    setStorage(IStorage<?> storage)
    Sets the IStorage associated with this Level or dimension

    Methods inherited from class net.minecraft.world.level.saveddata.SavedData

    save, setDirty, setDirty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PMWStorageSavedData

      public PMWStorageSavedData()
    • PMWStorageSavedData

      public PMWStorageSavedData(net.minecraft.nbt.CompoundTag tag)
  • Method Details

    • factory

      public static net.minecraft.world.level.saveddata.SavedData.Factory<PMWStorageSavedData> factory()
      Gets the factory for loading the SavedData
      Returns:
      A SavedData.Factory for PMWStorageSavedData
      Since:
      0.15.3.3
    • save

      public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag compoundTag, net.minecraft.core.HolderLookup.Provider provider)
      Specified by:
      save in class net.minecraft.world.level.saveddata.SavedData
    • setStorage

      public void setStorage(IStorage<?> storage)
      Sets the IStorage associated with this Level or dimension
      Parameters:
      storage - The IStorage
      Since:
      0.15.3.3
    • getTag

      public net.minecraft.nbt.CompoundTag getTag()
      Gets the SavedData from the Level
      Returns:
      A data CompoundTag
      Since:
      0.15.3.3
    • isDirty

      public boolean isDirty()
      Overrides:
      isDirty in class net.minecraft.world.level.saveddata.SavedData