Record Class LevelStorage.LevelSave

java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.LevelStorage.LevelSave
Record Components:
path -
Enclosing class:
LevelStorage

public static record LevelStorage.LevelSave(Path path) extends Record
Mappings:
Namespace Name
named net/minecraft/world/level/storage/LevelStorage$LevelSave
intermediary net/minecraft/class_32$class_7411
official erf$b
named path
intermediary comp_732
official a
  • Field Details

    • path

      private final Path path
      The field for the path record component.
  • Constructor Details

    • LevelSave

      public LevelSave(Path path)
      Creates an instance of a LevelSave record class.
      Parameters:
      path - the value for the path record component
  • Method Details

    • getRootPath

      public String getRootPath()
      Mappings:
      Namespace Name Mixin selector
      named getRootPath Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;getRootPath()Ljava/lang/String;
      intermediary method_43422 Lnet/minecraft/class_32$class_7411;method_43422()Ljava/lang/String;
      official a Lerf$b;a()Ljava/lang/String;
    • getLevelDatPath

      public Path getLevelDatPath()
      Mappings:
      Namespace Name Mixin selector
      named getLevelDatPath Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;getLevelDatPath()Ljava/nio/file/Path;
      intermediary method_43425 Lnet/minecraft/class_32$class_7411;method_43425()Ljava/nio/file/Path;
      official b Lerf$b;b()Ljava/nio/file/Path;
    • getLevelDatOldPath

      public Path getLevelDatOldPath()
      Mappings:
      Namespace Name Mixin selector
      named getLevelDatOldPath Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;getLevelDatOldPath()Ljava/nio/file/Path;
      intermediary method_43426 Lnet/minecraft/class_32$class_7411;method_43426()Ljava/nio/file/Path;
      official c Lerf$b;c()Ljava/nio/file/Path;
    • getCorruptedLevelDatPath

      public Path getCorruptedLevelDatPath(LocalDateTime dateTime)
      Mappings:
      Namespace Name Mixin selector
      named getCorruptedLevelDatPath Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;getCorruptedLevelDatPath(Ljava/time/LocalDateTime;)Ljava/nio/file/Path;
      intermediary method_43424 Lnet/minecraft/class_32$class_7411;method_43424(Ljava/time/LocalDateTime;)Ljava/nio/file/Path;
      official a Lerf$b;a(Ljava/time/LocalDateTime;)Ljava/nio/file/Path;
    • getRawLevelDatPath

      public Path getRawLevelDatPath(LocalDateTime dateTime)
      Mappings:
      Namespace Name Mixin selector
      named getRawLevelDatPath Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;getRawLevelDatPath(Ljava/time/LocalDateTime;)Ljava/nio/file/Path;
      intermediary method_54531 Lnet/minecraft/class_32$class_7411;method_54531(Ljava/time/LocalDateTime;)Ljava/nio/file/Path;
      official b Lerf$b;b(Ljava/time/LocalDateTime;)Ljava/nio/file/Path;
    • getIconPath

      public Path getIconPath()
      Mappings:
      Namespace Name Mixin selector
      named getIconPath Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;getIconPath()Ljava/nio/file/Path;
      intermediary method_43427 Lnet/minecraft/class_32$class_7411;method_43427()Ljava/nio/file/Path;
      official d Lerf$b;d()Ljava/nio/file/Path;
    • getSessionLockPath

      public Path getSessionLockPath()
      Mappings:
      Namespace Name Mixin selector
      named getSessionLockPath Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;getSessionLockPath()Ljava/nio/file/Path;
      intermediary method_43428 Lnet/minecraft/class_32$class_7411;method_43428()Ljava/nio/file/Path;
      official e Lerf$b;e()Ljava/nio/file/Path;
    • getPath

      public Path getPath(WorldSavePath savePath)
      Mappings:
      Namespace Name Mixin selector
      named getPath Lnet/minecraft/world/level/storage/LevelStorage$LevelSave;getPath(Lnet/minecraft/util/WorldSavePath;)Ljava/nio/file/Path;
      intermediary method_43423 Lnet/minecraft/class_32$class_7411;method_43423(Lnet/minecraft/class_5218;)Ljava/nio/file/Path;
      official a Lerf$b;a(Lerd;)Ljava/nio/file/Path;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • path

      public Path path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component