Skip to content

Package com.mojang.realmsclient.dto

Part 1/1


Backup

  • Full name: com.mojang.realmsclient.dto.Backup
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/Backup.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.Backup#isUploadedVersion()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/Backup.java:49
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Uploaded Version

ทำงานยังไง

คืนค่า: this.uploadedVersion.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Backup instance = ...;
boolean result = instance.isUploadedVersion();

com.mojang.realmsclient.dto.Backup#parse(JsonElement)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/Backup.java:25
  • Modifiers: public static
  • Return: Backup

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getAsJsonObject(), getStringOr(), getDateOr(), getLongOr(), has(), entrySet(), getValue(), isJsonNull(). สร้างออบเจ็กต์: Backup. คืนค่า: backup.

Parameters

  • JsonElement jsonElement

ตัวอย่างใช้งาน

JsonElement jsonElement = ...;
Backup result = Backup.parse(jsonElement);

com.mojang.realmsclient.dto.Backup#setUploadedVersion(boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/Backup.java:53
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Uploaded Version

ทำงานยังไง

แก้ state: uploadedVersion.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

Backup instance = ...;
instance.setUploadedVersion(true);

BackupList

  • Full name: com.mojang.realmsclient.dto.BackupList
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/BackupList.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.BackupList#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/BackupList.java:18
  • Modifiers: public static
  • Return: BackupList

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: newArrayList(), getAsJsonObject(), get(), isJsonArray(), getAsJsonArray(), iterator(), hasNext(), add(). สร้างออบเจ็กต์: JsonParser, BackupList. คืนค่า: backupList.

Parameters

  • String string

ตัวอย่างใช้งาน

BackupList result = BackupList.parse("value");

GuardedSerializer

  • Full name: com.mojang.realmsclient.dto.GuardedSerializer
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/GuardedSerializer.java
  • Type: class
  • Modifiers: public

com.mojang.realmsclient.dto.GuardedSerializer#fromJson(String,Class<T>)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/GuardedSerializer.java:21
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ fromJson ตาม implementation ของ GuardedSerializer

ทำงานยังไง

คืนค่า: this.gson.fromJson(string, class_).

Parameters

  • String string
  • Class<T> class_

ตัวอย่างใช้งาน

GuardedSerializer instance = ...;
Class<T> class_ = ...;
T result = instance.fromJson("value", class_);

com.mojang.realmsclient.dto.GuardedSerializer#toJson(JsonElement)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/GuardedSerializer.java:17
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toJson ตาม implementation ของ GuardedSerializer

ทำงานยังไง

คืนค่า: this.gson.toJson(jsonElement).

Parameters

  • JsonElement jsonElement

ตัวอย่างใช้งาน

GuardedSerializer instance = ...;
JsonElement jsonElement = ...;
String result = instance.toJson(jsonElement);

com.mojang.realmsclient.dto.GuardedSerializer#toJson(ReflectionBasedSerialization)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/GuardedSerializer.java:13
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toJson ตาม implementation ของ GuardedSerializer

ทำงานยังไง

คืนค่า: this.gson.toJson(reflectionBasedSerialization).

Parameters

  • ReflectionBasedSerialization reflectionBasedSerialization

ตัวอย่างใช้งาน

GuardedSerializer instance = ...;
ReflectionBasedSerialization reflectionBasedSerialization = ...;
String result = instance.toJson(reflectionBasedSerialization);

Ops

  • Full name: com.mojang.realmsclient.dto.Ops
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/Ops.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.Ops#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/Ops.java:15
  • Modifiers: public static
  • Return: Ops

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getAsJsonObject(), get(), isJsonArray(), getAsJsonArray(), add(), getAsString(). สร้างออบเจ็กต์: Ops, JsonParser. คืนค่า: ops.

Parameters

  • String string

ตัวอย่างใช้งาน

Ops result = Ops.parse("value");

PendingInvite

  • Full name: com.mojang.realmsclient.dto.PendingInvite
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/PendingInvite.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.PendingInvite#parse(JsonObject)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PendingInvite.java:22
  • Modifiers: public static
  • Return: PendingInvite

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: getStringOr(), getUuidOr(), getDateOr(), error(), getMessage(). สร้างออบเจ็กต์: PendingInvite. คืนค่า: pendingInvite.

Parameters

  • JsonObject jsonObject

ตัวอย่างใช้งาน

JsonObject jsonObject = ...;
PendingInvite result = PendingInvite.parse(jsonObject);

PendingInvitesList

  • Full name: com.mojang.realmsclient.dto.PendingInvitesList
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/PendingInvitesList.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.PendingInvitesList#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PendingInvitesList.java:19
  • Modifiers: public static
  • Return: PendingInvitesList

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getAsJsonObject(), get(), isJsonArray(), getAsJsonArray(), iterator(), hasNext(), add(), next(). สร้างออบเจ็กต์: PendingInvitesList, JsonParser. คืนค่า: pendingInvitesList.

Parameters

  • String string

ตัวอย่างใช้งาน

PendingInvitesList result = PendingInvitesList.parse("value");

PlayerInfo

  • Full name: com.mojang.realmsclient.dto.PlayerInfo
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/PlayerInfo.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject
  • Implements: ReflectionBasedSerialization

com.mojang.realmsclient.dto.PlayerInfo#getAccepted()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:47
  • Modifiers: public
  • Return: boolean

คืออะไร

อ่านค่า Accepted

ทำงานยังไง

คืนค่า: this.accepted.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
boolean result = instance.getAccepted();

com.mojang.realmsclient.dto.PlayerInfo#getName()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:23
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

แก้ state: name. คืนค่า: this.name == null ? "" : this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
String result = instance.getName();

com.mojang.realmsclient.dto.PlayerInfo#getOnline()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:55
  • Modifiers: public
  • Return: boolean

คืออะไร

อ่านค่า Online

ทำงานยังไง

คืนค่า: this.online.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
boolean result = instance.getOnline();

com.mojang.realmsclient.dto.PlayerInfo#getUuid()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:31
  • Modifiers: public
  • Return: UUID

คืออะไร

อ่านค่า Uuid

ทำงานยังไง

คืนค่า: this.uuid.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
UUID result = instance.getUuid();

com.mojang.realmsclient.dto.PlayerInfo#isOperator()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:39
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Operator

ทำงานยังไง

คืนค่า: this.operator.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
boolean result = instance.isOperator();

com.mojang.realmsclient.dto.PlayerInfo#setAccepted(boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:51
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Accepted

ทำงานยังไง

แก้ state: accepted.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
instance.setAccepted(true);

com.mojang.realmsclient.dto.PlayerInfo#setName(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:27
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Name

ทำงานยังไง

แก้ state: name.

Parameters

  • String string

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
instance.setName("value");

com.mojang.realmsclient.dto.PlayerInfo#setOnline(boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:59
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Online

ทำงานยังไง

แก้ state: online.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
instance.setOnline(true);

com.mojang.realmsclient.dto.PlayerInfo#setOperator(boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:43
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Operator

ทำงานยังไง

แก้ state: operator.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
instance.setOperator(true);

com.mojang.realmsclient.dto.PlayerInfo#setUuid(UUID)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/PlayerInfo.java:35
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Uuid

ทำงานยังไง

แก้ state: uuid.

Parameters

  • UUID uUID

ตัวอย่างใช้งาน

PlayerInfo instance = ...;
UUID uUID = ...;
instance.setUuid(uUID);

RealmsDescriptionDto

  • Full name: com.mojang.realmsclient.dto.RealmsDescriptionDto
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsDescriptionDto.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject
  • Implements: ReflectionBasedSerialization

com.mojang.realmsclient.dto.RealmsDescriptionDto#RealmsDescriptionDto(String,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsDescriptionDto.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RealmsDescriptionDto ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: name, description.

Parameters

  • String string
  • String string2

ตัวอย่างใช้งาน

RealmsDescriptionDto instance = new RealmsDescriptionDto("value", "value");

RealmsNews

  • Full name: com.mojang.realmsclient.dto.RealmsNews
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsNews.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.RealmsNews#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNews.java:18
  • Modifiers: public static
  • Return: RealmsNews

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: parseString(), getAsJsonObject(), getStringOr(), error(), getMessage(). สร้างออบเจ็กต์: RealmsNews. คืนค่า: realmsNews.

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsNews result = RealmsNews.parse("value");

RealmsNotification

  • Full name: com.mojang.realmsclient.dto.RealmsNotification
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsNotification.java
  • Type: class
  • Modifiers: public

com.mojang.realmsclient.dto.RealmsNotification#dismissable()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNotification.java:52
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ dismissable ตาม implementation ของ RealmsNotification

ทำงานยังไง

คืนค่า: this.dismissable.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsNotification instance = ...;
boolean result = instance.dismissable();

com.mojang.realmsclient.dto.RealmsNotification#parseList(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNotification.java:60
  • Modifiers: public static
  • Return: List<RealmsNotification>

คืออะไร

แปลง/วิเคราะห์ข้อมูล List

ทำงานยังไง

มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: parseString(), getAsJsonObject(), get(), getAsJsonArray(), add(), parse(), error(). สร้างออบเจ็กต์: ArrayList<>. คืนค่า: list.

Parameters

  • String string

ตัวอย่างใช้งาน

List<RealmsNotification> result = RealmsNotification.parseList("value");

com.mojang.realmsclient.dto.RealmsNotification#seen()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNotification.java:48
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ seen ตาม implementation ของ RealmsNotification

ทำงานยังไง

คืนค่า: this.seen.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsNotification instance = ...;
boolean result = instance.seen();

com.mojang.realmsclient.dto.RealmsNotification#uuid()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNotification.java:56
  • Modifiers: public
  • Return: UUID

คืออะไร

ดำเนินการ uuid ตาม implementation ของ RealmsNotification

ทำงานยังไง

คืนค่า: this.uuid.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsNotification instance = ...;
UUID result = instance.uuid();

RealmsNotification$InfoPopup

  • Full name: com.mojang.realmsclient.dto.RealmsNotification$InfoPopup
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsNotification.java
  • Type: class
  • Modifiers: public static
  • Extends: RealmsNotification

com.mojang.realmsclient.dto.RealmsNotification$InfoPopup#buildScreen(Screen,Consumer<UUID>)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNotification.java:126
  • Modifiers: public
  • Return: PopupScreen

คืออะไร

สร้าง Screen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: createComponent(), warn(), Builder(), setImage(), setMessage(), addButton(), getInstance(), setScreen(). สร้างออบเจ็กต์: PopupScreen.Builder, ConfirmLinkScreen. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • Screen screen
  • Consumer<UUID> consumer

ตัวอย่างใช้งาน

RealmsNotification.InfoPopup instance = ...;
Screen screen = ...;
Consumer<UUID> consumer = ...;
PopupScreen result = instance.buildScreen(screen, consumer);

com.mojang.realmsclient.dto.RealmsNotification$InfoPopup#parse(RealmsNotification,JsonObject)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNotification.java:118
  • Modifiers: public static
  • Return: RealmsNotification.InfoPopup

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

เรียกต่อ: getRequired(), getRequiredString(), getOptional(), InfoPopup(). สร้างออบเจ็กต์: RealmsNotification.InfoPopup. คืนค่า: new RealmsNotification.InfoPopup(realmsNotification, realmsText, realmsText2, resourceLocation, urlButton).

Parameters

  • RealmsNotification realmsNotification
  • JsonObject jsonObject

ตัวอย่างใช้งาน

RealmsNotification realmsNotification = ...;
JsonObject jsonObject = ...;
RealmsNotification.InfoPopup result = RealmsNotification.InfoPopup.parse(realmsNotification, jsonObject);

RealmsNotification$VisitUrl

  • Full name: com.mojang.realmsclient.dto.RealmsNotification$VisitUrl
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsNotification.java
  • Type: class
  • Modifiers: public static
  • Extends: RealmsNotification

com.mojang.realmsclient.dto.RealmsNotification$VisitUrl#buildOpenLinkButton(Screen)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNotification.java:200
  • Modifiers: public
  • Return: Button

คืออะไร

สร้าง Open Link Button

ทำงานยังไง

เรียกต่อ: createComponent(), builder(), confirmLink(), build(). คืนค่า: Button.builder(component, ConfirmLinkScreen.confirmLink(screen, this.url)).build().

Parameters

  • Screen screen

ตัวอย่างใช้งาน

RealmsNotification.VisitUrl instance = ...;
Screen screen = ...;
Button result = instance.buildOpenLinkButton(screen);

com.mojang.realmsclient.dto.RealmsNotification$VisitUrl#getMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNotification.java:196
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Message

ทำงานยังไง

เรียกต่อ: createComponent(), translatable(). คืนค่า: this.message.createComponent(Component.translatable("mco.notification.visitUrl.message.default")).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsNotification.VisitUrl instance = ...;
Component result = instance.getMessage();

com.mojang.realmsclient.dto.RealmsNotification$VisitUrl#parse(RealmsNotification,JsonObject)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsNotification.java:189
  • Modifiers: public static
  • Return: RealmsNotification.VisitUrl

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

เรียกต่อ: getRequiredString(), getRequired(), VisitUrl(). สร้างออบเจ็กต์: RealmsNotification.VisitUrl. คืนค่า: new RealmsNotification.VisitUrl(realmsNotification, string, realmsText, realmsText2).

Parameters

  • RealmsNotification realmsNotification
  • JsonObject jsonObject

ตัวอย่างใช้งาน

RealmsNotification realmsNotification = ...;
JsonObject jsonObject = ...;
RealmsNotification.VisitUrl result = RealmsNotification.VisitUrl.parse(realmsNotification, jsonObject);

RealmsServer

  • Full name: com.mojang.realmsclient.dto.RealmsServer
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsServer.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.RealmsServer#clone()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:289
  • Modifiers: public
  • Return: RealmsServer

คืออะไร

ทำสำเนา clone

ทำงานยังไง

เรียกต่อ: cloneSlots(). สร้างออบเจ็กต์: RealmsServer. คืนค่า: realmsServer.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
RealmsServer result = instance.clone();

com.mojang.realmsclient.dto.RealmsServer#cloneSlots(Map<Integer, RealmsWorldOptions>)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:317
  • Modifiers: public
  • Return: Map<Integer, RealmsWorldOptions>

คืออะไร

ทำสำเนา Slots

ทำงานยังไง

มีการวนลูป. เรียกต่อ: newHashMap(), entrySet(), put(), getKey(), getValue(), clone(). คืนค่า: map2.

Parameters

  • Map<Integer, RealmsWorldOptions> map

ตัวอย่างใช้งาน

RealmsServer instance = ...;
Map<Integer, RealmsWorldOptions> map = ...;
Map<Integer, RealmsWorldOptions> result = instance.cloneSlots(map);

com.mojang.realmsclient.dto.RealmsServer#equals(Object)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:263
  • Modifiers: public
  • Return: boolean

คืออะไร

เปรียบเทียบความเท่ากัน equals

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getClass(), append(), isEquals(). สร้างออบเจ็กต์: EqualsBuilder. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • Object object

ตัวอย่างใช้งาน

RealmsServer instance = ...;
Object object = ...;
boolean result = instance.equals(object);

com.mojang.realmsclient.dto.RealmsServer#getCompatibility(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:238
  • Modifiers: public static
  • Return: RealmsServer.Compatibility

คืออะไร

อ่านค่า Compatibility

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: valueOf(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsServer.Compatibility result = RealmsServer.getCompatibility("value");

com.mojang.realmsclient.dto.RealmsServer#getDescription()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:61
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Description

ทำงานยังไง

คืนค่า: this.motd.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
String result = instance.getDescription();

com.mojang.realmsclient.dto.RealmsServer#getMinigameName()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:70
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Minigame Name

ทำงานยังไง

คืนค่า: this.minigameName.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
String result = instance.getMinigameName();

com.mojang.realmsclient.dto.RealmsServer#getName()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:65
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
String result = instance.getName();

com.mojang.realmsclient.dto.RealmsServer#getWorldName(int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:335
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า World Name

ทำงานยังไง

แก้ state: name. เรียกต่อ: get(), getSlotName(). คืนค่า: this.name == null ? this.slots.get(i).getSlotName(i) : this.name + " (" + this.slots.get(i).getSlotName(i) + ")".

Parameters

  • int i

ตัวอย่างใช้งาน

RealmsServer instance = ...;
String result = instance.getWorldName(0);

com.mojang.realmsclient.dto.RealmsServer#hashCode()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:258
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ hashCode ตาม implementation ของ RealmsServer

ทำงานยังไง

เรียกต่อ: hash(). คืนค่า: Objects.hash(this.id, this.name, this.motd, this.state, this.owner, this.expired).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
int result = instance.hashCode();

com.mojang.realmsclient.dto.RealmsServer#isCompatible()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:246
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Compatible

ทำงานยังไง

คืนค่า: this.compatibility.isCompatible().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
boolean result = instance.isCompatible();

com.mojang.realmsclient.dto.RealmsServer#isMinigameActive()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:331
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Minigame Active

ทำงานยังไง

แก้ state: worldType. คืนค่า: this.worldType == RealmsServer.WorldType.MINIGAME.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
boolean result = instance.isMinigameActive();

com.mojang.realmsclient.dto.RealmsServer#isSnapshotRealm()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:327
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Snapshot Realm

ทำงานยังไง

คืนค่า: this.parentRealmId != -1L.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
boolean result = instance.isSnapshotRealm();

com.mojang.realmsclient.dto.RealmsServer#needsDowngrade()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:254
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ needsDowngrade ตาม implementation ของ RealmsServer

ทำงานยังไง

คืนค่า: this.compatibility.needsDowngrade().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
boolean result = instance.needsDowngrade();

com.mojang.realmsclient.dto.RealmsServer#needsUpgrade()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:250
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ needsUpgrade ตาม implementation ของ RealmsServer

ทำงานยังไง

คืนค่า: this.compatibility.needsUpgrade().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer instance = ...;
boolean result = instance.needsUpgrade();

com.mojang.realmsclient.dto.RealmsServer#parse(JsonObject)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:83
  • Modifiers: public static
  • Return: RealmsServer

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getLongOr(), getStringOr(), getState(), name(), get(), isJsonArray(), parseInvited(), getAsJsonArray(). สร้างออบเจ็กต์: RealmsServer. คืนค่า: realmsServer.

Parameters

  • JsonObject jsonObject

ตัวอย่างใช้งาน

JsonObject jsonObject = ...;
RealmsServer result = RealmsServer.parse(jsonObject);

com.mojang.realmsclient.dto.RealmsServer#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:213
  • Modifiers: public static
  • Return: RealmsServer

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: getAsJsonObject(), error(), getMessage(). สร้างออบเจ็กต์: JsonParser, RealmsServer. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsServer result = RealmsServer.parse("value");

com.mojang.realmsclient.dto.RealmsServer#setDescription(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:79
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Description

ทำงานยังไง

แก้ state: motd.

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsServer instance = ...;
instance.setDescription("value");

com.mojang.realmsclient.dto.RealmsServer#setName(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:75
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Name

ทำงานยังไง

แก้ state: name.

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsServer instance = ...;
instance.setName("value");

com.mojang.realmsclient.dto.RealmsServer#toServerData(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:339
  • Modifiers: public
  • Return: ServerData

คืออะไร

ดำเนินการ toServerData ตาม implementation ของ RealmsServer

ทำงานยังไง

เรียกต่อ: requireNonNullElse(). สร้างออบเจ็กต์: ServerData. คืนค่า: new ServerData(Objects.requireNonNullElse(this.name, "unknown server"), string, ServerData.Type.REALM).

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsServer instance = ...;
ServerData result = instance.toServerData("value");

RealmsServer$Compatibility

  • Full name: com.mojang.realmsclient.dto.RealmsServer$Compatibility
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsServer.java
  • Type: enum
  • Modifiers: public

com.mojang.realmsclient.dto.RealmsServer$Compatibility#isCompatible()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:352
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Compatible

ทำงานยังไง

คืนค่า: this == COMPATIBLE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer.Compatibility instance = ...;
boolean result = instance.isCompatible();

com.mojang.realmsclient.dto.RealmsServer$Compatibility#needsDowngrade()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:360
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ needsDowngrade ตาม implementation ของ RealmsServer$Compatibility

ทำงานยังไง

คืนค่า: this == NEEDS_DOWNGRADE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer.Compatibility instance = ...;
boolean result = instance.needsDowngrade();

com.mojang.realmsclient.dto.RealmsServer$Compatibility#needsUpgrade()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:356
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ needsUpgrade ตาม implementation ของ RealmsServer$Compatibility

ทำงานยังไง

คืนค่า: this == NEEDS_UPGRADE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsServer.Compatibility instance = ...;
boolean result = instance.needsUpgrade();

RealmsServer$McoServerComparator

  • Full name: com.mojang.realmsclient.dto.RealmsServer$McoServerComparator
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsServer.java
  • Type: class
  • Modifiers: public static
  • Implements: Comparator<RealmsServer>

com.mojang.realmsclient.dto.RealmsServer$McoServerComparator#compare(RealmsServer,RealmsServer)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:373
  • Modifiers: public
  • Return: int

คืออะไร

เปรียบเทียบ compare

ทำงานยังไง

เรียกต่อ: start(), compareTrueFirst(), isSnapshotRealm(), equals(), compareFalseFirst(), result().

Parameters

  • RealmsServer realmsServer
  • RealmsServer realmsServer2

ตัวอย่างใช้งาน

RealmsServer.McoServerComparator instance = ...;
RealmsServer realmsServer = ...;
RealmsServer realmsServer2 = ...;
int result = instance.compare(realmsServer, realmsServer2);

com.mojang.realmsclient.dto.RealmsServer$McoServerComparator#McoServerComparator(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServer.java:369
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RealmsServer.McoServerComparator ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: refOwner.

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsServer.McoServerComparator instance = new RealmsServer.McoServerComparator("value");

RealmsServerAddress

  • Full name: com.mojang.realmsclient.dto.RealmsServerAddress
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsServerAddress.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.RealmsServerAddress#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServerAddress.java:22
  • Modifiers: public static
  • Return: RealmsServerAddress

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: parseString(), getAsJsonObject(), getStringOr(), error(), getMessage(). สร้างออบเจ็กต์: RealmsServerAddress. คืนค่า: realmsServerAddress.

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsServerAddress result = RealmsServerAddress.parse("value");

RealmsServerList

  • Full name: com.mojang.realmsclient.dto.RealmsServerList
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsServerList.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.RealmsServerList#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServerList.java:18
  • Modifiers: public static
  • Return: RealmsServerList

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: parseString(), getAsJsonObject(), get(), isJsonArray(), getAsJsonArray(), add(), error(), getMessage(). สร้างออบเจ็กต์: RealmsServerList, ArrayList<>. คืนค่า: realmsServerList.

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsServerList result = RealmsServerList.parse("value");

RealmsServerPlayerLists

  • Full name: com.mojang.realmsclient.dto.RealmsServerPlayerLists
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsServerPlayerLists.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.RealmsServerPlayerLists#getProfileResultsFor(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServerPlayerLists.java:85
  • Modifiers: public
  • Return: List<ProfileResult>

คืออะไร

อ่านค่า Profile Results For

ทำงานยังไง

เรียกต่อ: get(), of(). คืนค่า: list != null ? list : List.of().

Parameters

  • long l

ตัวอย่างใช้งาน

RealmsServerPlayerLists instance = ...;
List<ProfileResult> result = instance.getProfileResultsFor(0L);

com.mojang.realmsclient.dto.RealmsServerPlayerLists#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsServerPlayerLists.java:29
  • Modifiers: public static
  • Return: RealmsServerPlayerLists

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: builder(), isArrayNode(), getAsJsonArray(), getAsJsonObject(), getStringOr(), parseString(), isJsonArray(), parsePlayers(). สร้างออบเจ็กต์: RealmsServerPlayerLists. คืนค่า: realmsServerPlayerLists.

Parameters

  • String string

ตัวอย่างใช้งาน

RealmsServerPlayerLists result = RealmsServerPlayerLists.parse("value");

RealmsText

  • Full name: com.mojang.realmsclient.dto.RealmsText
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsText.java
  • Type: class
  • Modifiers: public

com.mojang.realmsclient.dto.RealmsText#createComponent()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsText.java:31
  • Modifiers: public
  • Return: Component

คืออะไร

สร้าง Component

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: args. เรียกต่อ: exists(), translatable(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsText instance = ...;
Component result = instance.createComponent();

com.mojang.realmsclient.dto.RealmsText#createComponent(Component)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsText.java:27
  • Modifiers: public
  • Return: Component

คืออะไร

สร้าง Component

ทำงานยังไง

เรียกต่อ: requireNonNullElse(). คืนค่า: Objects.requireNonNullElse(this.createComponent(), component).

Parameters

  • Component component

ตัวอย่างใช้งาน

RealmsText instance = ...;
Component component = ...;
Component result = instance.createComponent(component);

com.mojang.realmsclient.dto.RealmsText#parse(JsonObject)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsText.java:40
  • Modifiers: public static
  • Return: RealmsText

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getRequiredString(), get(), isJsonNull(), getAsJsonArray(), size(), getAsString(). สร้างออบเจ็กต์: RealmsText. คืนค่า: new RealmsText(string, strings).

Parameters

  • JsonObject jsonObject

ตัวอย่างใช้งาน

JsonObject jsonObject = ...;
RealmsText result = RealmsText.parse(jsonObject);

com.mojang.realmsclient.dto.RealmsText#toString()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsText.java:58
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ RealmsText

ทำงานยังไง

คืนค่า: this.translationKey.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsText instance = ...;
String result = instance.toString();

RealmsWorldOptions

  • Full name: com.mojang.realmsclient.dto.RealmsWorldOptions
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsWorldOptions.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.RealmsWorldOptions#clone()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:164
  • Modifiers: public
  • Return: RealmsWorldOptions

คืออะไร

ทำสำเนา clone

ทำงานยังไง

สร้างออบเจ็กต์: RealmsWorldOptions.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsWorldOptions instance = ...;
RealmsWorldOptions result = instance.clone();

com.mojang.realmsclient.dto.RealmsWorldOptions#createDefaults()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:62
  • Modifiers: public static
  • Return: RealmsWorldOptions

คืออะไร

สร้าง Defaults

ทำงานยังไง

สร้างออบเจ็กต์: RealmsWorldOptions. คืนค่า: new RealmsWorldOptions(true, true, 0, false, 2, 0, false, false, "", "", DEFAULT_COMPATIBILITY).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsWorldOptions result = RealmsWorldOptions.createDefaults();

com.mojang.realmsclient.dto.RealmsWorldOptions#createDefaultsWith(GameType,Difficulty,boolean,String,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:66
  • Modifiers: public static
  • Return: RealmsWorldOptions

คืออะไร

สร้าง Defaults With

ทำงานยังไง

เรียกต่อ: getId(). สร้างออบเจ็กต์: RealmsWorldOptions. คืนค่า: new RealmsWorldOptions(true, true, 0, false, difficulty.getId(), gameType.getId(), bl, false, string2, string, DEFAULT_COMPATIBILITY).

Parameters

  • GameType gameType
  • Difficulty difficulty
  • boolean bl
  • String string
  • String string2

ตัวอย่างใช้งาน

GameType gameType = ...;
Difficulty difficulty = ...;
RealmsWorldOptions result = RealmsWorldOptions.createDefaultsWith(gameType, difficulty, true, "value", "value");

com.mojang.realmsclient.dto.RealmsWorldOptions#createEmptyDefaults()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:74
  • Modifiers: public static
  • Return: RealmsWorldOptions

คืออะไร

สร้าง Empty Defaults

ทำงานยังไง

เรียกต่อ: createDefaults(), setEmpty(). คืนค่า: realmsWorldOptions.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsWorldOptions result = RealmsWorldOptions.createEmptyDefaults();

com.mojang.realmsclient.dto.RealmsWorldOptions#createFromSettings(LevelSettings,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:70
  • Modifiers: public static
  • Return: RealmsWorldOptions

คืออะไร

สร้าง From Settings

ทำงานยังไง

เรียกต่อ: createDefaultsWith(), gameType(), difficulty(), hardcore(), levelName(). คืนค่า: createDefaultsWith(levelSettings.gameType(), levelSettings.difficulty(), levelSettings.hardcore(), string, levelSettings.levelName()).

Parameters

  • LevelSettings levelSettings
  • String string

ตัวอย่างใช้งาน

LevelSettings levelSettings = ...;
RealmsWorldOptions result = RealmsWorldOptions.createFromSettings(levelSettings, "value");

com.mojang.realmsclient.dto.RealmsWorldOptions#getDefaultSlotName(int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:111
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Default Slot Name

ทำงานยังไง

เรียกต่อ: get(). คืนค่า: I18n.get("mco.configure.world.slot", i).

Parameters

  • int i

ตัวอย่างใช้งาน

RealmsWorldOptions instance = ...;
String result = instance.getDefaultSlotName(0);

com.mojang.realmsclient.dto.RealmsWorldOptions#getSlotName(int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:103
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Slot Name

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isBlank(), get(), getDefaultSlotName(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • int i

ตัวอย่างใช้งาน

RealmsWorldOptions instance = ...;
String result = instance.getSlotName(0);

com.mojang.realmsclient.dto.RealmsWorldOptions#parse(JsonObject,RealmsSettings)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:84
  • Modifiers: public static
  • Return: RealmsWorldOptions

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

เรียกต่อ: getBooleanOr(), getIntOr(), hardcore(), getRequiredStringOr(), getCompatibility(), name(), getLongOr(), getStringOr(). สร้างออบเจ็กต์: RealmsWorldOptions. คืนค่า: realmsWorldOptions.

Parameters

  • JsonObject jsonObject
  • RealmsSettings realmsSettings

ตัวอย่างใช้งาน

JsonObject jsonObject = ...;
RealmsSettings realmsSettings = ...;
RealmsWorldOptions result = RealmsWorldOptions.parse(jsonObject, realmsSettings);

com.mojang.realmsclient.dto.RealmsWorldOptions#RealmsWorldOptions(boolean,boolean,int,boolean,int,int,boolean,boolean,String,String,RealmsServer.Compatibility)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:46
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RealmsWorldOptions ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pvp, spawnMonsters, spawnProtection, commandBlocks, difficulty, gameMode.

Parameters

  • boolean bl
  • boolean bl2
  • int i
  • boolean bl3
  • int j
  • int k
  • boolean bl4
  • boolean bl5
  • String string
  • String string2
  • RealmsServer.Compatibility compatibility

ตัวอย่างใช้งาน

RealmsServer.Compatibility compatibility = ...;
RealmsWorldOptions instance = new RealmsWorldOptions(true, true, 0, true, 0, 0, true, true, "value", "value", compatibility);

com.mojang.realmsclient.dto.RealmsWorldOptions#setEmpty(boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:80
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Empty

ทำงานยังไง

แก้ state: empty.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

RealmsWorldOptions instance = ...;
instance.setEmpty(true);

com.mojang.realmsclient.dto.RealmsWorldOptions#toJson()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldOptions.java:115
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toJson ตาม implementation ของ RealmsWorldOptions

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: addProperty(), equals(), name(), toString(). สร้างออบเจ็กต์: JsonObject. คืนค่า: jsonObject.toString().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RealmsWorldOptions instance = ...;
String result = instance.toJson();

RealmsWorldResetDto

  • Full name: com.mojang.realmsclient.dto.RealmsWorldResetDto
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RealmsWorldResetDto.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject
  • Implements: ReflectionBasedSerialization

com.mojang.realmsclient.dto.RealmsWorldResetDto#RealmsWorldResetDto(String,long,int,boolean,Set<String>)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RealmsWorldResetDto.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RealmsWorldResetDto ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: seed, worldTemplateId, levelType, generateStructures, experiments.

Parameters

  • String string
  • long l
  • int i
  • boolean bl
  • Set<String> set

ตัวอย่างใช้งาน

Set<String> set = ...;
RealmsWorldResetDto instance = new RealmsWorldResetDto("value", 0L, 0, true, set);

RegionPingResult

  • Full name: com.mojang.realmsclient.dto.RegionPingResult
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/RegionPingResult.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject
  • Implements: ReflectionBasedSerialization

com.mojang.realmsclient.dto.RegionPingResult#ping()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RegionPingResult.java:20
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ ping ตาม implementation ของ RegionPingResult

ทำงานยังไง

คืนค่า: this.ping.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RegionPingResult instance = ...;
int result = instance.ping();

com.mojang.realmsclient.dto.RegionPingResult#RegionPingResult(String,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RegionPingResult.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RegionPingResult ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: regionName, ping.

Parameters

  • String string
  • int i

ตัวอย่างใช้งาน

RegionPingResult instance = new RegionPingResult("value", 0);

com.mojang.realmsclient.dto.RegionPingResult#toString()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/RegionPingResult.java:24
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ RegionPingResult

ทำงานยังไง

เรียกต่อ: format(). คืนค่า: String.format(Locale.ROOT, "%s --> %.2f ms", this.regionName, (float)this.ping).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RegionPingResult instance = ...;
String result = instance.toString();

ServerActivity

  • Full name: com.mojang.realmsclient.dto.ServerActivity
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/ServerActivity.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.ServerActivity#parse(JsonObject)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/ServerActivity.java:16
  • Modifiers: public static
  • Return: ServerActivity

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: getStringOr(), getLongOr(). สร้างออบเจ็กต์: ServerActivity. คืนค่า: serverActivity.

Parameters

  • JsonObject jsonObject

ตัวอย่างใช้งาน

JsonObject jsonObject = ...;
ServerActivity result = ServerActivity.parse(jsonObject);

ServerActivityList

  • Full name: com.mojang.realmsclient.dto.ServerActivityList
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/ServerActivityList.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.ServerActivityList#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/ServerActivityList.java:17
  • Modifiers: public static
  • Return: ServerActivityList

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getAsJsonObject(), getLongOr(), get(), isJsonArray(), getAsJsonArray(), add(). สร้างออบเจ็กต์: ServerActivityList, JsonParser. คืนค่า: serverActivityList.

Parameters

  • String string

ตัวอย่างใช้งาน

ServerActivityList result = ServerActivityList.parse("value");

Subscription

  • Full name: com.mojang.realmsclient.dto.Subscription
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/Subscription.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.Subscription#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/Subscription.java:18
  • Modifiers: public static
  • Return: Subscription

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: getAsJsonObject(), getLongOr(), getIntOr(), typeFrom(), getStringOr(), name(), error(), getMessage(). สร้างออบเจ็กต์: Subscription, JsonParser. คืนค่า: subscription.

Parameters

  • String string

ตัวอย่างใช้งาน

Subscription result = Subscription.parse("value");

UploadInfo

  • Full name: com.mojang.realmsclient.dto.UploadInfo
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/UploadInfo.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.UploadInfo#assembleUri(String,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/UploadInfo.java:56
  • Modifiers: public static
  • Return: URI

คืออะไร

ดำเนินการ assembleUri ตาม implementation ของ UploadInfo

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: matcher(), ensureEndpointSchema(), selectPortOrDefault(), getPort(), getScheme(), getUserInfo(), getHost(), getPath(). สร้างออบเจ็กต์: URI. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • String string
  • int i

ตัวอย่างใช้งาน

URI result = UploadInfo.assembleUri("value", 0);

com.mojang.realmsclient.dto.UploadInfo#createRequest(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/UploadInfo.java:84
  • Modifiers: public static
  • Return: String

คืออะไร

สร้าง Request

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: addProperty(), toString(). สร้างออบเจ็กต์: JsonObject. คืนค่า: jsonObject.toString().

Parameters

  • String string

ตัวอย่างใช้งาน

String result = UploadInfo.createRequest("value");

com.mojang.realmsclient.dto.UploadInfo#getToken()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/UploadInfo.java:93
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Token

ทำงานยังไง

คืนค่า: this.token.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

UploadInfo instance = ...;
String result = instance.getToken();

com.mojang.realmsclient.dto.UploadInfo#getUploadEndpoint()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/UploadInfo.java:98
  • Modifiers: public
  • Return: URI

คืออะไร

อ่านค่า Upload Endpoint

ทำงานยังไง

คืนค่า: this.uploadEndpoint.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

UploadInfo instance = ...;
URI result = instance.getUploadEndpoint();

com.mojang.realmsclient.dto.UploadInfo#isWorldClosed()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/UploadInfo.java:102
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ World Closed

ทำงานยังไง

คืนค่า: this.worldClosed.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

UploadInfo instance = ...;
boolean result = instance.isWorldClosed();

com.mojang.realmsclient.dto.UploadInfo#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/UploadInfo.java:34
  • Modifiers: public static
  • Return: UploadInfo

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getAsJsonObject(), getStringOr(), getIntOr(), assembleUri(), getBooleanOr(), error(), getMessage(). สร้างออบเจ็กต์: JsonParser, UploadInfo. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • String string

ตัวอย่างใช้งาน

UploadInfo result = UploadInfo.parse("value");

ValueObject

  • Full name: com.mojang.realmsclient.dto.ValueObject
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/ValueObject.java
  • Type: class
  • Modifiers: public abstract

com.mojang.realmsclient.dto.ValueObject#toString()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/ValueObject.java:11
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ ValueObject

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getClass(), getFields(), isStatic(), append(), getName(), get(), deleteCharAt(), length(). สร้างออบเจ็กต์: StringBuilder. คืนค่า: stringBuilder.toString().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ValueObject instance = ...;
String result = instance.toString();

WorldDownload

  • Full name: com.mojang.realmsclient.dto.WorldDownload
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/WorldDownload.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.WorldDownload#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/WorldDownload.java:18
  • Modifiers: public static
  • Return: WorldDownload

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: getAsJsonObject(), getStringOr(), error(), getMessage(). สร้างออบเจ็กต์: JsonParser, WorldDownload. คืนค่า: worldDownload.

Parameters

  • String string

ตัวอย่างใช้งาน

WorldDownload result = WorldDownload.parse("value");

WorldTemplate

  • Full name: com.mojang.realmsclient.dto.WorldTemplate
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/WorldTemplate.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.WorldTemplate#parse(JsonObject)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/WorldTemplate.java:25
  • Modifiers: public static
  • Return: WorldTemplate

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: getStringOr(), valueOf(), name(), error(), getMessage(). สร้างออบเจ็กต์: WorldTemplate. คืนค่า: worldTemplate.

Parameters

  • JsonObject jsonObject

ตัวอย่างใช้งาน

JsonObject jsonObject = ...;
WorldTemplate result = WorldTemplate.parse(jsonObject);

WorldTemplatePaginatedList

  • Full name: com.mojang.realmsclient.dto.WorldTemplatePaginatedList
  • Package: com.mojang.realmsclient.dto
  • Source: clientOnlycom/mojang/realmsclient/dto/WorldTemplatePaginatedList.java
  • Type: class
  • Modifiers: public
  • Extends: ValueObject

com.mojang.realmsclient.dto.WorldTemplatePaginatedList#isLastPage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/WorldTemplatePaginatedList.java:34
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Last Page

ทำงานยังไง

คืนค่า: this.page * this.size >= this.total && this.page > 0 && this.total > 0 && this.size > 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

WorldTemplatePaginatedList instance = ...;
boolean result = instance.isLastPage();

com.mojang.realmsclient.dto.WorldTemplatePaginatedList#parse(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/WorldTemplatePaginatedList.java:38
  • Modifiers: public static
  • Return: WorldTemplatePaginatedList

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: newArrayList(), getAsJsonObject(), get(), isJsonArray(), getAsJsonArray(), iterator(), hasNext(), add(). สร้างออบเจ็กต์: WorldTemplatePaginatedList, JsonParser. คืนค่า: worldTemplatePaginatedList.

Parameters

  • String string

ตัวอย่างใช้งาน

WorldTemplatePaginatedList result = WorldTemplatePaginatedList.parse("value");

com.mojang.realmsclient.dto.WorldTemplatePaginatedList#WorldTemplatePaginatedList()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/WorldTemplatePaginatedList.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ WorldTemplatePaginatedList ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

WorldTemplatePaginatedList instance = new WorldTemplatePaginatedList();

com.mojang.realmsclient.dto.WorldTemplatePaginatedList#WorldTemplatePaginatedList(int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/dto/WorldTemplatePaginatedList.java:27
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ WorldTemplatePaginatedList ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: templates, page, size, total. เรียกต่อ: emptyList().

Parameters

  • int i

ตัวอย่างใช้งาน

WorldTemplatePaginatedList instance = new WorldTemplatePaginatedList(0);