Class LevelStorageSource

java.lang.Object
net.minecraft.world.level.storage.LevelStorageSource

public class LevelStorageSource extends Object
  • Field Details

    • LOGGER

      static final org.slf4j.Logger LOGGER
    • FORMATTER

      static final DateTimeFormatter FORMATTER
    • ICON_FILENAME

      private static final String ICON_FILENAME
      See Also:
    • OLD_SETTINGS_KEYS

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

      private static final String TAG_DATA
      See Also:
    • baseDir

      final Path baseDir
    • backupDir

      private final Path backupDir
    • fixerUpper

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

    • LevelStorageSource

      public LevelStorageSource(Path p_78199_, Path p_78200_, com.mojang.datafixers.DataFixer p_78201_)
  • Method Details

    • createDefault

      public static LevelStorageSource createDefault(Path p_78243_)
    • readWorldGenSettings

      private static <T> com.mojang.datafixers.util.Pair<WorldGenSettings,com.mojang.serialization.Lifecycle> readWorldGenSettings(com.mojang.serialization.Dynamic<T> p_78205_, com.mojang.datafixers.DataFixer p_78206_, int p_78207_)
    • readDataPackConfig

      private static DataPackConfig readDataPackConfig(com.mojang.serialization.Dynamic<?> p_78203_)
    • getName

      public String getName()
    • getLevelList

      public List<LevelSummary> getLevelList() throws LevelStorageException
      Throws:
      LevelStorageException
    • getStorageVersion

      private int getStorageVersion()
    • readLevelData

      @Nullable <T> T readLevelData(File p_78230_, BiFunction<File,com.mojang.datafixers.DataFixer,T> p_78231_)
    • getDataPacks

      @Nullable private static DataPackConfig getDataPacks(File p_78253_, com.mojang.datafixers.DataFixer p_78254_)
    • getLevelData

      static BiFunction<File,com.mojang.datafixers.DataFixer,PrimaryLevelData> getLevelData(com.mojang.serialization.DynamicOps<Tag> p_211738_, DataPackConfig p_211739_, com.mojang.serialization.Lifecycle p_211740_)
    • levelSummaryReader

      BiFunction<File,com.mojang.datafixers.DataFixer,LevelSummary> levelSummaryReader(File p_78233_, boolean p_78234_)
    • readLightweightData

      @Nullable private static Tag readLightweightData(File p_202313_) throws IOException
      Throws:
      IOException
    • isNewLevelIdAcceptable

      public boolean isNewLevelIdAcceptable(String p_78241_)
    • levelExists

      public boolean levelExists(String p_78256_)
    • getBaseDir

      public Path getBaseDir()
    • getBackupPath

      public Path getBackupPath()
    • createAccess

      public LevelStorageSource.LevelStorageAccess createAccess(String p_78261_) throws IOException
      Throws:
      IOException