@Environment(value=CLIENT) public class RealmsServer extends ValueObject
Modifier and Type | Class and Description |
---|---|
static class |
RealmsServer.McoServerComparator |
static class |
RealmsServer.State |
static class |
RealmsServer.WorldType |
Modifier and Type | Field and Description |
---|---|
int |
activeSlot |
int |
daysLeft |
boolean |
expired |
boolean |
expiredTrial |
long |
id |
private static Logger |
LOGGER |
int |
minigameId |
String |
minigameImage |
String |
minigameName |
String |
motd |
String |
name |
String |
owner |
String |
ownerUUID |
List<PlayerInfo> |
players |
String |
remoteSubscriptionId |
RealmsServerPing |
serverPing |
Map<Integer,RealmsWorldOptions> |
slots |
RealmsServer.State |
state |
RealmsServer.WorldType |
worldType |
Constructor and Description |
---|
RealmsServer() |
Modifier and Type | Method and Description |
---|---|
RealmsServer |
clone() |
Map<Integer,RealmsWorldOptions> |
cloneSlots(Map<Integer,RealmsWorldOptions> slots) |
boolean |
equals(Object obj) |
String |
getDescription() |
private static Map<Integer,RealmsWorldOptions> |
getEmptySlots() |
String |
getMinigameName() |
String |
getName() |
private static RealmsServer.State |
getState(String state) |
String |
getWorldName(int slotId) |
private static RealmsServer.WorldType |
getWorldType(String state) |
int |
hashCode() |
ServerInfo |
method_31403(String string) |
static RealmsServer |
parse(JsonObject node) |
static RealmsServer |
parse(String json) |
private static List<PlayerInfo> |
parseInvited(JsonArray jsonArray) |
private static Map<Integer,RealmsWorldOptions> |
parseSlots(JsonArray json) |
void |
setDescription(String description) |
void |
setName(String name) |
private static void |
sortInvited(RealmsServer server) |
void |
updateServerPing(RealmsServerPlayerList serverPlayerList) |
toString
private static final Logger LOGGER
public long id
public String remoteSubscriptionId
public String name
public String motd
public RealmsServer.State state
public String owner
public String ownerUUID
public List<PlayerInfo> players
public Map<Integer,RealmsWorldOptions> slots
public boolean expired
public boolean expiredTrial
public int daysLeft
public RealmsServer.WorldType worldType
public int activeSlot
public String minigameName
public int minigameId
public String minigameImage
public RealmsServerPing serverPing
public String getDescription()
public String getName()
public String getMinigameName()
public void setName(String name)
public void setDescription(String description)
public void updateServerPing(RealmsServerPlayerList serverPlayerList)
public static RealmsServer parse(JsonObject node)
private static void sortInvited(RealmsServer server)
private static List<PlayerInfo> parseInvited(JsonArray jsonArray)
private static Map<Integer,RealmsWorldOptions> parseSlots(JsonArray json)
private static Map<Integer,RealmsWorldOptions> getEmptySlots()
public static RealmsServer parse(String json)
private static RealmsServer.State getState(String state)
private static RealmsServer.WorldType getWorldType(String state)
public RealmsServer clone()
public Map<Integer,RealmsWorldOptions> cloneSlots(Map<Integer,RealmsWorldOptions> slots)
public String getWorldName(int slotId)
public ServerInfo method_31403(String string)