Package net.minecraft.world.storage
Class WorldSummary
- java.lang.Object
-
- net.minecraft.world.storage.WorldSummary
-
- All Implemented Interfaces:
java.lang.Comparable<WorldSummary>
public class WorldSummary extends java.lang.Object implements java.lang.Comparable<WorldSummary>
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
icon
private ITextComponent
info
private java.lang.String
levelId
private VersionData
levelVersion
private boolean
locked
private boolean
requiresConversion
private WorldSettings
settings
-
Constructor Summary
Constructors Constructor Description WorldSummary(WorldSettings p_i232155_1_, VersionData p_i232155_2_, java.lang.String p_i232155_3_, boolean p_i232155_4_, boolean p_i232155_5_, java.io.File p_i232155_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
askToOpenWorld()
int
compareTo(WorldSummary p_compareTo_1_)
private ITextComponent
createInfo()
GameType
getGameMode()
java.io.File
getIcon()
ITextComponent
getInfo()
long
getLastPlayed()
java.lang.String
getLevelId()
java.lang.String
getLevelName()
IFormattableTextComponent
getWorldVersionName()
boolean
hasCheats()
boolean
isHardcore()
boolean
isLocked()
boolean
isRequiresConversion()
VersionData
levelVersion()
boolean
markVersionInList()
boolean
shouldBackup()
-
-
-
Field Detail
-
settings
private final WorldSettings settings
-
levelVersion
private final VersionData levelVersion
-
levelId
private final java.lang.String levelId
-
requiresConversion
private final boolean requiresConversion
-
locked
private final boolean locked
-
icon
private final java.io.File icon
-
info
@Nullable private ITextComponent info
-
-
Constructor Detail
-
WorldSummary
public WorldSummary(WorldSettings p_i232155_1_, VersionData p_i232155_2_, java.lang.String p_i232155_3_, boolean p_i232155_4_, boolean p_i232155_5_, java.io.File p_i232155_6_)
-
-
Method Detail
-
getLevelId
public java.lang.String getLevelId()
-
getLevelName
public java.lang.String getLevelName()
-
getIcon
public java.io.File getIcon()
-
isRequiresConversion
public boolean isRequiresConversion()
-
getLastPlayed
public long getLastPlayed()
-
compareTo
public int compareTo(WorldSummary p_compareTo_1_)
- Specified by:
compareTo
in interfacejava.lang.Comparable<WorldSummary>
-
getGameMode
public GameType getGameMode()
-
isHardcore
public boolean isHardcore()
-
hasCheats
public boolean hasCheats()
-
getWorldVersionName
public IFormattableTextComponent getWorldVersionName()
-
levelVersion
public VersionData levelVersion()
-
markVersionInList
public boolean markVersionInList()
-
askToOpenWorld
public boolean askToOpenWorld()
-
shouldBackup
public boolean shouldBackup()
-
isLocked
public boolean isLocked()
-
getInfo
public ITextComponent getInfo()
-
createInfo
private ITextComponent createInfo()
-
-