Class WorldSavedData

java.lang.Object
net.minecraft.src.WorldSavedData
Direct Known Subclasses:
MapData, MapGenStructureData, ScoreboardSaveData, VillageCollection

public abstract class WorldSavedData extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    The name of the map data nbt
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether this MapDataBase needs saving to disk.
    void
    Marks this MapDataBase dirty, to be saved to disk when the level next saves.
    abstract void
    reads in data from the NBTTagCompound into this MapDataBase
    void
    setDirty(boolean par1)
    Sets the dirty state of this MapDataBase, whether it needs saving to disk.
    abstract void
    write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities

    Methods inherited from class java.lang.Object

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

    • mapName

      public final String mapName
      The name of the map data nbt
  • Constructor Details

    • WorldSavedData

      public WorldSavedData(String par1Str)
  • Method Details

    • readFromNBT

      public abstract void readFromNBT(NBTTagCompound var1)
      reads in data from the NBTTagCompound into this MapDataBase
    • writeToNBT

      public abstract void writeToNBT(NBTTagCompound var1)
      write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities
    • markDirty

      public void markDirty()
      Marks this MapDataBase dirty, to be saved to disk when the level next saves.
    • setDirty

      public void setDirty(boolean par1)
      Sets the dirty state of this MapDataBase, whether it needs saving to disk.
    • isDirty

      public boolean isDirty()
      Whether this MapDataBase needs saving to disk.