public abstract class PersistentState extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
dirty |
private String |
key |
private static Logger |
LOGGER |
Constructor and Description |
---|
PersistentState(String key) |
Modifier and Type | Method and Description |
---|---|
abstract void |
fromTag(CompoundTag tag) |
String |
getId() |
boolean |
isDirty() |
void |
markDirty() |
void |
save(File file) |
void |
setDirty(boolean dirty) |
abstract CompoundTag |
toTag(CompoundTag tag) |
private static final Logger LOGGER
private final String key
private boolean dirty
public PersistentState(String key)
public abstract void fromTag(CompoundTag tag)
public abstract CompoundTag toTag(CompoundTag tag)
public void markDirty()
public void setDirty(boolean dirty)
public boolean isDirty()
public String getId()
public void save(File file)