static class DataCommandStorage.PersistentState extends PersistentState
Modifier and Type | Field and Description |
---|---|
private Map<String,CompoundTag> |
map |
Constructor and Description |
---|
PersistentState(String key) |
Modifier and Type | Method and Description |
---|---|
void |
fromTag(CompoundTag tag) |
CompoundTag |
get(String name) |
Stream<Identifier> |
getIds(String namespace) |
void |
set(String name,
CompoundTag tag) |
CompoundTag |
toTag(CompoundTag tag) |
private final Map<String,CompoundTag> map
public PersistentState(String key)
public void fromTag(CompoundTag tag)
fromTag
in class PersistentState
public CompoundTag toTag(CompoundTag tag)
toTag
in class PersistentState
public CompoundTag get(String name)
public void set(String name, CompoundTag tag)
public Stream<Identifier> getIds(String namespace)