Package com.mojang.realmsclient.dto
Class RealmsServer
java.lang.Object
com.mojang.realmsclient.dto.ValueObject
com.mojang.realmsclient.dto.RealmsServer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionint
int
boolean
boolean
long
private static final org.apache.logging.log4j.Logger
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
cloneSlots
(Map<Integer, RealmsWorldOptions> p_230774_1_) private static Map<Integer,
RealmsWorldOptions> boolean
getName()
private static RealmsServer.Status
getWorldName
(int p_237696_1_) private static RealmsServer.ServerType
getWorldType
(String p_230781_0_) int
hashCode()
static RealmsServer
parse
(com.google.gson.JsonObject p_230770_0_) static RealmsServer
private static List<PlayerInfo>
parseInvited
(com.google.gson.JsonArray p_230769_0_) private static Map<Integer,
RealmsWorldOptions> parseSlots
(com.google.gson.JsonArray p_230776_0_) void
setDescription
(String p_230777_1_) void
private static void
sortInvited
(RealmsServer p_230771_0_) toServerData
(String p_244783_1_) void
updateServerPing
(RealmsServerPlayerList p_230772_1_) Methods inherited from class com.mojang.realmsclient.dto.ValueObject
toString
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
id
public long id -
remoteSubscriptionId
-
name
-
motd
-
state
-
owner
-
ownerUUID
-
players
-
slots
-
expired
public boolean expired -
expiredTrial
public boolean expiredTrial -
daysLeft
public int daysLeft -
worldType
-
activeSlot
public int activeSlot -
minigameName
-
minigameId
public int minigameId -
minigameImage
-
serverPing
-
-
Constructor Details
-
RealmsServer
public RealmsServer()
-
-
Method Details
-
getDescription
-
getName
-
getMinigameName
-
setName
-
setDescription
-
updateServerPing
-
parse
-
sortInvited
-
parseInvited
-
parseSlots
-
createEmptySlots
-
parse
-
getState
-
getWorldType
-
hashCode
public int hashCode() -
equals
-
clone
-
cloneSlots
-
getWorldName
-
toServerData
-