Package net.minecraft.world.storage
Class DimensionSavedDataManager
java.lang.Object
net.minecraft.world.storage.DimensionSavedDataManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<String,
WorldSavedData> private final File
private final com.mojang.datafixers.DataFixer
private static final org.apache.logging.log4j.Logger
-
Constructor Summary
ConstructorDescriptionDimensionSavedDataManager
(File p_i51279_1_, com.mojang.datafixers.DataFixer p_i51279_2_) -
Method Summary
Modifier and TypeMethodDescription<T extends WorldSavedData>
TcomputeIfAbsent
(Supplier<T> p_215752_1_, String p_215752_2_) <T extends WorldSavedData>
Tprivate File
getDataFile
(String p_215754_1_) private boolean
isGzip
(PushbackInputStream p_215756_1_) private <T extends WorldSavedData>
TreadSavedData
(Supplier<T> p_223409_1_, String p_223409_2_) readTagFromDisk
(String p_215755_1_, int p_215755_2_) void
save()
void
set
(WorldSavedData p_215757_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
cache
-
fixerUpper
private final com.mojang.datafixers.DataFixer fixerUpper -
dataFolder
-
-
Constructor Details
-
DimensionSavedDataManager
-
-
Method Details
-
getDataFile
-
computeIfAbsent
-
get
-
readSavedData
@Nullable private <T extends WorldSavedData> T readSavedData(Supplier<T> p_223409_1_, String p_223409_2_) -
set
-
readTagFromDisk
- Throws:
IOException
-
isGzip
- Throws:
IOException
-
save
public void save()
-