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
-
Constructor Summary
ConstructorDescriptionDimensionDataStorage
(File p_78149_, com.mojang.datafixers.DataFixer p_78150_) -
Method Summary
Modifier and TypeMethodDescription<T extends SavedData>
TcomputeIfAbsent
(Function<CompoundTag, T> p_164862_, Supplier<T> p_164863_, String p_164864_) <T extends SavedData>
Tget
(Function<CompoundTag, T> p_164859_, String p_164860_) private File
getDataFile
(String p_78157_) private boolean
isGzip
(PushbackInputStream p_78155_) private <T extends SavedData>
TreadSavedData
(Function<CompoundTag, T> p_164869_, String p_164870_) readTagFromDisk
(String p_78159_, 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 -
dataFolder
-
-
Constructor Details
-
DimensionDataStorage
-
-
Method Details
-
getDataFile
-
computeIfAbsent
public <T extends SavedData> T computeIfAbsent(Function<CompoundTag, T> p_164862_, Supplier<T> p_164863_, String p_164864_) -
get
-
readSavedData
@Nullable private <T extends SavedData> T readSavedData(Function<CompoundTag, T> p_164869_, String p_164870_) -
set
-
readTagFromDisk
- Throws:
IOException
-
isGzip
- Throws:
IOException
-
save
public void save()
-