Class SaveFormat.LevelSave

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    SaveFormat

    public class SaveFormat.LevelSave
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Field Detail

      • levelPath

        private final java.nio.file.Path levelPath
      • levelId

        private final java.lang.String levelId
      • resources

        private final java.util.Map<FolderName,​java.nio.file.Path> resources
    • Constructor Detail

      • LevelSave

        public LevelSave​(java.lang.String p_i232152_2_)
                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getLevelId

        public java.lang.String getLevelId()
      • getLevelPath

        public java.nio.file.Path getLevelPath​(FolderName p_237285_1_)
      • getDimensionPath

        public java.io.File getDimensionPath​(RegistryKey<World> p_237291_1_)
      • checkLock

        private void checkLock()
      • createPlayerStorage

        public PlayerData createPlayerStorage()
      • requiresConversion

        public boolean requiresConversion()
      • convertLevel

        public boolean convertLevel​(IProgressUpdate p_237283_1_)
      • getIconFile

        public java.io.File getIconFile()
      • getWorldDir

        public java.nio.file.Path getWorldDir()
      • deleteLevel

        public void deleteLevel()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • renameLevel

        public void renameLevel​(java.lang.String p_237290_1_)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • makeWorldBackup

        public long makeWorldBackup()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException