Class LevelStorage
java.lang.Object
net.minecraft.world.level.storage.LevelStorage
- Mappings:
Namespace Name named net/minecraft/world/level/storage/LevelStorage
intermediary net/minecraft/class_32
official eqz
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private final Path
private static final String
(package private) final com.mojang.datafixers.DataFixer
private static final PathMatcher
(package private) static final Logger
private static final int
private static final int
private final Path
private final SymlinkFinder
(package private) static final DateTimeFormatter
-
Constructor Summary
ConstructorDescriptionLevelStorage
(Path savesDirectory, Path backupsDirectory, SymlinkFinder symlinkFinder, com.mojang.datafixers.DataFixer dataFixer) -
Method Summary
Modifier and TypeMethodDescriptionstatic LevelStorage
createSession
(String directoryName) createSessionWithoutSymlinkCheck
(String directoryName) static SymlinkFinder
createSymlinkFinder
(Path allowedSymlinksFile) private int
getLastModifiedTime
(Path path) private static long
boolean
isLevelNameValid
(String name) boolean
levelExists
(String name) private static @Nullable NbtElement
loadCompactLevelData
(Path path) Returns the compact version of the NBT for the level datafile
.loadSummaries
(LevelStorage.LevelList levels) static SaveLoading.DataPacks
parseDataPacks
(com.mojang.serialization.Dynamic<?> dynamic, ResourcePackManager dataPackManager, boolean safeMode) static DataConfiguration
parseDataPackSettings
(com.mojang.serialization.Dynamic<?> dynamic) private static FeatureSet
parseEnabledFeatures
(com.mojang.serialization.Dynamic<?> levelData) static ParsedSaveProperties
parseSaveProperties
(com.mojang.serialization.Dynamic<?> dynamic, DataConfiguration dataConfiguration, Registry<DimensionOptions> dimensionsRegistry, DynamicRegistryManager.Immutable registryManager) (package private) LevelSummary
parseSummary
(com.mojang.serialization.Dynamic<?> dynamic, LevelStorage.LevelSave save, boolean locked) (package private) static NbtCompound
readLevelProperties
(Path path) (package private) static com.mojang.serialization.Dynamic
<?> readLevelProperties
(Path path, com.mojang.datafixers.DataFixer dataFixer) private LevelSummary
readSummary
(LevelStorage.LevelSave save, boolean locked)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/world/level/storage/LevelStorage;LOGGER:Lorg/slf4j/Logger;
intermediary field_17665
Lnet/minecraft/class_32;field_17665:Lorg/slf4j/Logger;
official b
Leqz;b:Lorg/slf4j/Logger;
-
TIME_FORMATTER
- Mappings:
Namespace Name Mixin selector named TIME_FORMATTER
Lnet/minecraft/world/level/storage/LevelStorage;TIME_FORMATTER:Ljava/time/format/DateTimeFormatter;
intermediary field_200
Lnet/minecraft/class_32;field_200:Ljava/time/format/DateTimeFormatter;
official c
Leqz;c:Ljava/time/format/DateTimeFormatter;
-
DATA_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named DATA_KEY
Lnet/minecraft/world/level/storage/LevelStorage;DATA_KEY:Ljava/lang/String;
intermediary field_36348
Lnet/minecraft/class_32;field_36348:Ljava/lang/String;
official d
Leqz;d:Ljava/lang/String;
-
DEFAULT_ALLOWED_SYMLINK_MATCHER
- Mappings:
Namespace Name Mixin selector named DEFAULT_ALLOWED_SYMLINK_MATCHER
Lnet/minecraft/world/level/storage/LevelStorage;DEFAULT_ALLOWED_SYMLINK_MATCHER:Ljava/nio/file/PathMatcher;
intermediary field_44951
Lnet/minecraft/class_32;field_44951:Ljava/nio/file/PathMatcher;
official e
Leqz;e:Ljava/nio/file/PathMatcher;
-
ALLOWED_SYMLINKS_FILE_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector named ALLOWED_SYMLINKS_FILE_NAME
Lnet/minecraft/world/level/storage/LevelStorage;ALLOWED_SYMLINKS_FILE_NAME:Ljava/lang/String;
intermediary field_44950
Lnet/minecraft/class_32;field_44950:Ljava/lang/String;
official a
Leqz;a:Ljava/lang/String;
-
MAX_LEVEL_DATA_SIZE
private static final int MAX_LEVEL_DATA_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LEVEL_DATA_SIZE
Lnet/minecraft/world/level/storage/LevelStorage;MAX_LEVEL_DATA_SIZE:I
intermediary field_46830
Lnet/minecraft/class_32;field_46830:I
official f
Leqz;f:I
-
RECOMMENDED_USABLE_SPACE_BYTES
private static final int RECOMMENDED_USABLE_SPACE_BYTES- See Also:
- Mappings:
Namespace Name Mixin selector named RECOMMENDED_USABLE_SPACE_BYTES
Lnet/minecraft/world/level/storage/LevelStorage;RECOMMENDED_USABLE_SPACE_BYTES:I
intermediary field_49426
Lnet/minecraft/class_32;field_49426:I
official g
Leqz;g:I
-
savesDirectory
- Mappings:
Namespace Name Mixin selector named savesDirectory
Lnet/minecraft/world/level/storage/LevelStorage;savesDirectory:Ljava/nio/file/Path;
intermediary field_17666
Lnet/minecraft/class_32;field_17666:Ljava/nio/file/Path;
official h
Leqz;h:Ljava/nio/file/Path;
-
backupsDirectory
- Mappings:
Namespace Name Mixin selector named backupsDirectory
Lnet/minecraft/world/level/storage/LevelStorage;backupsDirectory:Ljava/nio/file/Path;
intermediary field_17667
Lnet/minecraft/class_32;field_17667:Ljava/nio/file/Path;
official i
Leqz;i:Ljava/nio/file/Path;
-
dataFixer
final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector named dataFixer
Lnet/minecraft/world/level/storage/LevelStorage;dataFixer:Lcom/mojang/datafixers/DataFixer;
intermediary field_17668
Lnet/minecraft/class_32;field_17668:Lcom/mojang/datafixers/DataFixer;
official j
Leqz;j:Lcom/mojang/datafixers/DataFixer;
-
symlinkFinder
- Mappings:
Namespace Name Mixin selector named symlinkFinder
Lnet/minecraft/world/level/storage/LevelStorage;symlinkFinder:Lnet/minecraft/util/path/SymlinkFinder;
intermediary field_44952
Lnet/minecraft/class_32;field_44952:Lnet/minecraft/class_8580;
official k
Leqz;k:Lewm;
-
-
Constructor Details
-
LevelStorage
public LevelStorage(Path savesDirectory, Path backupsDirectory, SymlinkFinder symlinkFinder, com.mojang.datafixers.DataFixer dataFixer) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/level/storage/LevelStorage;<init>(Ljava/nio/file/Path;Ljava/nio/file/Path;Lnet/minecraft/util/path/SymlinkFinder;Lcom/mojang/datafixers/DataFixer;)V
intermediary <init>
Lnet/minecraft/class_32;<init>(Ljava/nio/file/Path;Ljava/nio/file/Path;Lnet/minecraft/class_8580;Lcom/mojang/datafixers/DataFixer;)V
official <init>
Leqz;<init>(Ljava/nio/file/Path;Ljava/nio/file/Path;Lewm;Lcom/mojang/datafixers/DataFixer;)V
-
-
Method Details
-
createSymlinkFinder
- Mappings:
Namespace Name Mixin selector named createSymlinkFinder
Lnet/minecraft/world/level/storage/LevelStorage;createSymlinkFinder(Ljava/nio/file/Path;)Lnet/minecraft/util/path/SymlinkFinder;
intermediary method_52235
Lnet/minecraft/class_32;method_52235(Ljava/nio/file/Path;)Lnet/minecraft/class_8580;
official a
Leqz;a(Ljava/nio/file/Path;)Lewm;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/level/storage/LevelStorage;create(Ljava/nio/file/Path;)Lnet/minecraft/world/level/storage/LevelStorage;
intermediary method_26999
Lnet/minecraft/class_32;method_26999(Ljava/nio/file/Path;)Lnet/minecraft/class_32;
official b
Leqz;b(Ljava/nio/file/Path;)Leqz;
-
parseDataPackSettings
- Mappings:
Namespace Name Mixin selector named parseDataPackSettings
Lnet/minecraft/world/level/storage/LevelStorage;parseDataPackSettings(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/resource/DataConfiguration;
intermediary method_29580
Lnet/minecraft/class_32;method_29580(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_7712;
official a
Leqz;a(Lcom/mojang/serialization/Dynamic;)Lddp;
-
parseDataPacks
public static SaveLoading.DataPacks parseDataPacks(com.mojang.serialization.Dynamic<?> dynamic, ResourcePackManager dataPackManager, boolean safeMode) - Mappings:
Namespace Name Mixin selector named parseDataPacks
Lnet/minecraft/world/level/storage/LevelStorage;parseDataPacks(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/resource/ResourcePackManager;Z)Lnet/minecraft/server/SaveLoading$DataPacks;
intermediary method_54522
Lnet/minecraft/class_32;method_54522(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/class_3283;Z)Lnet/minecraft/class_7237$class_7238;
official a
Leqz;a(Lcom/mojang/serialization/Dynamic;Lato;Z)Laln$d;
-
parseSaveProperties
public static ParsedSaveProperties parseSaveProperties(com.mojang.serialization.Dynamic<?> dynamic, DataConfiguration dataConfiguration, Registry<DimensionOptions> dimensionsRegistry, DynamicRegistryManager.Immutable registryManager) - Mappings:
Namespace Name Mixin selector named parseSaveProperties
Lnet/minecraft/world/level/storage/LevelStorage;parseSaveProperties(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/resource/DataConfiguration;Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/DynamicRegistryManager$Immutable;)Lnet/minecraft/world/level/storage/ParsedSaveProperties;
intermediary method_54523
Lnet/minecraft/class_32;method_54523(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/class_7712;Lnet/minecraft/class_2378;Lnet/minecraft/class_5455$class_6890;)Lnet/minecraft/class_8895;
official a
Leqz;a(Lcom/mojang/serialization/Dynamic;Lddp;Ljz;Lka$b;)Leqw;
-
getFormatName
- Mappings:
Namespace Name Mixin selector named getFormatName
Lnet/minecraft/world/level/storage/LevelStorage;getFormatName()Ljava/lang/String;
intermediary method_35504
Lnet/minecraft/class_32;method_35504()Ljava/lang/String;
official a
Leqz;a()Ljava/lang/String;
-
getLevelList
- Throws:
LevelStorageException
- Mappings:
Namespace Name Mixin selector named getLevelList
Lnet/minecraft/world/level/storage/LevelStorage;getLevelList()Lnet/minecraft/world/level/storage/LevelStorage$LevelList;
intermediary method_235
Lnet/minecraft/class_32;method_235()Lnet/minecraft/class_32$class_7410;
official b
Leqz;b()Leqz$a;
-
loadSummaries
- Mappings:
Namespace Name Mixin selector named loadSummaries
Lnet/minecraft/world/level/storage/LevelStorage;loadSummaries(Lnet/minecraft/world/level/storage/LevelStorage$LevelList;)Ljava/util/concurrent/CompletableFuture;
intermediary method_43417
Lnet/minecraft/class_32;method_43417(Lnet/minecraft/class_32$class_7410;)Ljava/util/concurrent/CompletableFuture;
official a
Leqz;a(Leqz$a;)Ljava/util/concurrent/CompletableFuture;
-
getCurrentVersion
private int getCurrentVersion()- Mappings:
Namespace Name Mixin selector named getCurrentVersion
Lnet/minecraft/world/level/storage/LevelStorage;getCurrentVersion()I
intermediary method_17931
Lnet/minecraft/class_32;method_17931()I
official f
Leqz;f()I
-
readLevelProperties
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named readLevelProperties
Lnet/minecraft/world/level/storage/LevelStorage;readLevelProperties(Ljava/nio/file/Path;)Lnet/minecraft/nbt/NbtCompound;
intermediary method_54529
Lnet/minecraft/class_32;method_54529(Ljava/nio/file/Path;)Lnet/minecraft/class_2487;
official c
Leqz;c(Ljava/nio/file/Path;)Lua;
-
readLevelProperties
static com.mojang.serialization.Dynamic<?> readLevelProperties(Path path, com.mojang.datafixers.DataFixer dataFixer) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector named readLevelProperties
Lnet/minecraft/world/level/storage/LevelStorage;readLevelProperties(Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;)Lcom/mojang/serialization/Dynamic;
intermediary method_54528
Lnet/minecraft/class_32;method_54528(Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;)Lcom/mojang/serialization/Dynamic;
official a
Leqz;a(Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;)Lcom/mojang/serialization/Dynamic;
-
readSummary
- Mappings:
Namespace Name Mixin selector named readSummary
Lnet/minecraft/world/level/storage/LevelStorage;readSummary(Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;Z)Lnet/minecraft/world/level/storage/LevelSummary;
intermediary method_54527
Lnet/minecraft/class_32;method_54527(Lnet/minecraft/class_32$class_7411;Z)Lnet/minecraft/class_34;
official a
Leqz;a(Leqz$b;Z)Lera;
-
getLastModifiedTime
- Mappings:
Namespace Name Mixin selector named getLastModifiedTime
Lnet/minecraft/world/level/storage/LevelStorage;getLastModifiedTime(Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;)J
intermediary method_54526
Lnet/minecraft/class_32;method_54526(Lnet/minecraft/class_32$class_7411;)J
official a
Leqz;a(Leqz$b;)J
-
getLastModifiedTime
- Mappings:
Namespace Name Mixin selector named getLastModifiedTime
Lnet/minecraft/world/level/storage/LevelStorage;getLastModifiedTime(Ljava/nio/file/Path;)Ljava/time/Instant;
intermediary method_54530
Lnet/minecraft/class_32;method_54530(Ljava/nio/file/Path;)Ljava/time/Instant;
official d
Leqz;d(Ljava/nio/file/Path;)Ljava/time/Instant;
-
parseSummary
LevelSummary parseSummary(com.mojang.serialization.Dynamic<?> dynamic, LevelStorage.LevelSave save, boolean locked) - Mappings:
Namespace Name Mixin selector named parseSummary
Lnet/minecraft/world/level/storage/LevelStorage;parseSummary(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;Z)Lnet/minecraft/world/level/storage/LevelSummary;
intermediary method_54524
Lnet/minecraft/class_32;method_54524(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/class_32$class_7411;Z)Lnet/minecraft/class_34;
official a
Leqz;a(Lcom/mojang/serialization/Dynamic;Leqz$b;Z)Lera;
-
parseEnabledFeatures
- Mappings:
Namespace Name Mixin selector named parseEnabledFeatures
Lnet/minecraft/world/level/storage/LevelStorage;parseEnabledFeatures(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary method_45552
Lnet/minecraft/class_32;method_45552(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_7699;
official b
Leqz;b(Lcom/mojang/serialization/Dynamic;)Lcpj;
-
loadCompactLevelData
Returns the compact version of the NBT for the level datafile
.The returned NBT will not have
Player
andWorldGenSettings
keys.- Returns:
- the compact version of the NBT for the level data
file
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named loadCompactLevelData
Lnet/minecraft/world/level/storage/LevelStorage;loadCompactLevelData(Ljava/nio/file/Path;)Lnet/minecraft/nbt/NbtElement;
intermediary method_40035
Lnet/minecraft/class_32;method_40035(Ljava/nio/file/Path;)Lnet/minecraft/class_2520;
official e
Leqz;e(Ljava/nio/file/Path;)Lux;
-
isLevelNameValid
- Mappings:
Namespace Name Mixin selector named isLevelNameValid
Lnet/minecraft/world/level/storage/LevelStorage;isLevelNameValid(Ljava/lang/String;)Z
intermediary method_240
Lnet/minecraft/class_32;method_240(Ljava/lang/String;)Z
official a
Leqz;a(Ljava/lang/String;)Z
-
levelExists
- Mappings:
Namespace Name Mixin selector named levelExists
Lnet/minecraft/world/level/storage/LevelStorage;levelExists(Ljava/lang/String;)Z
intermediary method_230
Lnet/minecraft/class_32;method_230(Ljava/lang/String;)Z
official b
Leqz;b(Ljava/lang/String;)Z
-
resolve
- Mappings:
Namespace Name Mixin selector named resolve
Lnet/minecraft/world/level/storage/LevelStorage;resolve(Ljava/lang/String;)Ljava/nio/file/Path;
intermediary method_52238
Lnet/minecraft/class_32;method_52238(Ljava/lang/String;)Ljava/nio/file/Path;
official c
Leqz;c(Ljava/lang/String;)Ljava/nio/file/Path;
-
getSavesDirectory
- Mappings:
Namespace Name Mixin selector named getSavesDirectory
Lnet/minecraft/world/level/storage/LevelStorage;getSavesDirectory()Ljava/nio/file/Path;
intermediary method_19636
Lnet/minecraft/class_32;method_19636()Ljava/nio/file/Path;
official c
Leqz;c()Ljava/nio/file/Path;
-
getBackupsDirectory
- Mappings:
Namespace Name Mixin selector named getBackupsDirectory
Lnet/minecraft/world/level/storage/LevelStorage;getBackupsDirectory()Ljava/nio/file/Path;
intermediary method_236
Lnet/minecraft/class_32;method_236()Ljava/nio/file/Path;
official d
Leqz;d()Ljava/nio/file/Path;
-
createSession
public LevelStorage.Session createSession(String directoryName) throws IOException, SymlinkValidationException - Throws:
IOException
SymlinkValidationException
- Mappings:
Namespace Name Mixin selector named createSession
Lnet/minecraft/world/level/storage/LevelStorage;createSession(Ljava/lang/String;)Lnet/minecraft/world/level/storage/LevelStorage$Session;
intermediary method_52236
Lnet/minecraft/class_32;method_52236(Ljava/lang/String;)Lnet/minecraft/class_32$class_5143;
official d
Leqz;d(Ljava/lang/String;)Leqz$c;
-
createSessionWithoutSymlinkCheck
public LevelStorage.Session createSessionWithoutSymlinkCheck(String directoryName) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector named createSessionWithoutSymlinkCheck
Lnet/minecraft/world/level/storage/LevelStorage;createSessionWithoutSymlinkCheck(Ljava/lang/String;)Lnet/minecraft/world/level/storage/LevelStorage$Session;
intermediary method_27002
Lnet/minecraft/class_32;method_27002(Ljava/lang/String;)Lnet/minecraft/class_32$class_5143;
official e
Leqz;e(Ljava/lang/String;)Leqz$c;
-
getSymlinkFinder
- Mappings:
Namespace Name Mixin selector named getSymlinkFinder
Lnet/minecraft/world/level/storage/LevelStorage;getSymlinkFinder()Lnet/minecraft/util/path/SymlinkFinder;
intermediary method_52237
Lnet/minecraft/class_32;method_52237()Lnet/minecraft/class_8580;
official e
Leqz;e()Lewm;
-