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 enum
static class
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionint
int
boolean
boolean
long
private static final org.slf4j.Logger
int
private static final int
long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
cloneSlots
(Map<Integer, RealmsWorldOptions> p_87511_) private static Map<Integer,
RealmsWorldOptions> boolean
static RealmsServer.Compatibility
getCompatibility
(String p_305806_) getName()
private static RealmsServer.State
getWorldName
(int p_87496_) private static RealmsServer.WorldType
getWorldType
(String p_87530_) int
hashCode()
boolean
boolean
boolean
boolean
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 -
NO_VALUE
private static final int NO_VALUE- See Also:
-
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
-
parentWorldId
public long parentWorldId -
parentWorldName
-
activeVersion
-
compatibility
-
serverPing
-
-
Constructor Details
-
RealmsServer
public RealmsServer()
-
-
Method Details
-
getDescription
-
getName
-
getMinigameName
-
setName
-
setDescription
-
updateServerPing
-
parse
-
sortInvited
-
parseInvited
-
parseSlots
-
createEmptySlots
-
parse
-
getState
-
getWorldType
-
getCompatibility
-
isCompatible
public boolean isCompatible() -
needsUpgrade
public boolean needsUpgrade() -
needsDowngrade
public boolean needsDowngrade() -
hashCode
public int hashCode() -
equals
-
clone
-
cloneSlots
-
isSnapshotRealm
public boolean isSnapshotRealm() -
getWorldName
-
toServerData
-