类 LevelStorageSource
java.lang.Object
net.minecraft.world.level.storage.LevelStorageSource
-
嵌套类概要
嵌套类修饰符和类型类说明static final record
static final record
class
-
字段概要
字段修饰符和类型字段说明static final String
private final Path
private final Path
private static final int
(专用程序包) final com.mojang.datafixers.DataFixer
(专用程序包) static final DateTimeFormatter
(专用程序包) static final org.slf4j.Logger
private static final PathMatcher
static final String
private static final int
private final DirectoryValidator
-
构造器概要
构造器构造器说明LevelStorageSource
(Path p_289985_, Path p_289978_, DirectoryValidator p_289922_, com.mojang.datafixers.DataFixer p_289940_) -
方法概要
修饰符和类型方法说明createAccess
(String p_78261_) static LevelStorageSource
createDefault
(Path p_78243_) (专用程序包) static Instant
getFileModificationTime
(Path p_313101_) private static long
static LevelDataAndDimensions
getLevelDataAndDimensions
(com.mojang.serialization.Dynamic<?> p_311362_, WorldDataConfiguration p_311014_, Registry<LevelStem> p_311619_, HolderLookup.Provider p_365798_) getLevelPath
(String p_289974_) getName()
static WorldLoader.PackConfig
getPackConfig
(com.mojang.serialization.Dynamic<?> p_312675_, PackRepository p_309764_, boolean p_310223_) private int
boolean
isNewLevelIdAcceptable
(String p_78241_) boolean
levelExists
(String p_78256_) (专用程序包) LevelSummary
makeLevelSummary
(com.mojang.serialization.Dynamic<?> p_310955_, LevelStorageSource.LevelDirectory p_309842_, boolean p_310644_) private static FeatureFlagSet
parseFeatureFlagsFromSummary
(com.mojang.serialization.Dynamic<?> p_249466_) static DirectoryValidator
parseValidator
(Path p_289968_) static WorldDataConfiguration
readDataConfig
(com.mojang.serialization.Dynamic<?> p_250884_) (专用程序包) static com.mojang.serialization.Dynamic
<?> readLevelDataTagFixed
(Path p_309458_, com.mojang.datafixers.DataFixer p_312702_) (专用程序包) static CompoundTag
readLevelDataTagRaw
(Path p_312857_) private LevelSummary
readLevelSummary
(LevelStorageSource.LevelDirectory p_313112_, boolean p_312081_) private static Tag
readLightweightData
(Path p_230837_) validateAndCreateAccess
(String p_289980_)
-
字段详细资料
-
LOGGER
static final org.slf4j.Logger LOGGER -
FORMATTER
-
TAG_DATA
- 另请参阅:
-
NO_SYMLINKS_ALLOWED
-
ALLOWED_SYMLINKS_CONFIG_NAME
- 另请参阅:
-
UNCOMPRESSED_NBT_QUOTA
private static final int UNCOMPRESSED_NBT_QUOTA- 另请参阅:
-
DISK_SPACE_WARNING_THRESHOLD
private static final int DISK_SPACE_WARNING_THRESHOLD- 另请参阅:
-
baseDir
-
backupDir
-
fixerUpper
final com.mojang.datafixers.DataFixer fixerUpper -
worldDirValidator
-
-
构造器详细资料
-
LevelStorageSource
public LevelStorageSource(Path p_289985_, Path p_289978_, DirectoryValidator p_289922_, com.mojang.datafixers.DataFixer p_289940_)
-
-
方法详细资料
-
parseValidator
-
createDefault
-
readDataConfig
-
getPackConfig
public static WorldLoader.PackConfig getPackConfig(com.mojang.serialization.Dynamic<?> p_312675_, PackRepository p_309764_, boolean p_310223_) -
getLevelDataAndDimensions
public static LevelDataAndDimensions getLevelDataAndDimensions(com.mojang.serialization.Dynamic<?> p_311362_, WorldDataConfiguration p_311014_, Registry<LevelStem> p_311619_, HolderLookup.Provider p_365798_) -
getName
-
findLevelCandidates
-
loadLevelSummaries
public CompletableFuture<List<LevelSummary>> loadLevelSummaries(LevelStorageSource.LevelCandidates p_230814_) -
getStorageVersion
private int getStorageVersion() -
readLevelDataTagRaw
- 抛出:
IOException
-
readLevelDataTagFixed
static com.mojang.serialization.Dynamic<?> readLevelDataTagFixed(Path p_309458_, com.mojang.datafixers.DataFixer p_312702_) throws IOException - 抛出:
IOException
-
readLevelSummary
private LevelSummary readLevelSummary(LevelStorageSource.LevelDirectory p_313112_, boolean p_312081_) -
getFileModificationTime
-
getFileModificationTime
-
makeLevelSummary
LevelSummary makeLevelSummary(com.mojang.serialization.Dynamic<?> p_310955_, LevelStorageSource.LevelDirectory p_309842_, boolean p_310644_) -
parseFeatureFlagsFromSummary
private static FeatureFlagSet parseFeatureFlagsFromSummary(com.mojang.serialization.Dynamic<?> p_249466_) -
readLightweightData
- 抛出:
IOException
-
isNewLevelIdAcceptable
-
levelExists
-
getLevelPath
-
getBaseDir
-
getBackupPath
-
validateAndCreateAccess
public LevelStorageSource.LevelStorageAccess validateAndCreateAccess(String p_289980_) throws IOException, ContentValidationException -
createAccess
- 抛出:
IOException
-
getWorldDirValidator
-