public abstract class WorldSavedData extends java.lang.Object implements INBTSerializable<NBTTagCompound>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
mapName
The name of the map data nbt
|
Constructor and Description |
---|
WorldSavedData(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
deserializeNBT(NBTTagCompound nbt) |
boolean |
isDirty()
Whether this MapDataBase needs saving to disk.
|
void |
markDirty()
Marks this MapDataBase dirty, to be saved to disk when the level next saves.
|
abstract void |
readFromNBT(NBTTagCompound nbt)
reads in data from the NBTTagCompound into this MapDataBase
|
NBTTagCompound |
serializeNBT() |
void |
setDirty(boolean isDirty)
Sets the dirty state of this MapDataBase, whether it needs saving to disk.
|
abstract NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
public abstract void readFromNBT(NBTTagCompound nbt)
public abstract NBTTagCompound writeToNBT(NBTTagCompound compound)
public void markDirty()
public void setDirty(boolean isDirty)
public boolean isDirty()
public void deserializeNBT(NBTTagCompound nbt)
deserializeNBT
in interface INBTSerializable<NBTTagCompound>
public NBTTagCompound serializeNBT()
serializeNBT
in interface INBTSerializable<NBTTagCompound>