Class RealmsServer

java.lang.Object
com.mojang.realmsclient.dto.ValueObject
com.mojang.realmsclient.dto.RealmsServer
All Implemented Interfaces:
ReflectionBasedSerialization

public class RealmsServer extends ValueObject implements ReflectionBasedSerialization
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • NO_VALUE

      private static final int NO_VALUE
      See Also:
    • WORLD_CLOSED_COMPONENT

      public static final Component WORLD_CLOSED_COMPONENT
    • id

      @SerializedName("id") public long id
    • remoteSubscriptionId

      @Nullable @SerializedName("remoteSubscriptionId") public String remoteSubscriptionId
    • name

      @Nullable @SerializedName("name") public String name
    • motd

      @SerializedName("motd") public String motd
    • state

      @SerializedName("state") public RealmsServer.State state
    • owner

      @Nullable @SerializedName("owner") public String owner
    • ownerUUID

      @SerializedName("ownerUUID") public UUID ownerUUID
    • players

      @SerializedName("players") public List<PlayerInfo> players
    • slotList

      @SerializedName("slots") private List<RealmsSlot> slotList
    • slots

      public Map<Integer,RealmsSlot> slots
    • expired

      @SerializedName("expired") public boolean expired
    • expiredTrial

      @SerializedName("expiredTrial") public boolean expiredTrial
    • daysLeft

      @SerializedName("daysLeft") public int daysLeft
    • worldType

      @SerializedName("worldType") public RealmsServer.WorldType worldType
    • isHardcore

      @SerializedName("isHardcore") public boolean isHardcore
    • gameMode

      @SerializedName("gameMode") public int gameMode
    • activeSlot

      @SerializedName("activeSlot") public int activeSlot
    • minigameName

      @Nullable @SerializedName("minigameName") public String minigameName
    • minigameId

      @SerializedName("minigameId") public int minigameId
    • minigameImage

      @Nullable @SerializedName("minigameImage") public String minigameImage
    • parentRealmId

      @SerializedName("parentWorldId") public long parentRealmId
    • parentWorldName

      @Nullable @SerializedName("parentWorldName") public String parentWorldName
    • activeVersion

      @SerializedName("activeVersion") public String activeVersion
    • compatibility

      @SerializedName("compatibility") public RealmsServer.Compatibility compatibility
    • regionSelectionPreference

      @Nullable @SerializedName("regionSelectionPreference") public RegionSelectionPreferenceDto regionSelectionPreference
  • Constructor Details

    • RealmsServer

      public RealmsServer()
  • Method Details

    • getDescription

      public String getDescription()
    • getName

      @Nullable public String getName()
    • getMinigameName

      @Nullable public String getMinigameName()
    • setName

      public void setName(String pName)
    • setDescription

      public void setDescription(String pMotd)
    • parse

      public static RealmsServer parse(GuardedSerializer pSerializer, String pJson)
    • finalize

      public static void finalize(RealmsServer pServer)
    • sortInvited

      private static void sortInvited(RealmsServer pServer)
    • finalizeSlots

      private static void finalizeSlots(RealmsServer pServer)
    • createEmptySlots

      private static List<RealmsSlot> 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object pOther)
      Overrides:
      equals in class Object
    • clone

      public RealmsServer clone()
      Overrides:
      clone in class Object
    • cloneSlots

      public Map<Integer,RealmsSlot> cloneSlots(Map<Integer,RealmsSlot> pSlots)
    • isSnapshotRealm

      public boolean isSnapshotRealm()
    • isMinigameActive

      public boolean isMinigameActive()
    • getWorldName

      public String getWorldName(int pSlot)
    • toServerData

      public ServerData toServerData(String pIp)