public class LevelStorage.Session extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
private Path |
directory |
private String |
directoryName |
private Map<class_5218,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(class_5218 class_5218) |
String |
getDirectoryName() |
File |
getIconFile() |
File |
method_27424(DimensionType dimensionType) |
void |
method_27425(class_5219 class_5219) |
void |
method_27426(class_5219 class_5219,
CompoundTag compoundTag) |
WorldSaveHandler |
method_27427() |
boolean |
needsConversion() |
class_5219 |
readLevelProperties() |
void |
save(String name) |
private final SessionLock lock
private final Path directory
private final String directoryName
private final Map<class_5218,Path> field_24190
public Session(String string) throws IOException
IOExceptionpublic String getDirectoryName()
public Path getDirectory(class_5218 class_5218)
public File method_27424(DimensionType dimensionType)
private void checkValid()
public WorldSaveHandler method_27427()
public boolean needsConversion()
public boolean convert(ProgressListener progressListener)
@Nullable public class_5219 readLevelProperties()
public void method_27425(class_5219 class_5219)
public void method_27426(class_5219 class_5219, @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