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_324180_) -
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
(BiFunction<CompoundTag, HolderLookup.Provider, T> p_324609_, 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 -
registries
-
dataFolder
-
-
Constructor Details
-
DimensionDataStorage
public DimensionDataStorage(File p_78149_, com.mojang.datafixers.DataFixer p_78150_, HolderLookup.Provider p_324180_)
-
-
Method Details
-
getDataFile
-
computeIfAbsent
-
get
-
readSavedData
@Nullable private <T extends SavedData> T readSavedData(BiFunction<CompoundTag, HolderLookup.Provider, T> p_324609_, @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()
-