Package com.mojang.realmsclient.dto
Class RealmsServer
java.lang.Object
com.mojang.realmsclient.dto.ValueObject
com.mojang.realmsclient.dto.RealmsServer
@Environment(CLIENT) public class RealmsServer extends ValueObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRealmsServer.McoServerComparatorstatic classRealmsServer.Statestatic classRealmsServer.WorldType -
Field Summary
Fields Modifier and Type Field Description intactiveSlotintdaysLeftbooleanexpiredbooleanexpiredTriallongidprivate static LoggerLOGGERintminigameIdStringminigameImageStringminigameNameStringmotdStringnameStringownerStringownerUUIDList<PlayerInfo>playersStringremoteSubscriptionIdRealmsServerPingserverPingMap<Integer,RealmsWorldOptions>slotsRealmsServer.StatestateRealmsServer.WorldTypeworldType -
Constructor Summary
Constructors Constructor Description RealmsServer() -
Method Summary
Modifier and Type Method Description RealmsServerclone()Map<Integer,RealmsWorldOptions>cloneSlots(Map<Integer,RealmsWorldOptions> slots)booleanequals(Object obj)StringgetDescription()private static Map<Integer,RealmsWorldOptions>getEmptySlots()StringgetMinigameName()StringgetName()private static RealmsServer.StategetState(String state)StringgetWorldName(int slotId)private static RealmsServer.WorldTypegetWorldType(String state)inthashCode()static RealmsServerparse(JsonObject node)static RealmsServerparse(String json)private static List<PlayerInfo>parseInvited(JsonArray jsonArray)private static Map<Integer,RealmsWorldOptions>parseSlots(JsonArray json)voidsetDescription(String description)voidsetName(String name)private static voidsortInvited(RealmsServer server)voidupdateServerPing(RealmsServerPlayerList serverPlayerList)
-
Field Details
-
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