public class DataCommandStorage extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DataCommandStorage.PersistentState |
Modifier and Type | Field and Description |
---|---|
private PersistentStateManager |
stateManager |
private Map<String,DataCommandStorage.PersistentState> |
storages |
Constructor and Description |
---|
DataCommandStorage(PersistentStateManager stateManager) |
Modifier and Type | Method and Description |
---|---|
private DataCommandStorage.PersistentState |
createStorage(String namespace,
String saveKey) |
CompoundTag |
get(Identifier id) |
Stream<Identifier> |
getIds() |
private static String |
getSaveKey(String namespace) |
void |
set(Identifier id,
CompoundTag tag) |
private final Map<String,DataCommandStorage.PersistentState> storages
private final PersistentStateManager stateManager
public DataCommandStorage(PersistentStateManager stateManager)
private DataCommandStorage.PersistentState createStorage(String namespace, String saveKey)
public CompoundTag get(Identifier id)
public void set(Identifier id, CompoundTag tag)
public Stream<Identifier> getIds()