Skip to content

Package com.mojang.realmsclient.client.worldupload

Part 1/1


RealmsCreateWorldFlow

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

com.mojang.realmsclient.client.worldupload.RealmsCreateWorldFlow#createWorld(Minecraft,Screen,Screen,int,RealmsServer,RealmCreationTask)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsCreateWorldFlow.java:35
  • Modifiers: public static
  • Return: void

คืออะไร

สร้าง World

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: openFresh(), createTemporaryWorldFolder(), warn(), setScreen(), translatable(), createFromSettings(), getLevelSettings(), getCurrentVersion(). สร้างออบเจ็กต์: RealmsGenericErrorScreen, RealmsWorldUpload, AlertScreen. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • Minecraft minecraft
  • Screen screen
  • Screen screen2
  • int i
  • RealmsServer realmsServer
  • RealmCreationTask realmCreationTask

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

Minecraft minecraft = ...;
Screen screen = ...;
Screen screen2 = ...;
RealmsServer realmsServer = ...;
RealmCreationTask realmCreationTask = ...;
RealmsCreateWorldFlow.createWorld(minecraft, screen, screen2, 0, realmsServer, realmCreationTask);

RealmsUploadCanceledException

  • Full name: com.mojang.realmsclient.client.worldupload.RealmsUploadCanceledException
  • Package: com.mojang.realmsclient.client.worldupload
  • Source: clientOnlycom/mojang/realmsclient/client/worldupload/RealmsUploadCanceledException.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsUploadException

com.mojang.realmsclient.client.worldupload.RealmsUploadCanceledException#getStatusMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadCanceledException.java:11
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Status Message

ทำงานยังไง

คืนค่า: UPLOAD_CANCELED.

Parameters

  • ไม่มี

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

RealmsUploadCanceledException instance = ...;
Component result = instance.getStatusMessage();

RealmsUploadException

  • Full name: com.mojang.realmsclient.client.worldupload.RealmsUploadException
  • Package: com.mojang.realmsclient.client.worldupload
  • Source: clientOnlycom/mojang/realmsclient/client/worldupload/RealmsUploadException.java
  • Type: class
  • Modifiers: public abstract
  • Extends: RuntimeException

com.mojang.realmsclient.client.worldupload.RealmsUploadException#getErrorMessages()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadException.java:15
  • Modifiers: public
  • Return: Component[]

คืออะไร

อ่านค่า Error Messages

ทำงานยังไง

คืนค่า: null.

Parameters

  • ไม่มี

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

RealmsUploadException instance = ...;
Component[] result = instance.getErrorMessages();

com.mojang.realmsclient.client.worldupload.RealmsUploadException#getStatusMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadException.java:10
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Status Message

ทำงานยังไง

คืนค่า: null.

Parameters

  • ไม่มี

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

RealmsUploadException instance = ...;
Component result = instance.getStatusMessage();

RealmsUploadFailedException

  • Full name: com.mojang.realmsclient.client.worldupload.RealmsUploadFailedException
  • Package: com.mojang.realmsclient.client.worldupload
  • Source: clientOnlycom/mojang/realmsclient/client/worldupload/RealmsUploadFailedException.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsUploadException

com.mojang.realmsclient.client.worldupload.RealmsUploadFailedException#getStatusMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadFailedException.java:19
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Status Message

ทำงานยังไง

เรียกต่อ: translatable(). คืนค่า: Component.translatable("mco.upload.failed", new Object[]{this.errorMessage}).

Parameters

  • ไม่มี

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

RealmsUploadFailedException instance = ...;
Component result = instance.getStatusMessage();

com.mojang.realmsclient.client.worldupload.RealmsUploadFailedException#RealmsUploadFailedException(Component)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadFailedException.java:11
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: errorMessage.

Parameters

  • Component component

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

Component component = ...;
RealmsUploadFailedException instance = new RealmsUploadFailedException(component);

com.mojang.realmsclient.client.worldupload.RealmsUploadFailedException#RealmsUploadFailedException(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadFailedException.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • String string

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

RealmsUploadFailedException instance = new RealmsUploadFailedException("value");

RealmsUploadTooLargeException

  • Full name: com.mojang.realmsclient.client.worldupload.RealmsUploadTooLargeException
  • Package: com.mojang.realmsclient.client.worldupload
  • Source: clientOnlycom/mojang/realmsclient/client/worldupload/RealmsUploadTooLargeException.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsUploadException

com.mojang.realmsclient.client.worldupload.RealmsUploadTooLargeException#getErrorMessages()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadTooLargeException.java:16
  • Modifiers: public
  • Return: Component[]

คืออะไร

อ่านค่า Error Messages

ทำงานยังไง

เรียกต่อ: translatable(), humanReadable(), getLargest().

Parameters

  • ไม่มี

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

RealmsUploadTooLargeException instance = ...;
Component[] result = instance.getErrorMessages();

com.mojang.realmsclient.client.worldupload.RealmsUploadTooLargeException#RealmsUploadTooLargeException(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadTooLargeException.java:12
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: sizeLimit.

Parameters

  • long l

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

RealmsUploadTooLargeException instance = new RealmsUploadTooLargeException(0L);

RealmsUploadWorldNotClosedException

  • Full name: com.mojang.realmsclient.client.worldupload.RealmsUploadWorldNotClosedException
  • Package: com.mojang.realmsclient.client.worldupload
  • Source: clientOnlycom/mojang/realmsclient/client/worldupload/RealmsUploadWorldNotClosedException.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsUploadException

com.mojang.realmsclient.client.worldupload.RealmsUploadWorldNotClosedException#getStatusMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadWorldNotClosedException.java:9
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Status Message

ทำงานยังไง

เรียกต่อ: translatable(). คืนค่า: Component.translatable("mco.upload.close.failure").

Parameters

  • ไม่มี

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

RealmsUploadWorldNotClosedException instance = ...;
Component result = instance.getStatusMessage();

RealmsUploadWorldPacker

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

com.mojang.realmsclient.client.worldupload.RealmsUploadWorldPacker#pack(Path,BooleanSupplier)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsUploadWorldPacker.java:23
  • Modifiers: public static
  • Return: File

คืออะไร

ดำเนินการ pack ตาม implementation ของ RealmsUploadWorldPacker

ทำงานยังไง

เรียกต่อ: tarGzipArchive(). สร้างออบเจ็กต์: RealmsUploadWorldPacker. คืนค่า: new RealmsUploadWorldPacker(path, booleanSupplier).tarGzipArchive().

Parameters

  • Path path
  • BooleanSupplier booleanSupplier

Throws

  • IOException

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

Path path = ...;
BooleanSupplier booleanSupplier = ...;
File result = RealmsUploadWorldPacker.pack(path, booleanSupplier);

RealmsWorldUpload

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

com.mojang.realmsclient.client.worldupload.RealmsWorldUpload#cancel()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsWorldUpload.java:96
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: cancelled, uploadTask.

Parameters

  • ไม่มี

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

RealmsWorldUpload instance = ...;
instance.cancel();

com.mojang.realmsclient.client.worldupload.RealmsWorldUpload#packAndUpload()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsWorldUpload.java:51
  • Modifiers: public
  • Return: CompletableFuture<?>

คืออะไร

ดำเนินการ packAndUpload ตาม implementation ของ RealmsWorldUpload

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: uploadTask. เรียกต่อ: runAsync(), requestUploadInfoWithRetries(), pack(), setUploading(), getCurrentVersion(), getName(), getUploadStatus(), upload(). สร้างออบเจ็กต์: FileUpload, RealmsUploadFailedException, RealmsUploadCanceledException. คืนค่า: CompletableFuture.runAsync( () -> { File file = null.

Parameters

  • ไม่มี

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

RealmsWorldUpload instance = ...;
CompletableFuture<?> result = instance.packAndUpload();

com.mojang.realmsclient.client.worldupload.RealmsWorldUpload#RealmsWorldUpload(Path,RealmsWorldOptions,User,long,int,RealmsWorldUploadStatusTracker)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsWorldUpload.java:40
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: worldFolder, worldOptions, user, realmId, slotId, statusCallback.

Parameters

  • Path path
  • RealmsWorldOptions realmsWorldOptions
  • User user
  • long l
  • int i
  • RealmsWorldUploadStatusTracker realmsWorldUploadStatusTracker

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

Path path = ...;
RealmsWorldOptions realmsWorldOptions = ...;
User user = ...;
RealmsWorldUploadStatusTracker realmsWorldUploadStatusTracker = ...;
RealmsWorldUpload instance = new RealmsWorldUpload(path, realmsWorldOptions, user, 0L, 0, realmsWorldUploadStatusTracker);

RealmsWorldUploadStatusTracker

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

com.mojang.realmsclient.client.worldupload.RealmsWorldUploadStatusTracker#getUploadStatus()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsWorldUploadStatusTracker.java:9
  • Modifiers: ``
  • Return: UploadStatus

คืออะไร

อ่านค่า Upload Status

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsWorldUploadStatusTracker instance = ...;
UploadStatus result = instance.getUploadStatus();

com.mojang.realmsclient.client.worldupload.RealmsWorldUploadStatusTracker#noOp()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsWorldUploadStatusTracker.java:13
  • Modifiers: static
  • Return: RealmsWorldUploadStatusTracker

คืออะไร

ดำเนินการ noOp ตาม implementation ของ RealmsWorldUploadStatusTracker

ทำงานยังไง

เรียกต่อ: getUploadStatus(), setUploading(). สร้างออบเจ็กต์: RealmsWorldUploadStatusTracker, UploadStatus. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ไม่มี

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

RealmsWorldUploadStatusTracker result = RealmsWorldUploadStatusTracker.noOp();

com.mojang.realmsclient.client.worldupload.RealmsWorldUploadStatusTracker#setUploading()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/client/worldupload/RealmsWorldUploadStatusTracker.java:11
  • Modifiers: ``
  • Return: void

คืออะไร

กำหนดค่า Uploading

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsWorldUploadStatusTracker instance = ...;
instance.setUploading();