Package com.mojang.realmsclient.dto
Class RealmsServer
java.lang.Object
com.mojang.realmsclient.dto.ValueObject
com.mojang.realmsclient.dto.RealmsServer
- All Implemented Interfaces:
ReflectionBasedSerialization
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
boolean
boolean
int
long
boolean
private static final org.slf4j.Logger
int
private static final int
long
private List
<RealmsSlot> static final Component
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
cloneSlots
(Map<Integer, RealmsSlot> pSlots) private static List
<RealmsSlot> boolean
static void
finalize
(RealmsServer pServer) private static void
finalizeSlots
(RealmsServer pServer) getName()
getWorldName
(int pSlot) int
hashCode()
boolean
boolean
private boolean
boolean
boolean
boolean
static RealmsServer
parse
(GuardedSerializer pSerializer, String pJson) void
setDescription
(String pMotd) void
boolean
private static void
sortInvited
(RealmsServer pServer) toServerData
(String pIp) 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:
-
WORLD_CLOSED_COMPONENT
-
id
@SerializedName("id") public long id -
remoteSubscriptionId
-
name
-
motd
-
state
-
owner
-
ownerUUID
-
players
-
slotList
-
slots
-
expired
@SerializedName("expired") public boolean expired -
expiredTrial
@SerializedName("expiredTrial") public boolean expiredTrial -
daysLeft
@SerializedName("daysLeft") public int daysLeft -
worldType
-
isHardcore
@SerializedName("isHardcore") public boolean isHardcore -
gameMode
@SerializedName("gameMode") public int gameMode -
activeSlot
@SerializedName("activeSlot") public int activeSlot -
minigameName
-
minigameId
@SerializedName("minigameId") public int minigameId -
minigameImage
-
parentRealmId
@SerializedName("parentWorldId") public long parentRealmId -
parentWorldName
-
activeVersion
-
compatibility
-
regionSelectionPreference
@Nullable @SerializedName("regionSelectionPreference") public RegionSelectionPreferenceDto regionSelectionPreference
-
-
Constructor Details
-
RealmsServer
public RealmsServer()
-
-
Method Details
-
getDescription
-
getName
-
getMinigameName
-
setName
-
setDescription
-
parse
-
finalize
-
sortInvited
-
finalizeSlots
-
createEmptySlots
-
isCompatible
public boolean isCompatible() -
needsUpgrade
public boolean needsUpgrade() -
needsDowngrade
public boolean needsDowngrade() -
shouldPlayButtonBeActive
public boolean shouldPlayButtonBeActive() -
isSelfOwnedServer
private boolean isSelfOwnedServer() -
hashCode
public int hashCode() -
equals
-
clone
-
cloneSlots
-
isSnapshotRealm
public boolean isSnapshotRealm() -
isMinigameActive
public boolean isMinigameActive() -
getWorldName
-
toServerData
-