Package com.mojang.realmsclient.dto
Class RealmsServer
- java.lang.Object
-
- com.mojang.realmsclient.dto.ValueObject
-
- com.mojang.realmsclient.dto.RealmsServer
-
public class RealmsServer extends ValueObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RealmsServer.ServerComparator
static class
RealmsServer.ServerType
static class
RealmsServer.Status
-
Field Summary
Fields Modifier and Type Field Description int
activeSlot
int
daysLeft
boolean
expired
boolean
expiredTrial
long
id
private static org.apache.logging.log4j.Logger
LOGGER
int
minigameId
java.lang.String
minigameImage
java.lang.String
minigameName
java.lang.String
motd
java.lang.String
name
java.lang.String
owner
java.lang.String
ownerUUID
java.util.List<PlayerInfo>
players
java.lang.String
remoteSubscriptionId
RealmsServerPing
serverPing
java.util.Map<java.lang.Integer,RealmsWorldOptions>
slots
RealmsServer.Status
state
RealmsServer.ServerType
worldType
-
Constructor Summary
Constructors Constructor Description RealmsServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RealmsServer
clone()
java.util.Map<java.lang.Integer,RealmsWorldOptions>
cloneSlots(java.util.Map<java.lang.Integer,RealmsWorldOptions> p_230774_1_)
private static java.util.Map<java.lang.Integer,RealmsWorldOptions>
createEmptySlots()
boolean
equals(java.lang.Object p_equals_1_)
java.lang.String
getDescription()
java.lang.String
getMinigameName()
java.lang.String
getName()
private static RealmsServer.Status
getState(java.lang.String p_230780_0_)
java.lang.String
getWorldName(int p_237696_1_)
private static RealmsServer.ServerType
getWorldType(java.lang.String p_230781_0_)
int
hashCode()
static RealmsServer
parse(com.google.gson.JsonObject p_230770_0_)
static RealmsServer
parse(java.lang.String p_230779_0_)
private static java.util.List<PlayerInfo>
parseInvited(com.google.gson.JsonArray p_230769_0_)
private static java.util.Map<java.lang.Integer,RealmsWorldOptions>
parseSlots(com.google.gson.JsonArray p_230776_0_)
void
setDescription(java.lang.String p_230777_1_)
void
setName(java.lang.String p_230773_1_)
private static void
sortInvited(RealmsServer p_230771_0_)
ServerData
toServerData(java.lang.String p_244783_1_)
void
updateServerPing(RealmsServerPlayerList p_230772_1_)
-
Methods inherited from class com.mojang.realmsclient.dto.ValueObject
toString
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
id
public long id
-
remoteSubscriptionId
public java.lang.String remoteSubscriptionId
-
name
public java.lang.String name
-
motd
public java.lang.String motd
-
state
public RealmsServer.Status state
-
owner
public java.lang.String owner
-
ownerUUID
public java.lang.String ownerUUID
-
players
public java.util.List<PlayerInfo> players
-
slots
public java.util.Map<java.lang.Integer,RealmsWorldOptions> slots
-
expired
public boolean expired
-
expiredTrial
public boolean expiredTrial
-
daysLeft
public int daysLeft
-
worldType
public RealmsServer.ServerType worldType
-
activeSlot
public int activeSlot
-
minigameName
public java.lang.String minigameName
-
minigameId
public int minigameId
-
minigameImage
public java.lang.String minigameImage
-
serverPing
public RealmsServerPing serverPing
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
-
getName
public java.lang.String getName()
-
getMinigameName
public java.lang.String getMinigameName()
-
setName
public void setName(java.lang.String p_230773_1_)
-
setDescription
public void setDescription(java.lang.String p_230777_1_)
-
updateServerPing
public void updateServerPing(RealmsServerPlayerList p_230772_1_)
-
parse
public static RealmsServer parse(com.google.gson.JsonObject p_230770_0_)
-
sortInvited
private static void sortInvited(RealmsServer p_230771_0_)
-
parseInvited
private static java.util.List<PlayerInfo> parseInvited(com.google.gson.JsonArray p_230769_0_)
-
parseSlots
private static java.util.Map<java.lang.Integer,RealmsWorldOptions> parseSlots(com.google.gson.JsonArray p_230776_0_)
-
createEmptySlots
private static java.util.Map<java.lang.Integer,RealmsWorldOptions> createEmptySlots()
-
parse
public static RealmsServer parse(java.lang.String p_230779_0_)
-
getState
private static RealmsServer.Status getState(java.lang.String p_230780_0_)
-
getWorldType
private static RealmsServer.ServerType getWorldType(java.lang.String p_230781_0_)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
clone
public RealmsServer clone()
- Overrides:
clone
in classjava.lang.Object
-
cloneSlots
public java.util.Map<java.lang.Integer,RealmsWorldOptions> cloneSlots(java.util.Map<java.lang.Integer,RealmsWorldOptions> p_230774_1_)
-
getWorldName
public java.lang.String getWorldName(int p_237696_1_)
-
toServerData
public ServerData toServerData(java.lang.String p_244783_1_)
-
-