Class LevelSummary

java.lang.Object
net.minecraft.world.level.storage.LevelSummary
All Implemented Interfaces:
Comparable<LevelSummary>
Direct Known Subclasses:
LevelSummary.CorruptedLevelSummary, LevelSummary.SymlinkLevelSummary

public class LevelSummary extends Object implements Comparable<LevelSummary>
  • Field Details

    • PLAY_WORLD

      public static final Component PLAY_WORLD
    • settings

      private final LevelSettings settings
    • levelVersion

      private final LevelVersion levelVersion
    • levelId

      private final String levelId
    • requiresManualConversion

      private final boolean requiresManualConversion
    • locked

      private final boolean locked
    • experimental

      private final boolean experimental
    • icon

      private final Path icon
    • info

      @Nullable private Component info
  • Constructor Details

    • LevelSummary

      public LevelSummary(LevelSettings p_251217_, LevelVersion p_249179_, String p_250462_, boolean p_252096_, boolean p_251054_, boolean p_252271_, Path p_252001_)
  • Method Details

    • getLevelId

      public String getLevelId()
    • getLevelName

      public String getLevelName()
    • getIcon

      public Path getIcon()
    • requiresManualConversion

      public boolean requiresManualConversion()
    • isExperimental

      public boolean isExperimental()
    • getLastPlayed

      public long getLastPlayed()
    • compareTo

      public int compareTo(LevelSummary p_78360_)
      Specified by:
      compareTo in interface Comparable<LevelSummary>
    • getSettings

      public LevelSettings getSettings()
    • getGameMode

      public GameType getGameMode()
    • isHardcore

      public boolean isHardcore()
    • hasCheats

      public boolean hasCheats()
    • getWorldVersionName

      public MutableComponent getWorldVersionName()
    • levelVersion

      public LevelVersion levelVersion()
    • shouldBackup

      public boolean shouldBackup()
    • isDowngrade

      public boolean isDowngrade()
    • backupStatus

      public LevelSummary.BackupStatus backupStatus()
    • isLocked

      public boolean isLocked()
    • isDisabled

      public boolean isDisabled()
    • isCompatible

      public boolean isCompatible()
    • getInfo

      public Component getInfo()
    • createInfo

      private Component createInfo()
    • primaryActionMessage

      public Component primaryActionMessage()
    • primaryActionActive

      public boolean primaryActionActive()
    • canEdit

      public boolean canEdit()
    • canRecreate

      public boolean canRecreate()
    • canDelete

      public boolean canDelete()
    • isLifecycleExperimental

      public boolean isLifecycleExperimental()