package net.minecraft.realms; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.world.storage.SaveFormatComparator; @SideOnly(Side.CLIENT) public class RealmsLevelSummary implements Comparable { private SaveFormatComparator levelSummary; private static final String __OBFID = "CL_00001857"; public RealmsLevelSummary(SaveFormatComparator p_i1109_1_) { this.levelSummary = p_i1109_1_; } public int getGameMode() { return this.levelSummary.getEnumGameType().getID(); } public String getLevelId() { return this.levelSummary.getFileName(); } public boolean hasCheats() { return this.levelSummary.getCheatsEnabled(); } public boolean isHardcore() { return this.levelSummary.isHardcoreModeEnabled(); } public boolean isRequiresConversion() { return this.levelSummary.requiresConversion(); } public String getLevelName() { return this.levelSummary.getDisplayName(); } public long getLastPlayed() { return this.levelSummary.getLastTimePlayed(); } public int compareTo(SaveFormatComparator p_compareTo_1_) { return this.levelSummary.compareTo(p_compareTo_1_); } public long getSizeOnDisk() { return this.levelSummary.func_154336_c(); } public int compareTo(RealmsLevelSummary p_compareTo_1_) { return this.levelSummary.getLastTimePlayed() < p_compareTo_1_.getLastPlayed() ? 1 : (this.levelSummary.getLastTimePlayed() > p_compareTo_1_.getLastPlayed() ? -1 : this.levelSummary.getFileName().compareTo(p_compareTo_1_.getLevelId())); } public int compareTo(Object p_compareTo_1_) { return this.compareTo((RealmsLevelSummary)p_compareTo_1_); } }