Class DimensionDataStorage
java.lang.Object
net.minecraft.world.level.storage.DimensionDataStorage
-
Field Summary
Modifier and TypeFieldDescriptionprivate final File
private final com.mojang.datafixers.DataFixer
private static final org.slf4j.Logger
private final HolderLookup.Provider
-
Constructor Summary
ConstructorDescriptionDimensionDataStorage
(File p_78149_, com.mojang.datafixers.DataFixer p_78150_, HolderLookup.Provider p_336063_) -
Method Summary
Modifier and TypeMethodDescription<T extends SavedData>
TcomputeIfAbsent
(SavedData.Factory<T> p_297495_, String p_164864_) <T extends SavedData>
Tget
(SavedData.Factory<T> p_297465_, String p_164860_) private File
getDataFile
(String p_78157_) private boolean
isGzip
(PushbackInputStream p_78155_) private <T extends SavedData>
TreadSavedData
(BiFunction<CompoundTag, HolderLookup.Provider, T> p_335409_, DataFixTypes p_300231_, String p_164870_) readTagFromDisk
(String p_78159_, DataFixTypes p_301060_, int p_78160_) void
save()
void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
cache
-
fixerUpper
private final com.mojang.datafixers.DataFixer fixerUpper -
registries
-
dataFolder
-
-
Constructor Details
-
DimensionDataStorage
public DimensionDataStorage(File p_78149_, com.mojang.datafixers.DataFixer p_78150_, HolderLookup.Provider p_336063_)
-
-
Method Details
-
getDataFile
-
computeIfAbsent
-
get
-
readSavedData
@Nullable private <T extends SavedData> T readSavedData(BiFunction<CompoundTag, HolderLookup.Provider, T> p_335409_, DataFixTypes p_300231_, String p_164870_) -
set
-
readTagFromDisk
public CompoundTag readTagFromDisk(String p_78159_, DataFixTypes p_301060_, int p_78160_) throws IOException - Throws:
IOException
-
isGzip
- Throws:
IOException
-
save
public void save()
-