Package net.minecraft.world.storage
Class SaveFormat
java.lang.Object
net.minecraft.world.storage.SaveFormat
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Path
private final Path
private final com.mojang.datafixers.DataFixer
private static final DateTimeFormatter
private static final org.apache.logging.log4j.Logger
private static final com.google.common.collect.ImmutableList<String>
-
Constructor Summary
ConstructorDescriptionSaveFormat
(Path p_i51277_1_, Path p_i51277_2_, com.mojang.datafixers.DataFixer p_i51277_3_) -
Method Summary
Modifier and TypeMethodDescriptioncreateAccess
(String p_237274_1_) static SaveFormat
createDefault
(Path p_237269_0_) private static DatapackCodec
getDataPacks
(File p_237272_0_, com.mojang.datafixers.DataFixer p_237272_1_) private static BiFunction<File,
com.mojang.datafixers.DataFixer, ServerWorldInfo> getLevelData
(com.mojang.serialization.DynamicOps<INBT> p_237270_0_, DatapackCodec p_237270_1_) private static BiFunction<File,
com.mojang.datafixers.DataFixer, ServerWorldInfo> getReader
(com.mojang.serialization.DynamicOps<INBT> p_237270_0_, DatapackCodec p_237270_1_, SaveFormat.LevelSave levelSave) private int
boolean
isNewLevelIdAcceptable
(String p_207742_1_) boolean
levelExists
(String p_90033_1_) private BiFunction<File,
com.mojang.datafixers.DataFixer, WorldSummary> levelSummaryReader
(File p_237267_1_, boolean p_237267_2_) private static DatapackCodec
readDataPackConfig
(com.mojang.serialization.Dynamic<?> p_237258_0_) private <T> T
readLevelData
(File p_237266_1_, BiFunction<File, com.mojang.datafixers.DataFixer, T> p_237266_2_) private static <T> com.mojang.datafixers.util.Pair<DimensionGeneratorSettings,
com.mojang.serialization.Lifecycle> readWorldGenSettings
(com.mojang.serialization.Dynamic<T> p_237259_0_, com.mojang.datafixers.DataFixer p_237259_1_, int p_237259_2_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
FORMATTER
-
OLD_SETTINGS_KEYS
-
baseDir
-
backupDir
-
fixerUpper
private final com.mojang.datafixers.DataFixer fixerUpper
-
-
Constructor Details
-
SaveFormat
-
-
Method Details
-
createDefault
-
readWorldGenSettings
private static <T> com.mojang.datafixers.util.Pair<DimensionGeneratorSettings,com.mojang.serialization.Lifecycle> readWorldGenSettings(com.mojang.serialization.Dynamic<T> p_237259_0_, com.mojang.datafixers.DataFixer p_237259_1_, int p_237259_2_) -
readDataPackConfig
-
getLevelList
- Throws:
AnvilConverterException
-
getStorageVersion
private int getStorageVersion() -
readLevelData
@Nullable private <T> T readLevelData(File p_237266_1_, BiFunction<File, com.mojang.datafixers.DataFixer, T> p_237266_2_) -
getDataPacks
@Nullable private static DatapackCodec getDataPacks(File p_237272_0_, com.mojang.datafixers.DataFixer p_237272_1_) -
getLevelData
private static BiFunction<File,com.mojang.datafixers.DataFixer, getLevelDataServerWorldInfo> (com.mojang.serialization.DynamicOps<INBT> p_237270_0_, DatapackCodec p_237270_1_) -
getReader
private static BiFunction<File,com.mojang.datafixers.DataFixer, getReaderServerWorldInfo> (com.mojang.serialization.DynamicOps<INBT> p_237270_0_, DatapackCodec p_237270_1_, @Nullable SaveFormat.LevelSave levelSave) -
levelSummaryReader
private BiFunction<File,com.mojang.datafixers.DataFixer, levelSummaryReaderWorldSummary> (File p_237267_1_, boolean p_237267_2_) -
isNewLevelIdAcceptable
-
levelExists
-
getBaseDir
-
getBackupPath
-
createAccess
- Throws:
IOException
-