Package net.minecraft.world.storage
Class CommandStorage.Container
- java.lang.Object
-
- net.minecraft.world.storage.WorldSavedData
-
- net.minecraft.world.storage.CommandStorage.Container
-
- All Implemented Interfaces:
INBTSerializable<CompoundNBT>
- Enclosing class:
- CommandStorage
static class CommandStorage.Container extends WorldSavedData
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,CompoundNBT>
storage
-
Constructor Summary
Constructors Constructor Description Container(java.lang.String p_i225884_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompoundNBT
get(java.lang.String p_227493_1_)
java.util.stream.Stream<ResourceLocation>
getKeys(java.lang.String p_227497_1_)
void
load(CompoundNBT p_76184_1_)
void
put(java.lang.String p_227495_1_, CompoundNBT p_227495_2_)
CompoundNBT
save(CompoundNBT p_189551_1_)
-
Methods inherited from class net.minecraft.world.storage.WorldSavedData
deserializeNBT, getId, isDirty, save, serializeNBT, setDirty, setDirty
-
-
-
-
Field Detail
-
storage
private final java.util.Map<java.lang.String,CompoundNBT> storage
-
-
Method Detail
-
load
public void load(CompoundNBT p_76184_1_)
- Specified by:
load
in classWorldSavedData
-
save
public CompoundNBT save(CompoundNBT p_189551_1_)
- Specified by:
save
in classWorldSavedData
-
get
public CompoundNBT get(java.lang.String p_227493_1_)
-
put
public void put(java.lang.String p_227495_1_, CompoundNBT p_227495_2_)
-
getKeys
public java.util.stream.Stream<ResourceLocation> getKeys(java.lang.String p_227497_1_)
-
-