Class SaveFormat

java.lang.Object
net.minecraft.world.storage.SaveFormat

public class SaveFormat extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • FORMATTER

      private static final DateTimeFormatter FORMATTER
    • OLD_SETTINGS_KEYS

      private static final com.google.common.collect.ImmutableList<String> OLD_SETTINGS_KEYS
    • baseDir

      private final Path baseDir
    • backupDir

      private final Path backupDir
    • fixerUpper

      private final com.mojang.datafixers.DataFixer fixerUpper
  • Constructor Details

    • SaveFormat

      public SaveFormat(Path p_i51277_1_, Path p_i51277_2_, com.mojang.datafixers.DataFixer p_i51277_3_)
  • Method Details

    • createDefault

      public static SaveFormat createDefault(Path p_237269_0_)
    • 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

      private static DatapackCodec readDataPackConfig(com.mojang.serialization.Dynamic<?> p_237258_0_)
    • getLevelList

      public List<WorldSummary> getLevelList() throws AnvilConverterException
      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,ServerWorldInfo> getLevelData(com.mojang.serialization.DynamicOps<INBT> p_237270_0_, DatapackCodec p_237270_1_)
    • getReader

      private static BiFunction<File,com.mojang.datafixers.DataFixer,ServerWorldInfo> getReader(com.mojang.serialization.DynamicOps<INBT> p_237270_0_, DatapackCodec p_237270_1_, @Nullable SaveFormat.LevelSave levelSave)
    • levelSummaryReader

      private BiFunction<File,com.mojang.datafixers.DataFixer,WorldSummary> levelSummaryReader(File p_237267_1_, boolean p_237267_2_)
    • isNewLevelIdAcceptable

      public boolean isNewLevelIdAcceptable(String p_207742_1_)
    • levelExists

      public boolean levelExists(String p_90033_1_)
    • getBaseDir

      public Path getBaseDir()
    • getBackupPath

      public Path getBackupPath()
    • createAccess

      public SaveFormat.LevelSave createAccess(String p_237274_1_) throws IOException
      Throws:
      IOException