net.minecraft.client.realms.dto

public class RealmsServer

extends ValueObject implements RealmsSerializable

All mapped superinterfaces:

RealmsSerializable

com.mojang.realmsclient.dto.RealmsServer
net.minecraft.class_4877
net.minecraft.client.realms.dto.RealmsServer

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_22617
LOGGER
private static final int
NO_VALUE
field_46696
NO_PARENT
public static final Text
WORLD_CLOSED_COMPONENT
field_60860
REALM_CLOSED_TEXT
public long
id
field_22599
id
public String
remoteSubscriptionId
field_22600
remoteSubscriptionId
public String
name
field_22601
name
public String
motd
field_22602
description
public RealmsServer$State
state
field_22603
state
public String
owner
field_22604
owner
public UUID
ownerUUID
field_22605
ownerUUID
public List<PlayerInfo>
players
field_22606
players
private List<RealmsSlot>
slotList
field_60203
emptySlots
public Map<Integer, RealmsSlot>
slots
field_22607
slots
public boolean
expired
field_22608
expired
public boolean
expiredTrial
field_22609
expiredTrial
public int
daysLeft
field_22610
daysLeft
public RealmsServer$WorldType
worldType
field_22611
worldType
public boolean
isHardcore
field_54807
hardcore
public int
gameMode
field_54808
gameMode
public int
activeSlot
field_22612
activeSlot
public String
minigameName
field_22613
minigameName
public int
minigameId
field_22614
minigameId
public String
minigameImage
field_22615
minigameImage
public long
parentRealmId
field_46692
parentWorldId
public String
parentWorldName
field_46693
parentWorldName
public String
activeVersion
field_46694
activeVersion
public RealmsServer$Compatibility
compatibility
field_46695
compatibility
public RealmsRegionSelectionPreference
regionSelectionPreference
field_60204
regionSelectionPreference

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public String
getDescription()
method_25053()
getDescription()
public String
getName()
method_25062()
getName()
public String
getMinigameName()
method_25065()
getMinigameName()
public void
setName(String name)
method_25060(String arg0)
setName(String name)
public void
setDescription(String motd)
method_25064(String arg0)
setDescription(String description)
public static RealmsServer
parse(GuardedSerializer gson, String json)
method_25066(class_4869 arg0, String arg1)
parse(CheckedGson gson, String json)
public static void
finalize(RealmsServer server)
method_71176(class_4877 arg0)
replaceNullsWithDefaults(RealmsServer server)
private static void
sortInvited(RealmsServer server)
method_25058(class_4877 arg0)
sortInvited(RealmsServer server)
private static void
finalizeSlots(RealmsServer server)
method_71178(class_4877 arg0)
populateSlots(RealmsServer server)
private static List<RealmsSlot>
createEmptySlots()
method_25069()
getEmptySlots()
public boolean
isCompatible()
method_54363()
isCompatible()
public boolean
needsUpgrade()
method_54364()
needsUpgrade()
public boolean
needsDowngrade()
method_54365()
needsDowngrade()
public boolean
shouldPlayButtonBeActive()
method_71972()
shouldAllowPlay()
private boolean
isSelfOwnedServer()
method_71973()
isPlayerOwner()
public RealmsServer
copy()
method_25067()
copy()
public Map<Integer, RealmsSlot>
cloneSlots(Map<Integer, RealmsSlot> slots)
method_25061(Map<Integer, class_11306> arg0)
cloneSlots(Map<Integer, RealmsSlot> slots)
public boolean
isSnapshotRealm()
method_54367()
isPrerelease()
public boolean
isMinigameActive()
method_60315()
isMinigame()
public String
getWorldName(int slotId)
method_25054(int arg0)
getWorldName(int slotId)
public ServerInfo
toServerData(String ip)
method_31403(String arg0)
createServerInfo(String address)
private static void
lambda$finalizeSlots$0(RealmsServer arg0, RealmsSlot arg1)
method_71177(class_4877 arg0, class_11306 arg1)
method_71177(RealmsServer arg0, RealmsSlot slot)
private static int
lambda$sortInvited$0(PlayerInfo arg0, PlayerInfo arg1)
method_25057(class_4874 arg0, class_4874 arg1)
method_25057(PlayerInfo a, PlayerInfo b)