Class LevelStorageSource
java.lang.Object
net.minecraft.world.level.storage.LevelStorageSource
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate Path
(package private) Path
(package private) com.mojang.datafixers.DataFixer
(package private) static DateTimeFormatter
private static String
(package private) static org.apache.logging.log4j.Logger
private static com.google.common.collect.ImmutableList<String>
-
Constructor Summary
ConstructorDescriptionLevelStorageSource(Path p_78199_, Path p_78200_, com.mojang.datafixers.DataFixer p_78201_)
-
Method Summary
Modifier and TypeMethodDescriptioncreateAccess(String p_78261_)
static LevelStorageSource
createDefault(Path p_78243_)
private static DataPackConfig
getDataPacks(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_78248_, DataPackConfig p_78249_)
getName()
private static BiFunction<File,com.mojang.datafixers.DataFixer,PrimaryLevelData>
getReader(com.mojang.serialization.DynamicOps<Tag> p_78248_, DataPackConfig p_78249_, LevelStorageSource.LevelStorageAccess levelSave)
(package private) int
boolean
isNewLevelIdAcceptable(String p_78241_)
boolean
levelExists(String p_78256_)
(package private) BiFunction<File,com.mojang.datafixers.DataFixer,LevelSummary>
levelSummaryReader(File p_78233_, boolean p_78234_)
private static DataPackConfig
readDataPackConfig(com.mojang.serialization.Dynamic<?> p_78203_)
(package private) <T> T
readLevelData(File p_78230_, BiFunction<File,com.mojang.datafixers.DataFixer,T> p_78231_)
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.apache.logging.log4j.Logger LOGGER -
FORMATTER
-
ICON_FILENAME
- See Also:
- Constant Field Values
-
OLD_SETTINGS_KEYS
-
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
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_78248_, DataPackConfig p_78249_) -
getReader
private static BiFunction<File,com.mojang.datafixers.DataFixer,PrimaryLevelData> getReader(com.mojang.serialization.DynamicOps<Tag> p_78248_, DataPackConfig p_78249_, @Nullable LevelStorageSource.LevelStorageAccess levelSave) -
levelSummaryReader
BiFunction<File,com.mojang.datafixers.DataFixer,LevelSummary> levelSummaryReader(File p_78233_, boolean p_78234_) -
isNewLevelIdAcceptable
-
levelExists
-
getBaseDir
-
getBackupPath
-
createAccess
- Throws:
IOException
-