public class RealmsServer extends ValueObject
Modifier and Type | Class and Description |
---|---|
static class |
RealmsServer.ServerComparator |
static class |
RealmsServer.ServerType |
static class |
RealmsServer.Status |
Modifier and Type | Field and Description |
---|---|
int |
activeSlot |
int |
daysLeft |
boolean |
expired |
boolean |
expiredTrial |
long |
id |
private static org.apache.logging.log4j.Logger |
LOGGER |
int |
minigameId |
java.lang.String |
minigameImage |
java.lang.String |
minigameName |
java.lang.String |
motd |
java.lang.String |
name |
java.lang.String |
owner |
java.lang.String |
ownerUUID |
java.util.List<PlayerInfo> |
players |
java.lang.String |
remoteSubscriptionId |
RealmsServerPing |
serverPing |
java.util.Map<java.lang.Integer,RealmsWorldOptions> |
slots |
RealmsServer.Status |
state |
RealmsServer.ServerType |
worldType |
Constructor and Description |
---|
RealmsServer() |
Modifier and Type | Method and Description |
---|---|
RealmsServer |
clone() |
java.util.Map<java.lang.Integer,RealmsWorldOptions> |
cloneSlots(java.util.Map<java.lang.Integer,RealmsWorldOptions> p_cloneSlots_1_) |
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
getDescription() |
private static java.util.Map<java.lang.Integer,RealmsWorldOptions> |
getEmptySlots() |
java.lang.String |
getMinigameName() |
java.lang.String |
getName() |
private static RealmsServer.Status |
getState(java.lang.String p_getState_0_) |
private static RealmsServer.ServerType |
getWorldType(java.lang.String p_getWorldType_0_) |
int |
hashCode() |
static RealmsServer |
parse(com.google.gson.JsonObject p_parse_0_) |
static RealmsServer |
parse(java.lang.String p_parse_0_) |
private static java.util.List<PlayerInfo> |
parseInvited(com.google.gson.JsonArray p_parseInvited_0_) |
private static java.util.Map<java.lang.Integer,RealmsWorldOptions> |
parseSlots(com.google.gson.JsonArray p_parseSlots_0_) |
void |
setDescription(java.lang.String p_setDescription_1_) |
void |
setName(java.lang.String p_setName_1_) |
private static void |
sortInvited(RealmsServer p_sortInvited_0_) |
void |
updateServerPing(RealmsServerPlayerList p_updateServerPing_1_) |
toString
private static final org.apache.logging.log4j.Logger LOGGER
public long id
public java.lang.String remoteSubscriptionId
public java.lang.String name
public java.lang.String motd
public RealmsServer.Status state
public java.lang.String owner
public java.lang.String ownerUUID
public java.util.List<PlayerInfo> players
public java.util.Map<java.lang.Integer,RealmsWorldOptions> slots
public boolean expired
public boolean expiredTrial
public int daysLeft
public RealmsServer.ServerType worldType
public int activeSlot
public java.lang.String minigameName
public int minigameId
public java.lang.String minigameImage
public RealmsServerPing serverPing
public java.lang.String getDescription()
public java.lang.String getName()
public java.lang.String getMinigameName()
public void setName(java.lang.String p_setName_1_)
public void setDescription(java.lang.String p_setDescription_1_)
public void updateServerPing(RealmsServerPlayerList p_updateServerPing_1_)
public static RealmsServer parse(com.google.gson.JsonObject p_parse_0_)
private static void sortInvited(RealmsServer p_sortInvited_0_)
private static java.util.List<PlayerInfo> parseInvited(com.google.gson.JsonArray p_parseInvited_0_)
private static java.util.Map<java.lang.Integer,RealmsWorldOptions> parseSlots(com.google.gson.JsonArray p_parseSlots_0_)
private static java.util.Map<java.lang.Integer,RealmsWorldOptions> getEmptySlots()
public static RealmsServer parse(java.lang.String p_parse_0_)
private static RealmsServer.Status getState(java.lang.String p_getState_0_)
private static RealmsServer.ServerType getWorldType(java.lang.String p_getWorldType_0_)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public RealmsServer clone()
clone
in class java.lang.Object
public java.util.Map<java.lang.Integer,RealmsWorldOptions> cloneSlots(java.util.Map<java.lang.Integer,RealmsWorldOptions> p_cloneSlots_1_)