Class PMWSavedData

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

public class PMWSavedData extends net.minecraft.world.level.saveddata.SavedData
The SavedData for PMWeatherAPI
Since:
0.14.15.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
     
    PMWSavedData(net.minecraft.nbt.CompoundTag tag)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.saveddata.SavedData.Factory<PMWSavedData>
    Gets the factory for loading the saved data
    net.minecraft.nbt.CompoundTag
    Gets the data loaded from the level
    boolean
     
    net.minecraft.nbt.CompoundTag
    save(net.minecraft.nbt.CompoundTag compoundTag, net.minecraft.core.HolderLookup.Provider provider)
     
    void
    Sets the radar storage associated with this level

    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

    • PMWSavedData

      public PMWSavedData()
    • PMWSavedData

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

    • factory

      public static net.minecraft.world.level.saveddata.SavedData.Factory<PMWSavedData> factory()
      Gets the factory for loading the saved data
      Returns:
      A SavedData.Factory for PMWSavedData
      Since:
      0.14.15.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
    • setRadarStorage

      public void setRadarStorage(RadarStorage radarStorage)
      Sets the radar storage associated with this level
      Parameters:
      radarStorage - The associated level's RadarStorage
      Since:
      0.14.15.3
    • getTag

      public net.minecraft.nbt.CompoundTag getTag()
      Gets the data loaded from the level
      Since:
      0.14.15.3
    • isDirty

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