public class SaveFormatComparator extends java.lang.Object implements java.lang.Comparable<SaveFormatComparator>
Modifier and Type | Field and Description |
---|---|
private boolean |
cheatsEnabled |
private java.lang.String |
displayName
the displayed name of this save file
|
private java.lang.String |
fileName
the file name of this save
|
private boolean |
hardcore |
private long |
lastTimePlayed |
private boolean |
requiresConversion |
private long |
sizeOnDisk |
private WorldSettings.GameType |
theEnumGameType
Instance of EnumGameType.
|
Constructor and Description |
---|
SaveFormatComparator(java.lang.String fileNameIn,
java.lang.String displayNameIn,
long lastTimePlayedIn,
long sizeOnDiskIn,
WorldSettings.GameType theEnumGameTypeIn,
boolean requiresConversionIn,
boolean hardcoreIn,
boolean cheatsEnabledIn) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SaveFormatComparator p_compareTo_1_) |
boolean |
getCheatsEnabled() |
java.lang.String |
getDisplayName()
return the display name of the save
|
WorldSettings.GameType |
getEnumGameType()
Gets the EnumGameType.
|
java.lang.String |
getFileName()
return the file name
|
long |
getLastTimePlayed() |
long |
getSizeOnDisk() |
boolean |
isHardcoreModeEnabled() |
boolean |
requiresConversion() |
private final java.lang.String fileName
private final java.lang.String displayName
private final long lastTimePlayed
private final long sizeOnDisk
private final boolean requiresConversion
private final WorldSettings.GameType theEnumGameType
private final boolean hardcore
private final boolean cheatsEnabled
public SaveFormatComparator(java.lang.String fileNameIn, java.lang.String displayNameIn, long lastTimePlayedIn, long sizeOnDiskIn, WorldSettings.GameType theEnumGameTypeIn, boolean requiresConversionIn, boolean hardcoreIn, boolean cheatsEnabledIn)
public java.lang.String getFileName()
public java.lang.String getDisplayName()
public long getSizeOnDisk()
public boolean requiresConversion()
public long getLastTimePlayed()
public int compareTo(SaveFormatComparator p_compareTo_1_)
compareTo
in interface java.lang.Comparable<SaveFormatComparator>
public WorldSettings.GameType getEnumGameType()
public boolean isHardcoreModeEnabled()
public boolean getCheatsEnabled()
true
if cheats are enabled for this world