Class LevelStorageSource
java.lang.Object
net.minecraft.world.level.storage.LevelStorageSource
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Path(package private) final Path(package private) final com.mojang.datafixers.DataFixer(package private) static final DateTimeFormatterprivate static final String(package private) static final org.slf4j.Loggerprivate static final com.google.common.collect.ImmutableList<String>private static final String -
Constructor Summary
ConstructorsConstructorDescriptionLevelStorageSource(Path p_78199_, Path p_78200_, com.mojang.datafixers.DataFixer p_78201_) -
Method Summary
Modifier and TypeMethodDescriptioncreateAccess(String p_78261_) static LevelStorageSourcecreateDefault(Path p_78243_) private static DataPackConfiggetDataPacks(File p_78253_, com.mojang.datafixers.DataFixer p_78254_) (package private) 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_) getName()private intbooleanisNewLevelIdAcceptable(String p_78241_) booleanlevelExists(String p_78256_) (package private) BiFunction<File,com.mojang.datafixers.DataFixer, LevelSummary> levelSummaryReader(File p_78233_, boolean p_78234_) private static DataPackConfigreadDataPackConfig(com.mojang.serialization.Dynamic<?> p_78203_) (package private) <T> TreadLevelData(File p_78230_, BiFunction<File, com.mojang.datafixers.DataFixer, T> p_78231_) private static TagreadLightweightData(File p_202313_) 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_)
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
FORMATTER
-
ICON_FILENAME
- See Also:
-
OLD_SETTINGS_KEYS
-
TAG_DATA
- See Also:
-
baseDir
-
backupDir
-
fixerUpper
final com.mojang.datafixers.DataFixer fixerUpper
-
-
Constructor Details
-
LevelStorageSource
-
-
Method Details
-
createDefault
-
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
-
getName
-
getLevelList
- 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, getLevelDataPrimaryLevelData> (com.mojang.serialization.DynamicOps<Tag> p_211738_, DataPackConfig p_211739_, com.mojang.serialization.Lifecycle p_211740_) -
levelSummaryReader
BiFunction<File,com.mojang.datafixers.DataFixer, levelSummaryReaderLevelSummary> (File p_78233_, boolean p_78234_) -
readLightweightData
- Throws:
IOException
-
isNewLevelIdAcceptable
-
levelExists
-
getBaseDir
-
getBackupPath
-
createAccess
- Throws:
IOException
-