net.minecraft.world.level.storage

public class LevelStorageSource

erf
net.minecraft.world.level.storage.LevelStorageSource
net.minecraft.class_32
net.minecraft.world.level.storage.LevelStorage
net.minecraft.src.C_2785_
net.minecraft.world.level.storage.Convertable

Field summary

Modifier and TypeField
static final org.slf4j.Logger
b
LOGGER
field_17665
LOGGER
f_78191_
static final DateTimeFormatter
c
FORMATTER
field_200
TIME_FORMATTER
f_78192_
private static final String
d
TAG_DATA
field_36348
DATA_KEY
f_202311_
private static final PathMatcher
e
NO_SYMLINKS_ALLOWED
field_44951
DEFAULT_ALLOWED_SYMLINK_MATCHER
f_289833_
public static final String
a
ALLOWED_SYMLINKS_CONFIG_NAME
field_44950
ALLOWED_SYMLINKS_FILE_NAME
f_289824_
private static final int
f
UNCOMPRESSED_NBT_QUOTA
field_46830
MAX_LEVEL_DATA_SIZE
f_302867_
private static final int
g
DISK_SPACE_WARNING_THRESHOLD
field_49426
RECOMMENDED_USABLE_SPACE_BYTES
f_316115_
private final Path
h
baseDir
field_17666
savesDirectory
f_78194_
private final Path
i
backupDir
field_17667
backupsDirectory
f_78195_
final com.mojang.datafixers.DataFixer
j
fixerUpper
field_17668
dataFixer
f_78196_
private final DirectoryValidator
k
worldDirValidator
field_44952
symlinkFinder
f_289816_

Constructor summary

ModifierConstructor
public (Path savesDirectory, Path backupsDirectory, DirectoryValidator symlinkFinder, com.mojang.datafixers.DataFixer dataFixer)

Method summary

Modifier and TypeMethod
public static DirectoryValidator
a(Path arg0)
parseValidator(Path arg0)
method_52235(Path arg0)
createSymlinkFinder(Path allowedSymlinksFile)
m_289881_(Path p_289968_)
public static LevelStorageSource
b(Path arg0)
createDefault(Path arg0)
method_26999(Path arg0)
create(Path path)
m_78242_(Path p_78243_)
public static WorldDataConfiguration
a(com.mojang.serialization.Dynamic<?> arg0)
readDataConfig(com.mojang.serialization.Dynamic<?> arg0)
method_29580(com.mojang.serialization.Dynamic<?> arg0)
parseDataPackSettings(com.mojang.serialization.Dynamic<?> dynamic)
m_245610_(com.mojang.serialization.Dynamic<?> p_250884_)
public static WorldLoader$PackConfig
a(com.mojang.serialization.Dynamic<?> arg0, atp arg1, boolean arg2)
getPackConfig(com.mojang.serialization.Dynamic<?> arg0, PackRepository arg1, boolean arg2)
method_54522(com.mojang.serialization.Dynamic<?> arg0, class_3283 arg1, boolean arg2)
parseDataPacks(com.mojang.serialization.Dynamic<?> dynamic, ResourcePackManager dataPackManager, boolean safeMode)
m_305246_(com.mojang.serialization.Dynamic<?> p_312675_, C_62_ p_309764_, boolean p_310223_)
public static LevelDataAndDimensions
a(com.mojang.serialization.Dynamic<?> arg0, ddr arg1, jz<dwz> arg2, ka$b arg3)
getLevelDataAndDimensions(com.mojang.serialization.Dynamic<?> arg0, WorldDataConfiguration arg1, Registry<LevelStem> arg2, RegistryAccess$Frozen arg3)
method_54523(com.mojang.serialization.Dynamic<?> arg0, class_7712 arg1, class_2378<class_5363> arg2, class_5455$class_6890 arg3)
parseSaveProperties(com.mojang.serialization.Dynamic<?> dynamic, DataConfiguration dataConfiguration, Registry<DimensionOptions> dimensionsRegistry, DynamicRegistryManager$Immutable registryManager)
m_306102_(com.mojang.serialization.Dynamic<?> p_311362_, C_243530_ p_311014_, C_4705_<C_2176_> p_311619_, C_4706_$C_203240_ p_313214_)
public String
a()
getName()
method_35504()
getFormatName()
m_164909_()
public LevelStorageSource$LevelCandidates
b()
findLevelCandidates()
method_235()
getLevelList()
m_230833_()
public CompletableFuture<List<LevelSummary>>
a(erf$a arg0)
loadLevelSummaries(LevelStorageSource$LevelCandidates arg0)
method_43417(class_32$class_7410 arg0)
loadSummaries(LevelStorage$LevelList levels)
m_230813_(C_2785_$C_213318_ arg0)
private int
f()
getStorageVersion()
method_17931()
getCurrentVersion()
m_78265_()
static CompoundTag
c(Path arg0)
readLevelDataTagRaw(Path arg0)
method_54529(Path arg0)
readLevelProperties(Path path)
m_305304_(Path p_312857_)
static com.mojang.serialization.Dynamic<?>
a(Path arg0, com.mojang.datafixers.DataFixer arg1)
readLevelDataTagFixed(Path arg0, com.mojang.datafixers.DataFixer arg1)
method_54528(Path arg0, com.mojang.datafixers.DataFixer arg1)
readLevelProperties(Path path, com.mojang.datafixers.DataFixer dataFixer)
m_306158_(Path p_309458_, com.mojang.datafixers.DataFixer p_312702_)
private LevelSummary
a(erf$b arg0, boolean arg1)
readLevelSummary(LevelStorageSource$LevelDirectory arg0, boolean arg1)
method_54527(class_32$class_7411 arg0, boolean arg1)
readSummary(LevelStorage$LevelSave save, boolean locked)
m_306052_(C_2785_$C_213319_ p_312081_, boolean arg1)
private static long
a(erf$b arg0)
getFileModificationTime(LevelStorageSource$LevelDirectory arg0)
method_54526(class_32$class_7411 arg0)
getLastModifiedTime(LevelStorage$LevelSave save)
m_307617_(C_2785_$C_213319_ p_311230_)
static Instant
d(Path arg0)
getFileModificationTime(Path arg0)
method_54530(Path arg0)
getLastModifiedTime(Path path)
m_306357_(Path p_313101_)
LevelSummary
a(com.mojang.serialization.Dynamic<?> arg0, erf$b arg1, boolean arg2)
makeLevelSummary(com.mojang.serialization.Dynamic<?> arg0, LevelStorageSource$LevelDirectory arg1, boolean arg2)
method_54524(com.mojang.serialization.Dynamic<?> arg0, class_32$class_7411 arg1, boolean arg2)
parseSummary(com.mojang.serialization.Dynamic<?> dynamic, LevelStorage$LevelSave save, boolean locked)
m_306201_(com.mojang.serialization.Dynamic<?> p_309842_, C_2785_$C_213319_ p_310644_, boolean arg2)
private static FeatureFlagSet
b(com.mojang.serialization.Dynamic<?> arg0)
parseFeatureFlagsFromSummary(com.mojang.serialization.Dynamic<?> arg0)
method_45552(com.mojang.serialization.Dynamic<?> arg0)
parseEnabledFeatures(com.mojang.serialization.Dynamic<?> levelData)
m_247076_(com.mojang.serialization.Dynamic<?> p_249466_)
private static Tag
e(Path arg0)
readLightweightData(Path arg0)
method_40035(Path arg0)
loadCompactLevelData(Path path)
m_230836_(Path p_230837_)
public boolean
a(String arg0)
isNewLevelIdAcceptable(String arg0)
method_240(String arg0)
isLevelNameValid(String name)
m_78240_(String arg0)
public boolean
b(String arg0)
levelExists(String arg0)
method_230(String arg0)
levelExists(String name)
m_78255_(String arg0)
public Path
c(String arg0)
getLevelPath(String arg0)
method_52238(String arg0)
resolve(String name)
m_289874_(String arg0)
public Path
c()
getBaseDir()
method_19636()
getSavesDirectory()
m_78257_()
public Path
d()
getBackupPath()
method_236()
getBackupsDirectory()
m_78262_()
public LevelStorageSource$LevelStorageAccess
d(String arg0)
validateAndCreateAccess(String arg0)
method_52236(String arg0)
createSession(String directoryName)
m_289864_(String arg0)
public LevelStorageSource$LevelStorageAccess
e(String arg0)
createAccess(String arg0)
method_27002(String arg0)
createSessionWithoutSymlinkCheck(String directoryName)
m_78260_(String arg0)
public DirectoryValidator
e()
getWorldDirValidator()
method_52237()
getSymlinkFinder()
m_289863_()