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.slf4j.Logger
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
cloneSlots
(Map<Integer, RealmsWorldOptions> p_87511_) private static Map<Integer,
RealmsWorldOptions> boolean
getName()
private static RealmsServer.State
getWorldName
(int p_87496_) private static RealmsServer.WorldType
getWorldType
(String p_87530_) int
hashCode()
static RealmsServer
parse
(com.google.gson.JsonObject p_87500_) static RealmsServer
private static List<PlayerInfo>
parseInvited
(com.google.gson.JsonArray p_87498_) private static Map<Integer,
RealmsWorldOptions> parseSlots
(com.google.gson.JsonArray p_87514_) void
setDescription
(String p_87516_) void
private static void
sortInvited
(RealmsServer p_87505_) toServerData
(String p_87523_) void
updateServerPing
(RealmsServerPlayerList p_87507_) Methods inherited from class com.mojang.realmsclient.dto.ValueObject
toString
-
Field Details
-
LOGGER
private static final org.slf4j.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
-