public class LevelStorage.Session extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
private Path |
directory |
private String |
directoryName |
private Map<WorldSavePath,Path> |
field_24190 |
private SessionLock |
lock |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkValid() |
void |
close() |
boolean |
convert(ProgressListener progressListener) |
long |
createBackup() |
void |
deleteSessionLock() |
Path |
getDirectory(WorldSavePath worldSavePath) |
String |
getDirectoryName() |
File |
getIconFile() |
File |
method_27424(RegistryKey<World> registryKey) |
void |
method_27425(RegistryTracker registryTracker,
SaveProperties saveProperties) |
void |
method_27426(RegistryTracker registryTracker,
SaveProperties saveProperties,
CompoundTag compoundTag) |
WorldSaveHandler |
method_27427() |
LevelSummary |
method_29584() |
DataPackSettings |
method_29585() |
boolean |
needsConversion() |
SaveProperties |
readLevelProperties(com.mojang.serialization.DynamicOps<Tag> dynamicOps,
DataPackSettings dataPackSettings) |
void |
save(String name) |
private final SessionLock lock
private final Path directory
private final String directoryName
private final Map<WorldSavePath,Path> field_24190
public Session(String string) throws IOException
IOExceptionpublic String getDirectoryName()
public Path getDirectory(WorldSavePath worldSavePath)
public File method_27424(RegistryKey<World> registryKey)
private void checkValid()
public WorldSaveHandler method_27427()
public boolean needsConversion()
public boolean convert(ProgressListener progressListener)
@Nullable public LevelSummary method_29584()
@Nullable public SaveProperties readLevelProperties(com.mojang.serialization.DynamicOps<Tag> dynamicOps, DataPackSettings dataPackSettings)
@Nullable public DataPackSettings method_29585()
public void method_27425(RegistryTracker registryTracker, SaveProperties saveProperties)
public void method_27426(RegistryTracker registryTracker, SaveProperties saveProperties, @Nullable CompoundTag compoundTag)
public File getIconFile()
@Environment(value=CLIENT)
public void deleteSessionLock()
throws IOException
IOException@Environment(value=CLIENT) public void save(String name) throws IOException
IOException@Environment(value=CLIENT)
public long createBackup()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOException