public abstract class WorldSavedData extends java.lang.Object implements INBTSerializable<CompoundNBT>
Modifier and Type | Field and Description |
---|---|
private boolean |
dirty |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.lang.String |
name |
Constructor and Description |
---|
WorldSavedData(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
deserializeNBT(CompoundNBT nbt) |
java.lang.String |
getName() |
boolean |
isDirty() |
void |
markDirty() |
abstract void |
read(CompoundNBT nbt) |
void |
save(java.io.File fileIn) |
CompoundNBT |
serializeNBT() |
void |
setDirty(boolean isDirty) |
abstract CompoundNBT |
write(CompoundNBT compound) |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.lang.String name
private boolean dirty
public abstract void read(CompoundNBT nbt)
public abstract CompoundNBT write(CompoundNBT compound)
public void markDirty()
public void setDirty(boolean isDirty)
public boolean isDirty()
public java.lang.String getName()
public void save(java.io.File fileIn)
public void deserializeNBT(CompoundNBT nbt)
deserializeNBT
in interface INBTSerializable<CompoundNBT>
public CompoundNBT serializeNBT()
serializeNBT
in interface INBTSerializable<CompoundNBT>