Skip to content

Package com.mojang.realmsclient.client

Part 1/1


FileDownload

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

com.mojang.realmsclient.client.FileDownload#cancel()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileDownload.java:199
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ cancel ตาม implementation ของ FileDownload

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: cancelled. เรียกต่อ: abort(), delete().

Parameters

  • ไม่มี

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

FileDownload instance = ...;
instance.cancel();

com.mojang.realmsclient.client.FileDownload#contentLength(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileDownload.java:88
  • Modifiers: public
  • Return: long

คืออะไร

ดำเนินการ contentLength ตาม implementation ของ FileDownload

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: create(), setDefaultRequestConfig(), build(), execute(), parseLong(), getFirstHeader(), getValue(), error(). สร้างออบเจ็กต์: HttpGet. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • String string

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

FileDownload instance = ...;
long result = instance.contentLength("value");

com.mojang.realmsclient.client.FileDownload#download(WorldDownload,String,RealmsDownloadLatestWorldScreen.DownloadStatus,LevelStorageSource)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileDownload.java:115
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ download ตาม implementation ของ FileDownload

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. แก้ state: currentThread, tempFile, request, error, finished. เรียกต่อ: createTempFile(), create(), setDefaultRequestConfig(), build(), execute(), parseLong(), getFirstHeader(), getValue(). สร้างออบเจ็กต์: Thread, HttpGet, FileOutputStream, FileDownload.ProgressListener.

Parameters

  • WorldDownload worldDownload
  • String string
  • RealmsDownloadLatestWorldScreen.DownloadStatus downloadStatus
  • LevelStorageSource levelStorageSource

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

FileDownload instance = ...;
WorldDownload worldDownload = ...;
RealmsDownloadLatestWorldScreen.DownloadStatus downloadStatus = ...;
LevelStorageSource levelStorageSource = ...;
instance.download(worldDownload, "value", downloadStatus, levelStorageSource);

com.mojang.realmsclient.client.FileDownload#findAvailableFolderName(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileDownload.java:223
  • Modifiers: public static
  • Return: String

คืออะไร

ค้นหา Available Folder Name

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: replaceAll(), equalsIgnoreCase(). คืนค่า: string.

Parameters

  • String string

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

String result = FileDownload.findAvailableFolderName("value");

com.mojang.realmsclient.client.FileDownload#isError()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileDownload.java:215
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

คืนค่า: this.error.

Parameters

  • ไม่มี

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

FileDownload instance = ...;
boolean result = instance.isError();

com.mojang.realmsclient.client.FileDownload#isExtracting()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileDownload.java:219
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

คืนค่า: this.extracting.

Parameters

  • ไม่มี

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

FileDownload instance = ...;
boolean result = instance.isExtracting();

com.mojang.realmsclient.client.FileDownload#isFinished()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileDownload.java:211
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

คืนค่า: this.finished.

Parameters

  • ไม่มี

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

FileDownload instance = ...;
boolean result = instance.isFinished();

FileUpload

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

com.mojang.realmsclient.client.FileUpload#cancel()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileUpload.java:84
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ cancel ตาม implementation ของ FileUpload

ทำงานยังไง

เรียกต่อ: set().

Parameters

  • ไม่มี

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

FileUpload instance = ...;
instance.cancel();

com.mojang.realmsclient.client.FileUpload#FileUpload(File,long,int,UploadInfo,User,String,String,UploadStatus)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileUpload.java:58
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: file, realmId, slotId, uploadInfo, sessionId, username. เรียกต่อ: getSessionId(), getName().

Parameters

  • File file
  • long l
  • int i
  • UploadInfo uploadInfo
  • User user
  • String string
  • String string2
  • UploadStatus uploadStatus

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

File file = ...;
UploadInfo uploadInfo = ...;
User user = ...;
UploadStatus uploadStatus = ...;
FileUpload instance = new FileUpload(file, 0L, 0, uploadInfo, user, "value", "value", uploadStatus);

com.mojang.realmsclient.client.FileUpload#isFinished()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileUpload.java:186
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

เรียกต่อ: isDone(), isCancelled(). คืนค่า: this.uploadTask.isDone() || this.uploadTask.isCancelled().

Parameters

  • ไม่มี

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

FileUpload instance = ...;
boolean result = instance.isFinished();

com.mojang.realmsclient.client.FileUpload#upload()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/FileUpload.java:70
  • Modifiers: public
  • Return: UploadResult

คืออะไร

ดำเนินการ upload ตาม implementation ของ FileUpload

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: uploadTask. เรียกต่อ: Builder(), build(), supplyAsync(), requestUpload(), backgroundExecutor(), get(), cancel(), join(). สร้างออบเจ็กต์: UploadResult.Builder. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • ไม่มี

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

FileUpload instance = ...;
UploadResult result = instance.upload();

Ping

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

com.mojang.realmsclient.client.Ping#ping(Ping.Region[])

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Ping.java:17
  • Modifiers: public static
  • Return: List<RegionPingResult>

คืออะไร

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

ทำงานยังไง

มีการวนลูป. เรียกต่อ: newArrayList(), add(), sort(), comparingInt(). สร้างออบเจ็กต์: RegionPingResult. คืนค่า: list.

Parameters

  • Ping.Region[] regions

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

Ping.Region[] regions = ...;
List<RegionPingResult> result = Ping.ping(regions);

com.mojang.realmsclient.client.Ping#pingAllRegions()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Ping.java:58
  • Modifiers: public static
  • Return: List<RegionPingResult>

คืออะไร

ดำเนินการ pingAllRegions ตาม implementation ของ Ping

ทำงานยังไง

เรียกต่อ: ping(), values(). คืนค่า: ping(Ping.Region.values()).

Parameters

  • ไม่มี

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

List<RegionPingResult> result = Ping.pingAllRegions();

RealmsClient

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

com.mojang.realmsclient.client.RealmsClient#acceptInvitation(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:330
  • Modifiers: public
  • Return: void

คืออะไร

รับค่า Invitation

ทำงานยังไง

เรียกต่อ: url(), replace(), execute(), put().

Parameters

  • String string

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
instance.acceptInvitation("value");

com.mojang.realmsclient.client.RealmsClient#agreeToTos()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:358
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ agreeToTos ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), execute(), post().

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
instance.agreeToTos();

com.mojang.realmsclient.client.RealmsClient#backupsFor(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:234
  • Modifiers: public
  • Return: BackupList

คืออะไร

ดำเนินการ backupsFor ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), get(), parse(). คืนค่า: BackupList.parse(string2).

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
BackupList result = instance.backupsFor(0L);

com.mojang.realmsclient.client.RealmsClient#clientCompatible()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:205
  • Modifiers: public
  • Return: RealmsClient.CompatibleVersionResponse

คืออะไร

ดำเนินการ clientCompatible ตาม implementation ของ RealmsClient

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: url(), execute(), get(), valueOf(), unknownCompatibilityResponse(). สร้างออบเจ็กต์: RealmsServiceException. คืนค่า: RealmsClient.CompatibleVersionResponse.valueOf(string2).

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
RealmsClient.CompatibleVersionResponse result = instance.clientCompatible();

com.mojang.realmsclient.client.RealmsClient#close(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:295
  • Modifiers: public
  • Return: Boolean

คืออะไร

ปิด close

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), put(). คืนค่า: Boolean.valueOf(string2).

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
Boolean result = instance.close(0L);

com.mojang.realmsclient.client.RealmsClient#create()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:100
  • Modifiers: public static
  • Return: RealmsClient

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: getInstance(). คืนค่า: create(minecraft).

Parameters

  • ไม่มี

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

RealmsClient result = RealmsClient.create();

com.mojang.realmsclient.client.RealmsClient#create(Minecraft)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:105
  • Modifiers: public static
  • Return: RealmsClient

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: getUser(), getName(), getSessionId(). สร้างออบเจ็กต์: RealmsClient. คืนค่า: new RealmsClient(string2, string, minecraft).

Parameters

  • Minecraft minecraft

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

Minecraft minecraft = ...;
RealmsClient result = RealmsClient.create(minecraft);

com.mojang.realmsclient.client.RealmsClient#createSnapshotRealm(Long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:134
  • Modifiers: public
  • Return: RealmsServer

คืออะไร

สร้าง Snapshot Realm

ทำงานยังไง

เรียกต่อ: valueOf(), url(), replace(), parse(), execute(), post(). คืนค่า: RealmsServer.parse(this.execute(Request.post(string2, string))).

Parameters

  • Long long_

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
Long long_ = ...;
RealmsServer result = instance.createSnapshotRealm(long_);

com.mojang.realmsclient.client.RealmsClient#deleteRealm(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:380
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ deleteRealm ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), delete().

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
instance.deleteRealm(0L);

com.mojang.realmsclient.client.RealmsClient#deop(long,UUID)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:283
  • Modifiers: public
  • Return: Ops

คืออะไร

ดำเนินการ deop ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: replace(), valueOf(), toString(), url(), parse(), execute(), delete(). คืนค่า: Ops.parse(this.execute(Request.delete(string2))).

Parameters

  • long l
  • UUID uUID

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
UUID uUID = ...;
Ops result = instance.deop(0L, uUID);

com.mojang.realmsclient.client.RealmsClient#fetchWorldTemplates(int,int,RealmsServer.WorldType)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:263
  • Modifiers: public
  • Return: WorldTemplatePaginatedList

คืออะไร

ดำเนินการ fetchWorldTemplates ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), toString(), format(), execute(), get(), parse(). คืนค่า: WorldTemplatePaginatedList.parse(string2).

Parameters

  • int i
  • int j
  • RealmsServer.WorldType worldType

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
RealmsServer.WorldType worldType = ...;
WorldTemplatePaginatedList result = instance.fetchWorldTemplates(0, 0, worldType);

com.mojang.realmsclient.client.RealmsClient#getActivity(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:174
  • Modifiers: public
  • Return: ServerActivityList

คืออะไร

อ่านค่า Activity

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), get(), parse(). คืนค่า: ServerActivityList.parse(string2).

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
ServerActivityList result = instance.getActivity(0L);

com.mojang.realmsclient.client.RealmsClient#getLiveStats()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:180
  • Modifiers: public
  • Return: RealmsServerPlayerLists

คืออะไร

อ่านค่า Live Stats

ทำงานยังไง

เรียกต่อ: url(), execute(), get(), parse(). คืนค่า: RealmsServerPlayerLists.parse(string2).

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
RealmsServerPlayerLists result = instance.getLiveStats();

com.mojang.realmsclient.client.RealmsClient#getNews()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:363
  • Modifiers: public
  • Return: RealmsNews

คืออะไร

อ่านค่า News

ทำงานยังไง

เรียกต่อ: url(), execute(), get(), parse(). คืนค่า: RealmsNews.parse(string2).

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
RealmsNews result = instance.getNews();

com.mojang.realmsclient.client.RealmsClient#getNotifications()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:140
  • Modifiers: public
  • Return: List<RealmsNotification>

คืออะไร

อ่านค่า Notifications

ทำงานยังไง

เรียกต่อ: url(), execute(), get(), parseList(). คืนค่า: RealmsNotification.parseList(string2).

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
List<RealmsNotification> result = instance.getNotifications();

com.mojang.realmsclient.client.RealmsClient#getOwnRealm(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:168
  • Modifiers: public
  • Return: RealmsServer

คืออะไร

อ่านค่า Own Realm

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), get(), parse(). คืนค่า: RealmsServer.parse(string2).

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
RealmsServer result = instance.getOwnRealm(0L);

com.mojang.realmsclient.client.RealmsClient#hasParentalConsent()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:199
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Parental Consent

ทำงานยังไง

เรียกต่อ: url(), execute(), get(), parseBoolean(). คืนค่า: Boolean.parseBoolean(string2).

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
boolean result = instance.hasParentalConsent();

com.mojang.realmsclient.client.RealmsClient#initializeRealm(long,String,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:192
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ initializeRealm ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), toJson(), execute(), post(). สร้างออบเจ็กต์: RealmsDescriptionDto.

Parameters

  • long l
  • String string
  • String string2

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
instance.initializeRealm(0L, "value", "value");

com.mojang.realmsclient.client.RealmsClient#invite(long,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:226
  • Modifiers: public
  • Return: RealmsServer

คืออะไร

ดำเนินการ invite ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: setName(), url(), replace(), valueOf(), execute(), post(), toJson(), parse(). สร้างออบเจ็กต์: PlayerInfo. คืนค่า: RealmsServer.parse(string3).

Parameters

  • long l
  • String string

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
RealmsServer result = instance.invite(0L, "value");

com.mojang.realmsclient.client.RealmsClient#join(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:186
  • Modifiers: public
  • Return: RealmsServerAddress

คืออะไร

รวม/เข้าร่วม join

ทำงานยังไง

เรียกต่อ: url(), replace(), execute(), get(), parse(). คืนค่า: RealmsServerAddress.parse(string2).

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
RealmsServerAddress result = instance.join(0L);

com.mojang.realmsclient.client.RealmsClient#listRealms()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:118
  • Modifiers: public
  • Return: RealmsServerList

คืออะไร

ดำเนินการ listRealms ตาม implementation ของ RealmsClient

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: url(), isSnapshot(), execute(), get(), parse(). คืนค่า: RealmsServerList.parse(string2).

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
RealmsServerList result = instance.listRealms();

com.mojang.realmsclient.client.RealmsClient#listSnapshotEligibleRealms()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:128
  • Modifiers: public
  • Return: List<RealmsServer>

คืออะไร

ดำเนินการ listSnapshotEligibleRealms ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), execute(), get(), parse(). คืนค่า: RealmsServerList.parse(string2).servers.

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
List<RealmsServer> result = instance.listSnapshotEligibleRealms();

com.mojang.realmsclient.client.RealmsClient#notificationsDismiss(List<UUID>)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:163
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ notificationsDismiss ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), execute(), post(), toJson(), uuidListToJsonArray().

Parameters

  • List<UUID> list

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
List<UUID> list = ...;
instance.notificationsDismiss(list);

com.mojang.realmsclient.client.RealmsClient#notificationsSeen(List<UUID>)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:158
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ notificationsSeen ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), execute(), post(), toJson(), uuidListToJsonArray().

Parameters

  • List<UUID> list

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
List<UUID> list = ...;
instance.notificationsSeen(list);

com.mojang.realmsclient.client.RealmsClient#op(long,UUID)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:277
  • Modifiers: public
  • Return: Ops

คืออะไร

ดำเนินการ op ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: replace(), valueOf(), toString(), url(), parse(), execute(), post(). คืนค่า: Ops.parse(this.execute(Request.post(string2, ""))).

Parameters

  • long l
  • UUID uUID

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
UUID uUID = ...;
Ops result = instance.op(0L, uUID);

com.mojang.realmsclient.client.RealmsClient#open(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:289
  • Modifiers: public
  • Return: Boolean

คืออะไร

เปิด open

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), put(). คืนค่า: Boolean.valueOf(string2).

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
Boolean result = instance.open(0L);

com.mojang.realmsclient.client.RealmsClient#pendingInvites()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:318
  • Modifiers: public
  • Return: PendingInvitesList

คืออะไร

ดำเนินการ pendingInvites ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), execute(), get(), parse(), removeIf(). คืนค่า: pendingInvitesList.

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
PendingInvitesList result = instance.pendingInvites();

com.mojang.realmsclient.client.RealmsClient#pendingInvitesCount()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:314
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ pendingInvitesCount ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: pendingInvites(), size(). คืนค่า: this.pendingInvites().pendingInvites.size().

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
int result = instance.pendingInvitesCount();

com.mojang.realmsclient.client.RealmsClient#putIntoMinigameMode(long,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:271
  • Modifiers: public
  • Return: Boolean

คืออะไร

ดำเนินการ putIntoMinigameMode ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: replace(), valueOf(), url(), execute(), put(). คืนค่า: Boolean.valueOf(this.execute(Request.put(string3, ""))).

Parameters

  • long l
  • String string

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
Boolean result = instance.putIntoMinigameMode(0L, "value");

com.mojang.realmsclient.client.RealmsClient#RealmsClient(String,String,Minecraft)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:111
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: sessionId, username, minecraft. เรียกต่อ: setProxy(), getProxy().

Parameters

  • String string
  • String string2
  • Minecraft minecraft

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

Minecraft minecraft = ...;
RealmsClient instance = new RealmsClient("value", "value", minecraft);

com.mojang.realmsclient.client.RealmsClient#rejectInvitation(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:353
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ rejectInvitation ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), execute(), put().

Parameters

  • String string

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
instance.rejectInvitation("value");

com.mojang.realmsclient.client.RealmsClient#requestDownloadInfo(long,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:335
  • Modifiers: public
  • Return: WorldDownload

คืออะไร

ดำเนินการ requestDownloadInfo ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), get(), parse(). คืนค่า: WorldDownload.parse(string2).

Parameters

  • long l
  • int i

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
WorldDownload result = instance.requestDownloadInfo(0L, 0);

com.mojang.realmsclient.client.RealmsClient#requestUploadInfo(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:341
  • Modifiers: public
  • Return: UploadInfo

คืออะไร

ดำเนินการ requestUploadInfo ตาม implementation ของ RealmsClient

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: url(), replace(), valueOf(), get(), parse(), execute(), put(), createRequest(). คืนค่า: uploadInfo.

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
UploadInfo result = instance.requestUploadInfo(0L);

com.mojang.realmsclient.client.RealmsClient#resetWorldWithTemplate(long,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:301
  • Modifiers: public
  • Return: Boolean

คืออะไร

รีเซ็ต World With Template

ทำงานยังไง

เรียกต่อ: valueOf(), of(), url(), replace(), execute(), post(), toJson(). สร้างออบเจ็กต์: RealmsWorldResetDto. คืนค่า: Boolean.valueOf(string3).

Parameters

  • long l
  • String string

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
Boolean result = instance.resetWorldWithTemplate(0L, "value");

com.mojang.realmsclient.client.RealmsClient#restoreWorld(long,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:258
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ restoreWorld ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), put().

Parameters

  • long l
  • String string

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
instance.restoreWorld(0L, "value");

com.mojang.realmsclient.client.RealmsClient#sendPingResults(PingResult)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:369
  • Modifiers: public
  • Return: void

คืออะไร

ส่ง Ping Results

ทำงานยังไง

เรียกต่อ: url(), execute(), post(), toJson().

Parameters

  • PingResult pingResult

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
PingResult pingResult = ...;
instance.sendPingResults(pingResult);

com.mojang.realmsclient.client.RealmsClient#subscriptionFor(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:308
  • Modifiers: public
  • Return: Subscription

คืออะไร

ดำเนินการ subscriptionFor ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), get(), parse(). คืนค่า: Subscription.parse(string2).

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
Subscription result = instance.subscriptionFor(0L);

com.mojang.realmsclient.client.RealmsClient#switchSlot(long,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:252
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ switchSlot ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), put(). คืนค่า: Boolean.valueOf(string2).

Parameters

  • long l
  • int i

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
boolean result = instance.switchSlot(0L, 0);

com.mojang.realmsclient.client.RealmsClient#trialAvailable()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:374
  • Modifiers: public
  • Return: Boolean

คืออะไร

ดำเนินการ trialAvailable ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), execute(), get(), valueOf(). คืนค่า: Boolean.valueOf(string2).

Parameters

  • ไม่มี

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
Boolean result = instance.trialAvailable();

com.mojang.realmsclient.client.RealmsClient#uninvite(long,UUID)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:216
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ uninvite ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), toString(), execute(), delete().

Parameters

  • long l
  • UUID uUID

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
UUID uUID = ...;
instance.uninvite(0L, uUID);

com.mojang.realmsclient.client.RealmsClient#uninviteMyselfFrom(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:221
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ uninviteMyselfFrom ตาม implementation ของ RealmsClient

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), delete().

Parameters

  • long l

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
instance.uninviteMyselfFrom(0L);

com.mojang.realmsclient.client.RealmsClient#update(long,String,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:240
  • Modifiers: public
  • Return: void

คืออะไร

อัปเดต update

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), execute(), post(), toJson(). สร้างออบเจ็กต์: RealmsDescriptionDto.

Parameters

  • long l
  • String string
  • String string2

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
instance.update(0L, "value", "value");

com.mojang.realmsclient.client.RealmsClient#updateSlot(long,int,RealmsWorldOptions)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:246
  • Modifiers: public
  • Return: void

คืออะไร

อัปเดต Slot

ทำงานยังไง

เรียกต่อ: url(), replace(), valueOf(), toJson(), execute(), post().

Parameters

  • long l
  • int i
  • RealmsWorldOptions realmsWorldOptions

Throws

  • RealmsServiceException

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

RealmsClient instance = ...;
RealmsWorldOptions realmsWorldOptions = ...;
instance.updateSlot(0L, 0, realmsWorldOptions);

RealmsClient$Environment

  • Full name: com.mojang.realmsclient.client.RealmsClient$Environment
  • Package: com.mojang.realmsclient.client
  • Source: clientOnlycom/mojang/realmsclient/client/RealmsClient.java
  • Type: enum
  • Modifiers: public

com.mojang.realmsclient.client.RealmsClient$Environment#byName(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClient.java:447
  • Modifiers: public static
  • Return: Optional<RealmsClient.Environment>

คืออะไร

ดำเนินการ byName ตาม implementation ของ RealmsClient$Environment

ทำงานยังไง

แยกกรณีด้วย switch. เรียกต่อ: toLowerCase(), of(), empty(). คืนค่า: switch (string.toLowerCase(Locale.ROOT)) { case "production" -> Optional.of(PRODUCTION).

Parameters

  • String string

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

Optional<RealmsClient.Environment> result = RealmsClient.Environment.byName("value");

RealmsClientConfig

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

com.mojang.realmsclient.client.RealmsClientConfig#getProxy()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClientConfig.java:13
  • Modifiers: public static
  • Return: Proxy

คืออะไร

อ่านค่า Proxy

ทำงานยังไง

คืนค่า: proxy.

Parameters

  • ไม่มี

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

Proxy result = RealmsClientConfig.getProxy();

com.mojang.realmsclient.client.RealmsClientConfig#setProxy(Proxy)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsClientConfig.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

กำหนดค่า Proxy

ทำงานยังไง

ตรวจเงื่อนไขด้วย if.

Parameters

  • Proxy proxy

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

Proxy proxy = ...;
RealmsClientConfig.setProxy(proxy);

RealmsError

  • Full name: com.mojang.realmsclient.client.RealmsError
  • Package: com.mojang.realmsclient.client
  • Source: clientOnlycom/mojang/realmsclient/client/RealmsError.java
  • Type: interface
  • Modifiers: public

com.mojang.realmsclient.client.RealmsError#errorCode()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsError.java:22
  • Modifiers: ``
  • Return: int

คืออะไร

ดำเนินการ errorCode ตาม implementation ของ RealmsError

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

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

RealmsError instance = ...;
int result = instance.errorCode();

com.mojang.realmsclient.client.RealmsError#errorMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsError.java:24
  • Modifiers: ``
  • Return: Component

คืออะไร

ดำเนินการ errorMessage ตาม implementation ของ RealmsError

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

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

RealmsError instance = ...;
Component result = instance.errorMessage();

com.mojang.realmsclient.client.RealmsError#logMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsError.java:26
  • Modifiers: ``
  • Return: String

คืออะไร

ดำเนินการ logMessage ตาม implementation ของ RealmsError

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

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

RealmsError instance = ...;
String result = instance.logMessage();

com.mojang.realmsclient.client.RealmsError#parse(int,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/RealmsError.java:28
  • Modifiers: static
  • Return: RealmsError

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: isNullOrEmpty(), noPayload(), parseString(), getAsJsonObject(), getAsString(), getAsInt(), ErrorWithJsonPayload(), error(). สร้างออบเจ็กต์: RealmsError.ErrorWithJsonPayload, RealmsError.ErrorWithRawPayload. มีจุด return อย่างน้อย 4 จุด.

Parameters

  • int i
  • String string

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

RealmsError result = RealmsError.parse(0, "value");

Request

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

com.mojang.realmsclient.client.Request#addSnapshotHeader(boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:60
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Snapshot Header

ทำงานยังไง

เรียกต่อ: addRequestProperty(), valueOf().

Parameters

  • boolean bl

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

Request instance = ...;
instance.addSnapshotHeader(true);

com.mojang.realmsclient.client.Request#connect()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:150
  • Modifiers: protected
  • Return: T

คืออะไร

ดำเนินการ connect ตาม implementation ของ Request

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected T connect() {
    return super.connect();
}

com.mojang.realmsclient.client.Request#cookie(HttpURLConnection,String,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:51
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ cookie ตาม implementation ของ Request

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getRequestProperty(), setRequestProperty().

Parameters

  • HttpURLConnection httpURLConnection
  • String string
  • String string2

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

HttpURLConnection httpURLConnection = ...;
Request.cookie(httpURLConnection, "value", "value");

com.mojang.realmsclient.client.Request#cookie(String,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:47
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ cookie ตาม implementation ของ Request

ทำงานยังไง

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

Parameters

  • String string
  • String string2

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

Request instance = ...;
instance.cookie("value", "value");

com.mojang.realmsclient.client.Request#delete(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:178
  • Modifiers: public static
  • Return: Request<?>

คืออะไร

ดำเนินการ delete ตาม implementation ของ Request

ทำงานยังไง

เรียกต่อ: Delete(). สร้างออบเจ็กต์: Request.Delete. คืนค่า: new Request.Delete(string, 5000, 60000).

Parameters

  • String string

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

Request<?> result = Request.delete("value");

com.mojang.realmsclient.client.Request#doConnect()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:160
  • Modifiers: protected abstract
  • Return: T

คืออะไร

ดำเนินการ doConnect ตาม implementation ของ Request

ทำงานยังไง

ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง

Parameters

  • ไม่มี

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

@Override
protected T doConnect() {
    return super.doConnect();
}

com.mojang.realmsclient.client.Request#get(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:162
  • Modifiers: public static
  • Return: Request<?>

คืออะไร

อ่านค่า get

ทำงานยังไง

เรียกต่อ: Get(). สร้างออบเจ็กต์: Request.Get. คืนค่า: new Request.Get(string, 5000, 60000).

Parameters

  • String string

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

Request<?> result = Request.get("value");

com.mojang.realmsclient.client.Request#get(String,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:166
  • Modifiers: public static
  • Return: Request<?>

คืออะไร

อ่านค่า get

ทำงานยังไง

เรียกต่อ: Get(). สร้างออบเจ็กต์: Request.Get. คืนค่า: new Request.Get(string, i, j).

Parameters

  • String string
  • int i
  • int j

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

Request<?> result = Request.get("value", 0, 0);

com.mojang.realmsclient.client.Request#getHeader(HttpURLConnection,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:194
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Header

ทำงานยังไง

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

Parameters

  • HttpURLConnection httpURLConnection
  • String string

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

HttpURLConnection httpURLConnection = ...;
String result = Request.getHeader(httpURLConnection, "value");

com.mojang.realmsclient.client.Request#getHeader(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:190
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Header

ทำงานยังไง

คืนค่า: getHeader(this.connection, string).

Parameters

  • String string

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

Request instance = ...;
String result = instance.getHeader("value");

com.mojang.realmsclient.client.Request#getRetryAfterHeader()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:64
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Retry After Header

ทำงานยังไง

คืนค่า: getRetryAfterHeader(this.connection).

Parameters

  • ไม่มี

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

Request instance = ...;
int result = instance.getRetryAfterHeader();

com.mojang.realmsclient.client.Request#getRetryAfterHeader(HttpURLConnection)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:68
  • Modifiers: public static
  • Return: int

คืออะไร

อ่านค่า Retry After Header

ทำงานยังไง

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

Parameters

  • HttpURLConnection httpURLConnection

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

HttpURLConnection httpURLConnection = ...;
int result = Request.getRetryAfterHeader(httpURLConnection);

com.mojang.realmsclient.client.Request#post(String,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:170
  • Modifiers: public static
  • Return: Request<?>

คืออะไร

ดำเนินการ post ตาม implementation ของ Request

ทำงานยังไง

เรียกต่อ: Post(). สร้างออบเจ็กต์: Request.Post. คืนค่า: new Request.Post(string, string2, 5000, 60000).

Parameters

  • String string
  • String string2

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

Request<?> result = Request.post("value", "value");

com.mojang.realmsclient.client.Request#post(String,String,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:174
  • Modifiers: public static
  • Return: Request<?>

คืออะไร

ดำเนินการ post ตาม implementation ของ Request

ทำงานยังไง

เรียกต่อ: Post(). สร้างออบเจ็กต์: Request.Post. คืนค่า: new Request.Post(string, string2, i, j).

Parameters

  • String string
  • String string2
  • int i
  • int j

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

Request<?> result = Request.post("value", "value", 0, 0);

com.mojang.realmsclient.client.Request#put(String,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:182
  • Modifiers: public static
  • Return: Request<?>

คืออะไร

ดำเนินการ put ตาม implementation ของ Request

ทำงานยังไง

เรียกต่อ: Put(). สร้างออบเจ็กต์: Request.Put. คืนค่า: new Request.Put(string, string2, 5000, 60000).

Parameters

  • String string
  • String string2

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

Request<?> result = Request.put("value", "value");

com.mojang.realmsclient.client.Request#put(String,String,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:186
  • Modifiers: public static
  • Return: Request<?>

คืออะไร

ดำเนินการ put ตาม implementation ของ Request

ทำงานยังไง

เรียกต่อ: Put(). สร้างออบเจ็กต์: Request.Put. คืนค่า: new Request.Put(string, string2, i, j).

Parameters

  • String string
  • String string2
  • int i
  • int j

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

Request<?> result = Request.put("value", "value", 0, 0);

com.mojang.realmsclient.client.Request#Request(String,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:28
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: url, connection. เรียกต่อ: getProxy(), openConnection(), setConnectTimeout(), setReadTimeout(), getMessage(). สร้างออบเจ็กต์: URL, RealmsHttpException.

Parameters

  • String string
  • int i
  • int j

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

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

com.mojang.realmsclient.client.Request#responseCode()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:78
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ responseCode ตาม implementation ของ Request

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: connect(), getResponseCode(), getMessage(). สร้างออบเจ็กต์: RealmsHttpException. คืนค่า: this.connection.getResponseCode().

Parameters

  • ไม่มี

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

Request instance = ...;
int result = instance.responseCode();

com.mojang.realmsclient.client.Request#text()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:87
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ text ตาม implementation ของ Request

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: connect(), responseCode(), read(), getErrorStream(), getInputStream(), dispose(), getMessage(). สร้างออบเจ็กต์: RealmsHttpException. คืนค่า: string.

Parameters

  • ไม่มี

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

Request instance = ...;
String result = instance.text();

Request$Delete

  • Full name: com.mojang.realmsclient.client.Request$Delete
  • Package: com.mojang.realmsclient.client
  • Source: clientOnlycom/mojang/realmsclient/client/Request.java
  • Type: class
  • Modifiers: public static
  • Extends: Request<Request.Delete>

com.mojang.realmsclient.client.Request$Delete#Delete(String,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:204
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • String string
  • int i
  • int j

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

Request.Delete instance = new Request.Delete("value", 0, 0);

com.mojang.realmsclient.client.Request$Delete#doConnect()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:208
  • Modifiers: public
  • Return: Request.Delete

คืออะไร

ดำเนินการ doConnect ตาม implementation ของ Request$Delete

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: setDoOutput(), setRequestMethod(), connect(), getMessage(). สร้างออบเจ็กต์: RealmsHttpException. คืนค่า: this.

Parameters

  • ไม่มี

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

Request.Delete instance = ...;
Request.Delete result = instance.doConnect();

Request$Get

  • Full name: com.mojang.realmsclient.client.Request$Get
  • Package: com.mojang.realmsclient.client
  • Source: clientOnlycom/mojang/realmsclient/client/Request.java
  • Type: class
  • Modifiers: public static
  • Extends: Request<Request.Get>

com.mojang.realmsclient.client.Request$Get#doConnect()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:226
  • Modifiers: public
  • Return: Request.Get

คืออะไร

ดำเนินการ doConnect ตาม implementation ของ Request$Get

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: setDoInput(), setDoOutput(), setUseCaches(), setRequestMethod(), getMessage(). สร้างออบเจ็กต์: RealmsHttpException. คืนค่า: this.

Parameters

  • ไม่มี

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

Request.Get instance = ...;
Request.Get result = instance.doConnect();

com.mojang.realmsclient.client.Request$Get#Get(String,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:222
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • String string
  • int i
  • int j

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

Request.Get instance = new Request.Get("value", 0, 0);

Request$Post

  • Full name: com.mojang.realmsclient.client.Request$Post
  • Package: com.mojang.realmsclient.client
  • Source: clientOnlycom/mojang/realmsclient/client/Request.java
  • Type: class
  • Modifiers: public static
  • Extends: Request<Request.Post>

com.mojang.realmsclient.client.Request$Post#doConnect()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:248
  • Modifiers: public
  • Return: Request.Post

คืออะไร

ดำเนินการ doConnect ตาม implementation ของ Request$Post

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: setRequestProperty(), setDoInput(), setDoOutput(), setUseCaches(), setRequestMethod(), getOutputStream(), write(), close(). สร้างออบเจ็กต์: OutputStreamWriter, RealmsHttpException. คืนค่า: this.

Parameters

  • ไม่มี

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

Request.Post instance = ...;
Request.Post result = instance.doConnect();

com.mojang.realmsclient.client.Request$Post#Post(String,String,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:243
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: content.

Parameters

  • String string
  • String string2
  • int i
  • int j

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

Request.Post instance = new Request.Post("value", "value", 0, 0);

Request$Put

  • Full name: com.mojang.realmsclient.client.Request$Put
  • Package: com.mojang.realmsclient.client
  • Source: clientOnlycom/mojang/realmsclient/client/Request.java
  • Type: class
  • Modifiers: public static
  • Extends: Request<Request.Put>

com.mojang.realmsclient.client.Request$Put#doConnect()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:279
  • Modifiers: public
  • Return: Request.Put

คืออะไร

ดำเนินการ doConnect ตาม implementation ของ Request$Put

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: setRequestProperty(), setDoOutput(), setDoInput(), setRequestMethod(), getOutputStream(), write(), close(), flush(). สร้างออบเจ็กต์: OutputStreamWriter, RealmsHttpException. คืนค่า: this.

Parameters

  • ไม่มี

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

Request.Put instance = ...;
Request.Put result = instance.doConnect();

com.mojang.realmsclient.client.Request$Put#Put(String,String,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/Request.java:274
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: content.

Parameters

  • String string
  • String string2
  • int i
  • int j

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

Request.Put instance = new Request.Put("value", "value", 0, 0);

UploadStatus

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

com.mojang.realmsclient.client.UploadStatus#getBytesPerSecond()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/UploadStatus.java:54
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Bytes Per Second

ทำงานยังไง

คืนค่า: this.bytesPerSecond.

Parameters

  • ไม่มี

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

UploadStatus instance = ...;
long result = instance.getBytesPerSecond();

com.mojang.realmsclient.client.UploadStatus#getBytesWritten()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/UploadStatus.java:23
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Bytes Written

ทำงานยังไง

คืนค่า: this.bytesWritten.

Parameters

  • ไม่มี

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

UploadStatus instance = ...;
long result = instance.getBytesWritten();

com.mojang.realmsclient.client.UploadStatus#getPercentage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/UploadStatus.java:39
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Percentage

ทำงานยังไง

เรียกต่อ: min(), getBytesWritten(), getTotalBytes(). คืนค่า: Math.min((double)this.getBytesWritten() / this.getTotalBytes(), 1.0).

Parameters

  • ไม่มี

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

UploadStatus instance = ...;
double result = instance.getPercentage();

com.mojang.realmsclient.client.UploadStatus#getTotalBytes()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/UploadStatus.java:19
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Total Bytes

ทำงานยังไง

คืนค่า: this.totalBytes.

Parameters

  • ไม่มี

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

UploadStatus instance = ...;
long result = instance.getTotalBytes();

com.mojang.realmsclient.client.UploadStatus#onWrite(long)

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

คืออะไร

จัดการเหตุการณ์ Write

ทำงานยังไง

แก้ state: bytesWritten.

Parameters

  • long l

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

UploadStatus instance = ...;
instance.onWrite(0L);

com.mojang.realmsclient.client.UploadStatus#refreshBytesPerSecond()

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

คืออะไร

ดำเนินการ refreshBytesPerSecond ตาม implementation ของ UploadStatus

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: bytesPerSecond, previousBytesWritten, previousTimeSnapshot. เรียกต่อ: getMillis().

Parameters

  • ไม่มี

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

UploadStatus instance = ...;
instance.refreshBytesPerSecond();

com.mojang.realmsclient.client.UploadStatus#setTotalBytes(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/UploadStatus.java:15
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Total Bytes

ทำงานยังไง

แก้ state: totalBytes.

Parameters

  • long l

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

UploadStatus instance = ...;
instance.setTotalBytes(0L);

com.mojang.realmsclient.client.UploadStatus#uploadCompleted()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/UploadStatus.java:35
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ uploadCompleted ตาม implementation ของ UploadStatus

ทำงานยังไง

แก้ state: bytesWritten. เรียกต่อ: getTotalBytes(). คืนค่า: this.bytesWritten == this.getTotalBytes().

Parameters

  • ไม่มี

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

UploadStatus instance = ...;
boolean result = instance.uploadCompleted();

com.mojang.realmsclient.client.UploadStatus#uploadStarted()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/UploadStatus.java:31
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ uploadStarted ตาม implementation ของ UploadStatus

ทำงานยังไง

คืนค่า: this.bytesWritten != 0L.

Parameters

  • ไม่มี

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

UploadStatus instance = ...;
boolean result = instance.uploadStarted();