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
(SavedData.Factory<T> p_294124_, String p_164864_) <T extends SavedData>
Tget
(SavedData.Factory<T> p_295091_, 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_, DataFixTypes p_295832_, String p_164870_) readTagFromDisk
(String p_78159_, DataFixTypes p_295038_, 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
-
get
-
readSavedData
@Nullable private <T extends SavedData> T readSavedData(Function<CompoundTag, T> p_164869_, @Nullable DataFixTypes p_295832_, String p_164870_) -
set
-
readTagFromDisk
public CompoundTag readTagFromDisk(String p_78159_, @Nullable DataFixTypes p_295038_, int p_78160_) throws IOException - Throws:
IOException
-
isGzip
- Throws:
IOException
-
save
public void save()
-