Skip to content

Package com.mojang.realmsclient.gui.screens

Part 1/1


AddRealmPopupScreen

  • Full name: com.mojang.realmsclient.gui.screens.AddRealmPopupScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/AddRealmPopupScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.AddRealmPopupScreen#AddRealmPopupScreen(Screen,boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/AddRealmPopupScreen.java:53
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: backgroundScreen, trialAvailable.

Parameters

  • Screen screen
  • boolean bl

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

Screen screen = ...;
AddRealmPopupScreen instance = new AddRealmPopupScreen(screen, true);

com.mojang.realmsclient.gui.screens.AddRealmPopupScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/AddRealmPopupScreen.java:67
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ AddRealmPopupScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: createTrialButton. เรียกต่อ: resize(), addRenderableWidget(), builder(), translatable(), confirmLink(), bounds(), right(), bottom(). สร้างออบเจ็กต์: ImageButton, FittingMultiLineTextWidget.

Parameters

  • ไม่มี

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

@Override
protected void init() {
    super.init();
}

com.mojang.realmsclient.gui.screens.AddRealmPopupScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/AddRealmPopupScreen.java:154
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

AddRealmPopupScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.AddRealmPopupScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/AddRealmPopupScreen.java:107
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

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

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

AddRealmPopupScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.AddRealmPopupScreen#renderBackground(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/AddRealmPopupScreen.java:125
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ Background

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: render(), flush(), clear(), clearTooltipForNextRenderPass(), renderTransparentBackground(), blitSprite(), left(), top().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

AddRealmPopupScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.renderBackground(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.AddRealmPopupScreen#renderDiamond(GuiGraphics,Button)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/AddRealmPopupScreen.java:115
  • Modifiers: public static
  • Return: void

คืออะไร

เรนเดอร์ Diamond

ทำงานยังไง

เรียกต่อ: pose(), pushPose(), translate(), blitSprite(), getX(), getWidth(), getY(), getHeight().

Parameters

  • GuiGraphics guiGraphics
  • Button button

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

GuiGraphics guiGraphics = ...;
Button button = ...;
AddRealmPopupScreen.renderDiamond(guiGraphics, button);

com.mojang.realmsclient.gui.screens.AddRealmPopupScreen#tick()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/AddRealmPopupScreen.java:98
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

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

Parameters

  • ไม่มี

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

AddRealmPopupScreen instance = ...;
instance.tick();

com.mojang.realmsclient.gui.screens.AddRealmPopupScreen#updateCarouselImages(ResourceManager)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/AddRealmPopupScreen.java:59
  • Modifiers: public static
  • Return: void

คืออะไร

อัปเดต Carousel Images

ทำงานยังไง

เรียกต่อ: listResources(), getPath(), endsWith(), keySet(), stream(), filter(), getNamespace(), equals().

Parameters

  • ResourceManager resourceManager

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

ResourceManager resourceManager = ...;
AddRealmPopupScreen.updateCarouselImages(resourceManager);

RealmsBackupInfoScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsBackupInfoScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsBackupInfoScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsBackupInfoScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBackupInfoScreen.java:33
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsBackupInfoScreen

ทำงานยังไง

แก้ state: backupInfoList. เรียกต่อ: addTitleHeader(), addToContents(), BackupInfoList(), addToFooter(), builder(), onClose(), build(), repositionElements(). สร้างออบเจ็กต์: RealmsBackupInfoScreen.BackupInfoList.

Parameters

  • ไม่มี

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

RealmsBackupInfoScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsBackupInfoScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBackupInfoScreen.java:50
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsBackupInfoScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsBackupInfoScreen#RealmsBackupInfoScreen(Screen,Backup)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBackupInfoScreen.java:27
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen, backup.

Parameters

  • Screen screen
  • Backup backup

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

Screen screen = ...;
Backup backup = ...;
RealmsBackupInfoScreen instance = new RealmsBackupInfoScreen(screen, backup);

com.mojang.realmsclient.gui.screens.RealmsBackupInfoScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBackupInfoScreen.java:44
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsBackupInfoScreen

ทำงานยังไง

เรียกต่อ: setSize(), getContentHeight(), arrangeElements().

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

RealmsBackupScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsBackupScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsBackupScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsBackupScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBackupScreen.java:62
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsBackupScreen

ทำงานยังไง

แก้ state: backupList, downloadButton. เรียกต่อ: addTitleHeader(), addToContents(), BackupObjectSelectionList(), addToFooter(), horizontal(), spacing(), addChild(), builder(). สร้างออบเจ็กต์: RealmsBackupScreen.BackupObjectSelectionList.

Parameters

  • ไม่มี

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

RealmsBackupScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsBackupScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBackupScreen.java:126
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsBackupScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsBackupScreen#RealmsBackupScreen(RealmsConfigureWorldScreen,RealmsServer,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBackupScreen.java:55
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen, serverData, slotId.

Parameters

  • RealmsConfigureWorldScreen realmsConfigureWorldScreen
  • RealmsServer realmsServer
  • int i

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

RealmsConfigureWorldScreen realmsConfigureWorldScreen = ...;
RealmsServer realmsServer = ...;
RealmsBackupScreen instance = new RealmsBackupScreen(realmsConfigureWorldScreen, realmsServer, 0);

com.mojang.realmsclient.gui.screens.RealmsBackupScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBackupScreen.java:77
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: drawString(), width(), getY(), getHeight().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsBackupScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsBackupScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBackupScreen.java:87
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsBackupScreen

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

RealmsBrokenWorldScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsBrokenWorldScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsBrokenWorldScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsBrokenWorldScreen#doSwitchOrReset()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBrokenWorldScreen.java:175
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ doSwitchOrReset ตาม implementation ของ RealmsBrokenWorldScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: create(), execute(), setScreen(), getOwnRealm(), play(), error(), start(). สร้างออบเจ็กต์: Thread, RealmsLongRunningMcoTaskScreen, OpenServerTask.

Parameters

  • ไม่มี

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

RealmsBrokenWorldScreen instance = ...;
instance.doSwitchOrReset();

com.mojang.realmsclient.gui.screens.RealmsBrokenWorldScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBrokenWorldScreen.java:68
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

เรียกต่อ: formatList(), concat(), of(), collect(), toList(). คืนค่า: ComponentUtils.formatList(Stream.concat(Stream.of(this.title), Stream.of(this.message)).collect(Collectors.toList()), CommonComponents.SPACE).

Parameters

  • ไม่มี

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

RealmsBrokenWorldScreen instance = ...;
Component result = instance.getNarrationMessage();

com.mojang.realmsclient.gui.screens.RealmsBrokenWorldScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBrokenWorldScreen.java:57
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsBrokenWorldScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: leftX, serverData. เรียกต่อ: addRenderableWidget(), builder(), onClose(), bounds(), row(), build(), fetchServerData(), addButtons().

Parameters

  • ไม่มี

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

RealmsBrokenWorldScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsBrokenWorldScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBrokenWorldScreen.java:219
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsBrokenWorldScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsBrokenWorldScreen#RealmsBrokenWorldScreen(Screen,long,boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBrokenWorldScreen.java:51
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen, serverId. เรียกต่อ: translatable().

Parameters

  • Screen screen
  • long l
  • boolean bl

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

Screen screen = ...;
RealmsBrokenWorldScreen instance = new RealmsBrokenWorldScreen(screen, 0L, true);

com.mojang.realmsclient.gui.screens.RealmsBrokenWorldScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBrokenWorldScreen.java:113
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: drawCenteredString(), row(), entrySet(), getValue(), drawSlotFrame(), getFramePositionX(), getKey(), isMinigame().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsBrokenWorldScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsBrokenWorldScreen#tick()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsBrokenWorldScreen.java:108
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

แก้ state: animTick.

Parameters

  • ไม่มี

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

RealmsBrokenWorldScreen instance = ...;
instance.tick();

RealmsClientOutdatedScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsClientOutdatedScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsClientOutdatedScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsClientOutdatedScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsClientOutdatedScreen.java:33
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsClientOutdatedScreen

ทำงานยังไง

เรียกต่อ: addTitleHeader(), addToContents(), getErrorMessage(), setCentered(), addToFooter(), builder(), onClose(), width(). สร้างออบเจ็กต์: MultiLineTextWidget.

Parameters

  • ไม่มี

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

RealmsClientOutdatedScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsClientOutdatedScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsClientOutdatedScreen.java:49
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsClientOutdatedScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsClientOutdatedScreen#RealmsClientOutdatedScreen(Screen)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsClientOutdatedScreen.java:28
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen.

Parameters

  • Screen screen

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

Screen screen = ...;
RealmsClientOutdatedScreen instance = new RealmsClientOutdatedScreen(screen);

com.mojang.realmsclient.gui.screens.RealmsClientOutdatedScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsClientOutdatedScreen.java:44
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsClientOutdatedScreen

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

RealmsConfigureWorldScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#closeTheWorld()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:443
  • Modifiers: public
  • Return: void

คืออะไร

ปิด The World

ทำงานยังไง

เรียกต่อ: getNewScreen(), setScreen(). สร้างออบเจ็กต์: RealmsLongRunningMcoTaskScreen, CloseServerTask.

Parameters

  • ไม่มี

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

RealmsConfigureWorldScreen instance = ...;
instance.closeTheWorld();

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#fetchServerData(long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:248
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ fetchServerData ตาม implementation ของ RealmsConfigureWorldScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. แก้ state: serverData. เรียกต่อ: create(), getOwnRealm(), execute(), disableButtons(), isMinigame(), show(), setServerData(), error(). สร้างออบเจ็กต์: Thread, RealmsGenericErrorScreen.

Parameters

  • long l

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

RealmsConfigureWorldScreen instance = ...;
instance.fetchServerData(0L);

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#getNewScreen()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:462
  • Modifiers: public
  • Return: RealmsConfigureWorldScreen

คืออะไร

อ่านค่า New Screen

ทำงานยังไง

สร้างออบเจ็กต์: RealmsConfigureWorldScreen. คืนค่า: realmsConfigureWorldScreen.

Parameters

  • ไม่มี

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

RealmsConfigureWorldScreen instance = ...;
RealmsConfigureWorldScreen result = instance.getNewScreen();

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:72
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsConfigureWorldScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: serverData, leftX, rightX, playersButton, settingsButton, subscriptionButton. เรียกต่อ: fetchServerData(), addRenderableWidget(), builder(), translatable(), setScreen(), bounds(), centerButton(), row(). สร้างออบเจ็กต์: RealmsPlayerScreen, RealmsSettingsScreen, RealmsSubscriptionInfoScreen, RealmsSelectWorldTemplateScreen.

Parameters

  • ไม่มี

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

RealmsConfigureWorldScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:240
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsConfigureWorldScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#openTheWorld(boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:435
  • Modifiers: public
  • Return: void

คืออะไร

เปิด The World

ทำงานยังไง

เรียกต่อ: getNewScreen(), setScreen(). สร้างออบเจ็กต์: RealmsLongRunningMcoTaskScreen, OpenServerTask.

Parameters

  • boolean bl

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

RealmsConfigureWorldScreen instance = ...;
instance.openTheWorld(true);

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#RealmsConfigureWorldScreen(RealmsMainScreen,long)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:66
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen, serverId.

Parameters

  • RealmsMainScreen realmsMainScreen
  • long l

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

RealmsMainScreen realmsMainScreen = ...;
RealmsConfigureWorldScreen instance = new RealmsConfigureWorldScreen(realmsMainScreen, 0L);

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:211
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: toolTip, serverData. เรียกต่อ: drawCenteredString(), row(), requireNonNullElse(), getName(), width(), min(), centerButton(), drawServerStatus().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsConfigureWorldScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#saveSettings(String,String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:417
  • Modifiers: public
  • Return: void

คืออะไร

บันทึก Settings

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: isBlank(), create(), update(), setName(), setDescription(), stateChanged(), error(), setScreen(). สร้างออบเจ็กต์: RealmsGenericErrorScreen.

Parameters

  • String string
  • String string2

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

RealmsConfigureWorldScreen instance = ...;
instance.saveSettings("value", "value");

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#saveSlotSettings(RealmsWorldOptions)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:396
  • Modifiers: public
  • Return: void

คืออะไร

บันทึก Slot Settings

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: get(), create(), updateSlot(), put(), refreshServerList(), error(), setScreen(). สร้างออบเจ็กต์: RealmsGenericErrorScreen.

Parameters

  • RealmsWorldOptions realmsWorldOptions

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

RealmsConfigureWorldScreen instance = ...;
RealmsWorldOptions realmsWorldOptions = ...;
instance.saveSlotSettings(realmsWorldOptions);

com.mojang.realmsclient.gui.screens.RealmsConfigureWorldScreen#stateChanged()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfigureWorldScreen.java:448
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ stateChanged ตาม implementation ของ RealmsConfigureWorldScreen

ทำงานยังไง

แก้ state: stateChanged.

Parameters

  • ไม่มี

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

RealmsConfigureWorldScreen instance = ...;
instance.stateChanged();

RealmsConfirmScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsConfirmScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsConfirmScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsConfirmScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfirmScreen.java:26
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsConfirmScreen

ทำงานยังไง

เรียกต่อ: addRenderableWidget(), builder(), accept(), bounds(), row(), build().

Parameters

  • ไม่มี

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

RealmsConfirmScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsConfirmScreen#RealmsConfirmScreen(BooleanConsumer,Component,Component)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfirmScreen.java:19
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: callback, title1, title2.

Parameters

  • BooleanConsumer booleanConsumer
  • Component component
  • Component component2

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

BooleanConsumer booleanConsumer = ...;
Component component = ...;
Component component2 = ...;
RealmsConfirmScreen instance = new RealmsConfirmScreen(booleanConsumer, component, component2);

com.mojang.realmsclient.gui.screens.RealmsConfirmScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsConfirmScreen.java:32
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

เรียกต่อ: drawCenteredString(), row().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsConfirmScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

RealmsCreateRealmScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsCreateRealmScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsCreateRealmScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsCreateRealmScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsCreateRealmScreen.java:44
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsCreateRealmScreen

ทำงานยังไง

แก้ state: nameBox, descriptionBox. เรียกต่อ: addTitleHeader(), addToContents(), vertical(), spacing(), builder(), run(), build(), setResponder(). สร้างออบเจ็กต์: EditBox.

Parameters

  • ไม่มี

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

RealmsCreateRealmScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsCreateRealmScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsCreateRealmScreen.java:124
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsCreateRealmScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsCreateRealmScreen#RealmsCreateRealmScreen(RealmsMainScreen,RealmsServer,boolean)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsCreateRealmScreen.java:38
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen, createWorldRunnable. เรียกต่อ: createWorld().

Parameters

  • RealmsMainScreen realmsMainScreen
  • RealmsServer realmsServer
  • boolean bl

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

RealmsMainScreen realmsMainScreen = ...;
RealmsServer realmsServer = ...;
RealmsCreateRealmScreen instance = new RealmsCreateRealmScreen(realmsMainScreen, realmsServer, true);

com.mojang.realmsclient.gui.screens.RealmsCreateRealmScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsCreateRealmScreen.java:69
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsCreateRealmScreen

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

com.mojang.realmsclient.gui.screens.RealmsCreateRealmScreen#setInitialFocus()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsCreateRealmScreen.java:64
  • Modifiers: protected
  • Return: void

คืออะไร

กำหนดค่า Initial Focus

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void setInitialFocus() {
    super.setInitialFocus();
}

RealmsDownloadLatestWorldScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsDownloadLatestWorldScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsDownloadLatestWorldScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsDownloadLatestWorldScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsDownloadLatestWorldScreen.java:73
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsDownloadLatestWorldScreen

ทำงานยังไง

แก้ state: cancelButton. เรียกต่อ: addRenderableWidget(), builder(), onClose(), bounds(), build(), checkDownloadSize().

Parameters

  • ไม่มี

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

RealmsDownloadLatestWorldScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsDownloadLatestWorldScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsDownloadLatestWorldScreen.java:127
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsDownloadLatestWorldScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsDownloadLatestWorldScreen#RealmsDownloadLatestWorldScreen(Screen,WorldDownload,String,BooleanConsumer)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsDownloadLatestWorldScreen.java:62
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: callback, lastScreen, worldName, worldDownload, downloadStatus, downloadTitle. เรียกต่อ: DownloadStatus(), translatable(), create(). สร้างออบเจ็กต์: RealmsDownloadLatestWorldScreen.DownloadStatus.

Parameters

  • Screen screen
  • WorldDownload worldDownload
  • String string
  • BooleanConsumer booleanConsumer

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

Screen screen = ...;
WorldDownload worldDownload = ...;
BooleanConsumer booleanConsumer = ...;
RealmsDownloadLatestWorldScreen instance = new RealmsDownloadLatestWorldScreen(screen, worldDownload, "value", booleanConsumer);

com.mojang.realmsclient.gui.screens.RealmsDownloadLatestWorldScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsDownloadLatestWorldScreen.java:137
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: drawCenteredString(), drawDots(), drawProgressBar(), drawDownloadSpeed().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsDownloadLatestWorldScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsDownloadLatestWorldScreen#tick()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsDownloadLatestWorldScreen.java:101
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: animTick. เรียกต่อ: tryAcquire(), createProgressNarrationMessage(), getNarrator(), sayNow().

Parameters

  • ไม่มี

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

RealmsDownloadLatestWorldScreen instance = ...;
instance.tick();

RealmsGenericErrorScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsGenericErrorScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsGenericErrorScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java:64
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

เรียกต่อ: empty(), append(). คืนค่า: Component.empty().append(this.lines.title).append(": ").append(this.lines.detail).

Parameters

  • ไม่มี

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

RealmsGenericErrorScreen instance = ...;
Component result = instance.getNarrationMessage();

com.mojang.realmsclient.gui.screens.RealmsGenericErrorScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java:53
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsGenericErrorScreen

ทำงานยังไง

แก้ state: line2Split. เรียกต่อ: addRenderableWidget(), builder(), onClose(), bounds(), build(), create().

Parameters

  • ไม่มี

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

RealmsGenericErrorScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsGenericErrorScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java:59
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsGenericErrorScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsGenericErrorScreen#RealmsGenericErrorScreen(Component,Component,Screen)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java:34
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: nextScreen, lines. เรียกต่อ: errorMessage().

Parameters

  • Component component
  • Component component2
  • Screen screen

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

Component component = ...;
Component component2 = ...;
Screen screen = ...;
RealmsGenericErrorScreen instance = new RealmsGenericErrorScreen(component, component2, screen);

com.mojang.realmsclient.gui.screens.RealmsGenericErrorScreen#RealmsGenericErrorScreen(Component,Screen)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java:28
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: nextScreen, lines. เรียกต่อ: errorMessage().

Parameters

  • Component component
  • Screen screen

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

Component component = ...;
Screen screen = ...;
RealmsGenericErrorScreen instance = new RealmsGenericErrorScreen(component, screen);

com.mojang.realmsclient.gui.screens.RealmsGenericErrorScreen#RealmsGenericErrorScreen(RealmsServiceException,Screen)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: nextScreen, lines. เรียกต่อ: errorMessage().

Parameters

  • RealmsServiceException realmsServiceException
  • Screen screen

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

RealmsServiceException realmsServiceException = ...;
Screen screen = ...;
RealmsGenericErrorScreen instance = new RealmsGenericErrorScreen(realmsServiceException, screen);

com.mojang.realmsclient.gui.screens.RealmsGenericErrorScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsGenericErrorScreen.java:69
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

เรียกต่อ: drawCenteredString(), renderCentered().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsGenericErrorScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

RealmsInviteScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsInviteScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsInviteScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsInviteScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsInviteScreen.java:48
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsInviteScreen

ทำงานยังไง

แก้ state: profileName, inviteButton. เรียกต่อ: addTitleHeader(), addToContents(), vertical(), spacing(), translatable(), addChild(), labeledElement(), builder(). สร้างออบเจ็กต์: EditBox.

Parameters

  • ไม่มี

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

RealmsInviteScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsInviteScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsInviteScreen.java:107
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsInviteScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsInviteScreen#RealmsInviteScreen(RealmsConfigureWorldScreen,Screen,RealmsServer)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsInviteScreen.java:41
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: configureScreen, lastScreen, serverData.

Parameters

  • RealmsConfigureWorldScreen realmsConfigureWorldScreen
  • Screen screen
  • RealmsServer realmsServer

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

RealmsConfigureWorldScreen realmsConfigureWorldScreen = ...;
Screen screen = ...;
RealmsServer realmsServer = ...;
RealmsInviteScreen instance = new RealmsInviteScreen(realmsConfigureWorldScreen, screen, realmsServer);

com.mojang.realmsclient.gui.screens.RealmsInviteScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsInviteScreen.java:112
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

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

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsInviteScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsInviteScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsInviteScreen.java:62
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsInviteScreen

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

com.mojang.realmsclient.gui.screens.RealmsInviteScreen#setInitialFocus()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsInviteScreen.java:67
  • Modifiers: protected
  • Return: void

คืออะไร

กำหนดค่า Initial Focus

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void setInitialFocus() {
    super.setInitialFocus();
}

RealmsLongRunningMcoTaskScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTaskScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTaskScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTaskScreen#cancel()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTaskScreen.java:98
  • Modifiers: protected
  • Return: void

คืออะไร

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

ทำงานยังไง

มีการวนลูป. เรียกต่อ: abortTask(), setScreen().

Parameters

  • ไม่มี

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

@Override
protected void cancel() {
    super.cancel();
}

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTaskScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTaskScreen.java:80
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsLongRunningMcoTaskScreen

ทำงานยังไง

แก้ state: loadingDotsWidget. เรียกต่อ: defaultCellSetting(), alignHorizontallyCenter(), addChild(), paddingBottom(), builder(), cancel(), build(), visitWidgets(). สร้างออบเจ็กต์: LoadingDotsWidget.

Parameters

  • ไม่มี

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

RealmsLongRunningMcoTaskScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTaskScreen#keyPressed(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTaskScreen.java:70
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ keyPressed ตาม implementation ของ RealmsLongRunningMcoTaskScreen

ทำงานยังไง

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

Parameters

  • int i
  • int j
  • int k

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

RealmsLongRunningMcoTaskScreen instance = ...;
boolean result = instance.keyPressed(0, 0, 0);

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTaskScreen#RealmsLongRunningMcoTaskScreen(Screen,LongRunningTask[])

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTaskScreen.java:35
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: lastScreen, queuedTasks, title. เรียกต่อ: of(), isEmpty(), get(), getTitle(), setTitle(), aborted(), run(), setUncaughtExceptionHandler(). สร้างออบเจ็กต์: IllegalArgumentException, Thread, RealmsDefaultUncaughtExceptionHandler.

Parameters

  • Screen screen
  • LongRunningTask[] longRunningTasks

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

Screen screen = ...;
LongRunningTask[] longRunningTasks = ...;
RealmsLongRunningMcoTaskScreen instance = new RealmsLongRunningMcoTaskScreen(screen, longRunningTasks);

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTaskScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTaskScreen.java:92
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsLongRunningMcoTaskScreen

ทำงานยังไง

เรียกต่อ: arrangeElements(), centerInRectangle(), getRectangle().

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTaskScreen#setTitle(Component)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTaskScreen.java:106
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Title

ทำงานยังไง

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

Parameters

  • Component component

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

RealmsLongRunningMcoTaskScreen instance = ...;
Component component = ...;
instance.setTitle(component);

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTaskScreen#tick()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTaskScreen.java:62
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsLongRunningMcoTaskScreen instance = ...;
instance.tick();

RealmsLongRunningMcoTickTaskScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTickTaskScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTickTaskScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsLongRunningMcoTaskScreen

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTickTaskScreen#cancel()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTickTaskScreen.java:23
  • Modifiers: protected
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void cancel() {
    super.cancel();
}

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTickTaskScreen#RealmsLongRunningMcoTickTaskScreen(Screen,LongRunningTask)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTickTaskScreen.java:12
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: task.

Parameters

  • Screen screen
  • LongRunningTask longRunningTask

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

Screen screen = ...;
LongRunningTask longRunningTask = ...;
RealmsLongRunningMcoTickTaskScreen instance = new RealmsLongRunningMcoTickTaskScreen(screen, longRunningTask);

com.mojang.realmsclient.gui.screens.RealmsLongRunningMcoTickTaskScreen#tick()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsLongRunningMcoTickTaskScreen.java:17
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsLongRunningMcoTickTaskScreen instance = ...;
instance.tick();

RealmsNotificationsScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsNotificationsScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsNotificationsScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsNotificationsScreen#added()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsNotificationsScreen.java:73
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ added ตาม implementation ของ RealmsNotificationsScreen

ทำงานยังไง

เรียกต่อ: realmsDataFetcher(), reset().

Parameters

  • ไม่มี

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

RealmsNotificationsScreen instance = ...;
instance.added();

com.mojang.realmsclient.gui.screens.RealmsNotificationsScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsNotificationsScreen.java:66
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsNotificationsScreen

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsNotificationsScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsNotificationsScreen#RealmsNotificationsScreen()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsNotificationsScreen.java:62
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsNotificationsScreen instance = new RealmsNotificationsScreen();

com.mojang.realmsclient.gui.screens.RealmsNotificationsScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsNotificationsScreen.java:114
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

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

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsNotificationsScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsNotificationsScreen#renderBackground(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsNotificationsScreen.java:122
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ Background

ทำงานยังไง

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

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsNotificationsScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.renderBackground(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsNotificationsScreen#tick()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsNotificationsScreen.java:89
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: currentConfiguration, realmsDataSubscription. เรียกต่อ: getConfiguration(), equals(), initDataFetcher(), realmsDataFetcher().

Parameters

  • ไม่มี

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

RealmsNotificationsScreen instance = ...;
instance.tick();

RealmsParentalConsentScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsParentalConsentScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsParentalConsentScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsParentalConsentScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsParentalConsentScreen.java:63
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

คืนค่า: MESSAGE.

Parameters

  • ไม่มี

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

RealmsParentalConsentScreen instance = ...;
Component result = instance.getNarrationMessage();

com.mojang.realmsclient.gui.screens.RealmsParentalConsentScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsParentalConsentScreen.java:33
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsParentalConsentScreen

ทำงานยังไง

แก้ state: textWidget. เรียกต่อ: spacing(), defaultCellSetting(), alignHorizontallyCenter(), setCentered(), addChild(), horizontal(), translatable(), builder(). สร้างออบเจ็กต์: MultiLineTextWidget.

Parameters

  • ไม่มี

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

RealmsParentalConsentScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsParentalConsentScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsParentalConsentScreen.java:48
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsParentalConsentScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsParentalConsentScreen#RealmsParentalConsentScreen(Screen)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsParentalConsentScreen.java:28
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen.

Parameters

  • Screen screen

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

Screen screen = ...;
RealmsParentalConsentScreen instance = new RealmsParentalConsentScreen(screen);

com.mojang.realmsclient.gui.screens.RealmsParentalConsentScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsParentalConsentScreen.java:53
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsParentalConsentScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: setMaxWidth(), arrangeElements(), centerInRectangle(), getRectangle().

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

RealmsPendingInvitesScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsPendingInvitesScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsPendingInvitesScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsPendingInvitesScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPendingInvitesScreen.java:60
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsPendingInvitesScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: pendingInvitationSelectionList, acceptButton, rejectButton. เรียกต่อ: refreshPendingInvites(), PendingInvitationSelectionList(), thenAcceptAsync(), stream(), map(), Entry(), toList(), replaceEntries(). สร้างออบเจ็กต์: RealmsPendingInvitesScreen.PendingInvitationSelectionList, RealmsPendingInvitesScreen.Entry.

Parameters

  • ไม่มี

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

RealmsPendingInvitesScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsPendingInvitesScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPendingInvitesScreen.java:82
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsPendingInvitesScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsPendingInvitesScreen#RealmsPendingInvitesScreen(Screen,Component)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPendingInvitesScreen.java:55
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen.

Parameters

  • Screen screen
  • Component component

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

Screen screen = ...;
Component component = ...;
RealmsPendingInvitesScreen instance = new RealmsPendingInvitesScreen(screen, component);

com.mojang.realmsclient.gui.screens.RealmsPendingInvitesScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPendingInvitesScreen.java:119
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: toolTip. เรียกต่อ: drawCenteredString(), renderTooltip(), isDone(), hasPendingInvites().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsPendingInvitesScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

RealmsPlayerScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsPlayerScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsPlayerScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsPlayerScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPlayerScreen.java:52
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsPlayerScreen

ทำงานยังไง

แก้ state: invitedList. เรียกต่อ: addTitleHeader(), addToContents(), InvitedObjectSelectionList(), repopulateInvitedList(), addToFooter(), horizontal(), spacing(), addChild(). สร้างออบเจ็กต์: RealmsPlayerScreen.InvitedObjectSelectionList, RealmsInviteScreen.

Parameters

  • ไม่มี

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

RealmsPlayerScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsPlayerScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPlayerScreen.java:90
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsPlayerScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsPlayerScreen#RealmsPlayerScreen(RealmsConfigureWorldScreen,RealmsServer)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPlayerScreen.java:46
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen, serverData.

Parameters

  • RealmsConfigureWorldScreen realmsConfigureWorldScreen
  • RealmsServer realmsServer

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

RealmsConfigureWorldScreen realmsConfigureWorldScreen = ...;
RealmsServer realmsServer = ...;
RealmsPlayerScreen instance = new RealmsPlayerScreen(realmsConfigureWorldScreen, realmsServer);

com.mojang.realmsclient.gui.screens.RealmsPlayerScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPlayerScreen.java:72
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsPlayerScreen

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

RealmsPopups

  • Full name: com.mojang.realmsclient.gui.screens.RealmsPopups
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsPopups.java
  • Type: class
  • Modifiers: public

com.mojang.realmsclient.gui.screens.RealmsPopups#infoPopupScreen(Screen,Component,Consumer<PopupScreen>)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPopups.java:17
  • Modifiers: public static
  • Return: PopupScreen

คืออะไร

ดำเนินการ infoPopupScreen ตาม implementation ของ RealmsPopups

ทำงานยังไง

เรียกต่อ: Builder(), setMessage(), addButton(), build(). สร้างออบเจ็กต์: PopupScreen.Builder.

Parameters

  • Screen screen
  • Component component
  • Consumer<PopupScreen> consumer

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

Screen screen = ...;
Component component = ...;
Consumer<PopupScreen> consumer = ...;
PopupScreen result = RealmsPopups.infoPopupScreen(screen, component, consumer);

com.mojang.realmsclient.gui.screens.RealmsPopups#warningAcknowledgePopupScreen(Screen,Component,Consumer<PopupScreen>)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPopups.java:33
  • Modifiers: public static
  • Return: PopupScreen

คืออะไร

ดำเนินการ warningAcknowledgePopupScreen ตาม implementation ของ RealmsPopups

ทำงานยังไง

เรียกต่อ: Builder(), setMessage(), addButton(), build(). สร้างออบเจ็กต์: PopupScreen.Builder. คืนค่า: new PopupScreen.Builder(screen, WARNING).setMessage(component).addButton(CommonComponents.GUI_OK, consumer).build().

Parameters

  • Screen screen
  • Component component
  • Consumer<PopupScreen> consumer

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

Screen screen = ...;
Component component = ...;
Consumer<PopupScreen> consumer = ...;
PopupScreen result = RealmsPopups.warningAcknowledgePopupScreen(screen, component, consumer);

com.mojang.realmsclient.gui.screens.RealmsPopups#warningPopupScreen(Screen,Component,Consumer<PopupScreen>)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsPopups.java:25
  • Modifiers: public static
  • Return: PopupScreen

คืออะไร

ดำเนินการ warningPopupScreen ตาม implementation ของ RealmsPopups

ทำงานยังไง

เรียกต่อ: Builder(), setMessage(), addButton(), build(). สร้างออบเจ็กต์: PopupScreen.Builder.

Parameters

  • Screen screen
  • Component component
  • Consumer<PopupScreen> consumer

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

Screen screen = ...;
Component component = ...;
Consumer<PopupScreen> consumer = ...;
PopupScreen result = RealmsPopups.warningPopupScreen(screen, component, consumer);

RealmsResetWorldScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsResetWorldScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsResetWorldScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsResetWorldScreen#forEmptySlot(Screen,int,RealmsServer,Runnable)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsResetWorldScreen.java:118
  • Modifiers: public static
  • Return: RealmsResetWorldScreen

คืออะไร

ดำเนินการ forEmptySlot ตาม implementation ของ RealmsResetWorldScreen

ทำงานยังไง

สร้างออบเจ็กต์: RealmsResetWorldScreen. คืนค่า: new RealmsResetWorldScreen(screen, realmsServer, i, CREATE_WORLD_TITLE, CREATE_WORLD_SUBTITLE, -6250336, CREATE_WORLD_RESET_TASK_TITLE, runnable).

Parameters

  • Screen screen
  • int i
  • RealmsServer realmsServer
  • Runnable runnable

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

Screen screen = ...;
RealmsServer realmsServer = ...;
Runnable runnable = ...;
RealmsResetWorldScreen result = RealmsResetWorldScreen.forEmptySlot(screen, 0, realmsServer, runnable);

com.mojang.realmsclient.gui.screens.RealmsResetWorldScreen#forNewRealm(Screen,RealmsServer,RealmCreationTask,Runnable)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsResetWorldScreen.java:104
  • Modifiers: public static
  • Return: RealmsResetWorldScreen

คืออะไร

ดำเนินการ forNewRealm ตาม implementation ของ RealmsResetWorldScreen

ทำงานยังไง

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

Parameters

  • Screen screen
  • RealmsServer realmsServer
  • RealmCreationTask realmCreationTask
  • Runnable runnable

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

Screen screen = ...;
RealmsServer realmsServer = ...;
RealmCreationTask realmCreationTask = ...;
Runnable runnable = ...;
RealmsResetWorldScreen result = RealmsResetWorldScreen.forNewRealm(screen, realmsServer, realmCreationTask, runnable);

com.mojang.realmsclient.gui.screens.RealmsResetWorldScreen#forResetSlot(Screen,RealmsServer,Runnable)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsResetWorldScreen.java:122
  • Modifiers: public static
  • Return: RealmsResetWorldScreen

คืออะไร

ดำเนินการ forResetSlot ตาม implementation ของ RealmsResetWorldScreen

ทำงานยังไง

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

Parameters

  • Screen screen
  • RealmsServer realmsServer
  • Runnable runnable

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

Screen screen = ...;
RealmsServer realmsServer = ...;
Runnable runnable = ...;
RealmsResetWorldScreen result = RealmsResetWorldScreen.forResetSlot(screen, realmsServer, runnable);

com.mojang.realmsclient.gui.screens.RealmsResetWorldScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsResetWorldScreen.java:223
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

เรียกต่อ: joinForNarration(), getTitle(). คืนค่า: CommonComponents.joinForNarration(new Component[]{this.getTitle(), this.subtitle}).

Parameters

  • ไม่มี

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

RealmsResetWorldScreen instance = ...;
Component result = instance.getNarrationMessage();

com.mojang.realmsclient.gui.screens.RealmsResetWorldScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsResetWorldScreen.java:128
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsResetWorldScreen

ทำงานยังไง

มีการจัดการ exception. แก้ state: templates, adventuremaps, experiences, inspirations. เรียกต่อ: addToHeader(), vertical(), defaultCellSetting(), padding(), addChild(), setColor(), run(), create(). สร้างออบเจ็กต์: StringWidget, Thread, GridLayout, RealmsResetWorldScreen.FrameButton.

Parameters

  • ไม่มี

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

RealmsResetWorldScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsResetWorldScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsResetWorldScreen.java:228
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsResetWorldScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsResetWorldScreen#RealmsResetWorldScreen(Screen,RealmsServer,int,Component,Component,int,Component,RealmCreationTask,Runnable)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsResetWorldScreen.java:82
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen, serverData, slot, subtitle, subtitleColor, resetTaskTitle.

Parameters

  • Screen screen
  • RealmsServer realmsServer
  • int i
  • Component component
  • Component component2
  • int j
  • Component component3
  • RealmCreationTask realmCreationTask
  • Runnable runnable

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

Screen screen = ...;
RealmsServer realmsServer = ...;
Component component = ...;
Component component2 = ...;
Component component3 = ...;
RealmCreationTask realmCreationTask = ...;
Runnable runnable = ...;
RealmsResetWorldScreen instance = new RealmsResetWorldScreen(screen, realmsServer, 0, component, component2, 0, component3, realmCreationTask, runnable);

com.mojang.realmsclient.gui.screens.RealmsResetWorldScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsResetWorldScreen.java:218
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsResetWorldScreen

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

RealmsSelectFileToUploadScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsSelectFileToUploadScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsSelectFileToUploadScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsSelectFileToUploadScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectFileToUploadScreen.java:90
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

เรียกต่อ: joinForNarration(), getTitle(), createLabelNarration(). คืนค่า: CommonComponents.joinForNarration(new Component[]{this.getTitle(), this.createLabelNarration()}).

Parameters

  • ไม่มี

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

RealmsSelectFileToUploadScreen instance = ...;
Component result = instance.getNarrationMessage();

com.mojang.realmsclient.gui.screens.RealmsSelectFileToUploadScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectFileToUploadScreen.java:65
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsSelectFileToUploadScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: worldSelectionList, uploadButton. เรียกต่อ: addRenderableWidget(), WorldSelectionList(), loadLevelList(), error(), setScreen(), nullToEmpty(), getMessage(), builder(). สร้างออบเจ็กต์: RealmsSelectFileToUploadScreen.WorldSelectionList, RealmsGenericErrorScreen, RealmsLabel.

Parameters

  • ไม่มี

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

RealmsSelectFileToUploadScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsSelectFileToUploadScreen#keyPressed(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectFileToUploadScreen.java:108
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ keyPressed ตาม implementation ของ RealmsSelectFileToUploadScreen

ทำงานยังไง

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

Parameters

  • int i
  • int j
  • int k

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

RealmsSelectFileToUploadScreen instance = ...;
boolean result = instance.keyPressed(0, 0, 0);

com.mojang.realmsclient.gui.screens.RealmsSelectFileToUploadScreen#RealmsSelectFileToUploadScreen(RealmCreationTask,long,int,RealmsResetWorldScreen)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectFileToUploadScreen.java:45
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: realmCreationTask, lastScreen, realmId, slotId.

Parameters

  • RealmCreationTask realmCreationTask
  • long l
  • int i
  • RealmsResetWorldScreen realmsResetWorldScreen

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

RealmCreationTask realmCreationTask = ...;
RealmsResetWorldScreen realmsResetWorldScreen = ...;
RealmsSelectFileToUploadScreen instance = new RealmsSelectFileToUploadScreen(realmCreationTask, 0L, 0, realmsResetWorldScreen);

com.mojang.realmsclient.gui.screens.RealmsSelectFileToUploadScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectFileToUploadScreen.java:102
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

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

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsSelectFileToUploadScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

RealmsSelectWorldTemplateScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen.java:113
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: newArrayListWithCapacity(), add(), addAll(), asList(), joinLines(). คืนค่า: CommonComponents.joinLines(list).

Parameters

  • ไม่มี

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

RealmsSelectWorldTemplateScreen instance = ...;
Component result = instance.getNarrationMessage();

com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen.java:90
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsSelectWorldTemplateScreen

ทำงานยังไง

แก้ state: worldTemplateList, trailerButton, selectButton, publisherButton. เรียกต่อ: addTitleHeader(), addToContents(), WorldTemplateList(), getTemplates(), addToFooter(), horizontal(), spacing(), defaultCellSetting(). สร้างออบเจ็กต์: RealmsSelectWorldTemplateScreen.WorldTemplateList.

Parameters

  • ไม่มี

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

RealmsSelectWorldTemplateScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen.java:130
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsSelectWorldTemplateScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen#RealmsSelectWorldTemplateScreen(Component,Consumer<WorldTemplate>,RealmsServer.WorldType)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen.java:67
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • Component component
  • Consumer<WorldTemplate> consumer
  • RealmsServer.WorldType worldType

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

Component component = ...;
Consumer<WorldTemplate> consumer = ...;
RealmsServer.WorldType worldType = ...;
RealmsSelectWorldTemplateScreen instance = new RealmsSelectWorldTemplateScreen(component, consumer, worldType);

com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen#RealmsSelectWorldTemplateScreen(Component,Consumer<WorldTemplate>,RealmsServer.WorldType,WorldTemplatePaginatedList)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen.java:71
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: callback, worldType, worldTemplateList. เรียกต่อ: WorldTemplateList(), fetchTemplatesAsync(), newArrayList(). สร้างออบเจ็กต์: RealmsSelectWorldTemplateScreen.WorldTemplateList, WorldTemplatePaginatedList.

Parameters

  • Component component
  • Consumer<WorldTemplate> consumer
  • RealmsServer.WorldType worldType
  • WorldTemplatePaginatedList worldTemplatePaginatedList

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

Component component = ...;
Consumer<WorldTemplate> consumer = ...;
RealmsServer.WorldType worldType = ...;
WorldTemplatePaginatedList worldTemplatePaginatedList = ...;
RealmsSelectWorldTemplateScreen instance = new RealmsSelectWorldTemplateScreen(component, consumer, worldType, worldTemplatePaginatedList);

com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen.java:210
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: currentLink. เรียกต่อ: renderMultilineMessage(), drawCenteredString(), row().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsSelectWorldTemplateScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen.java:107
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsSelectWorldTemplateScreen

ทำงานยังไง

เรียกต่อ: setSize(), getFooterHeight(), getHeaderHeight(), arrangeElements().

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen#setWarning(Component[])

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen.java:86
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Warning

ทำงานยังไง

แก้ state: warning.

Parameters

  • Component[] components

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

RealmsSelectWorldTemplateScreen instance = ...;
Component[] components = ...;
instance.setWarning(components);

RealmsSettingsScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsSettingsScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsSettingsScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsSettingsScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSettingsScreen.java:31
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsSettingsScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: nameEdit, descEdit. เรียกต่อ: builder(), translatable(), setScreen(), infoPopupScreen(), closeTheWorld(), openTheWorld(), bounds(), row(). สร้างออบเจ็กต์: EditBox.

Parameters

  • ไม่มี

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

RealmsSettingsScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsSettingsScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSettingsScreen.java:73
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsSettingsScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsSettingsScreen#RealmsSettingsScreen(RealmsConfigureWorldScreen,RealmsServer)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSettingsScreen.java:25
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: configureWorldScreen, serverData. เรียกต่อ: translatable().

Parameters

  • RealmsConfigureWorldScreen realmsConfigureWorldScreen
  • RealmsServer realmsServer

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

RealmsConfigureWorldScreen realmsConfigureWorldScreen = ...;
RealmsServer realmsServer = ...;
RealmsSettingsScreen instance = new RealmsSettingsScreen(realmsConfigureWorldScreen, realmsServer);

com.mojang.realmsclient.gui.screens.RealmsSettingsScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSettingsScreen.java:78
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

เรียกต่อ: drawCenteredString(), drawString(), row().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsSettingsScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsSettingsScreen#save()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSettingsScreen.java:86
  • Modifiers: public
  • Return: void

คืออะไร

บันทึก save

ทำงานยังไง

เรียกต่อ: saveSettings(), getValue().

Parameters

  • ไม่มี

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

RealmsSettingsScreen instance = ...;
instance.save();

com.mojang.realmsclient.gui.screens.RealmsSettingsScreen#setInitialFocus()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSettingsScreen.java:68
  • Modifiers: protected
  • Return: void

คืออะไร

กำหนดค่า Initial Focus

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void setInitialFocus() {
    super.setInitialFocus();
}

RealmsSlotOptionsScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsSlotOptionsScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsSlotOptionsScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsSlotOptionsScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSlotOptionsScreen.java:203
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

เรียกต่อ: joinForNarration(), getTitle(), createLabelNarration(). คืนค่า: CommonComponents.joinForNarration(new Component[]{this.getTitle(), this.createLabelNarration()}).

Parameters

  • ไม่มี

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

RealmsSlotOptionsScreen instance = ...;
Component result = instance.getNarrationMessage();

com.mojang.realmsclient.gui.screens.RealmsSlotOptionsScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSlotOptionsScreen.java:92
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsSlotOptionsScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: columnWidth, column1X, worldType, nameEdit, pvp, gameMode. เรียกต่อ: translatable(), addLabel(), addWidget(), row(), setMaxLength(), setValue(), setResponder(), addRenderableWidget(). สร้างออบเจ็กต์: RealmsLabel, EditBox, RealmsSlotOptionsScreen.SettingsSlider.

Parameters

  • ไม่มี

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

RealmsSlotOptionsScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsSlotOptionsScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSlotOptionsScreen.java:74
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsSlotOptionsScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsSlotOptionsScreen#RealmsSlotOptionsScreen(RealmsConfigureWorldScreen,RealmsWorldOptions,RealmsServer.WorldType,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSlotOptionsScreen.java:48
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: parentScreen, options, worldType, difficulty, gameMode, defaultSlotName. เรียกต่อ: translatable(), findByIndex(), getDefaultSlotName(), setWorldName(), getSlotName().

Parameters

  • RealmsConfigureWorldScreen realmsConfigureWorldScreen
  • RealmsWorldOptions realmsWorldOptions
  • RealmsServer.WorldType worldType
  • int i

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

RealmsConfigureWorldScreen realmsConfigureWorldScreen = ...;
RealmsWorldOptions realmsWorldOptions = ...;
RealmsServer.WorldType worldType = ...;
RealmsSlotOptionsScreen instance = new RealmsSlotOptionsScreen(realmsConfigureWorldScreen, realmsWorldOptions, worldType, 0);

com.mojang.realmsclient.gui.screens.RealmsSlotOptionsScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSlotOptionsScreen.java:208
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

เรียกต่อ: drawCenteredString(), drawString(), width(), row().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsSlotOptionsScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

RealmsSubscriptionInfoScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsSubscriptionInfoScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsSubscriptionInfoScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsSubscriptionInfoScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSubscriptionInfoScreen.java:88
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

เรียกต่อ: joinLines(). คืนค่า: CommonComponents.joinLines(new Component[]{SUBSCRIPTION_TITLE, SUBSCRIPTION_START_LABEL, this.startDate, TIME_LEFT_LABEL, this.daysLeft}).

Parameters

  • ไม่มี

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

RealmsSubscriptionInfoScreen instance = ...;
Component result = instance.getNarrationMessage();

com.mojang.realmsclient.gui.screens.RealmsSubscriptionInfoScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSubscriptionInfoScreen.java:54
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsSubscriptionInfoScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSubscription(), addRenderableWidget(), builder(), translatable(), confirmLinkNow(), extendRealms(), getUser(), getProfileId(). สร้างออบเจ็กต์: FittingMultiLineTextWidget.

Parameters

  • ไม่มี

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

RealmsSubscriptionInfoScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsSubscriptionInfoScreen#onClose()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSubscriptionInfoScreen.java:132
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

RealmsSubscriptionInfoScreen instance = ...;
instance.onClose();

com.mojang.realmsclient.gui.screens.RealmsSubscriptionInfoScreen#RealmsSubscriptionInfoScreen(Screen,RealmsServer,Screen)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSubscriptionInfoScreen.java:47
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen, serverData, mainScreen.

Parameters

  • Screen screen
  • RealmsServer realmsServer
  • Screen screen2

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

Screen screen = ...;
RealmsServer realmsServer = ...;
Screen screen2 = ...;
RealmsSubscriptionInfoScreen instance = new RealmsSubscriptionInfoScreen(screen, realmsServer, screen2);

com.mojang.realmsclient.gui.screens.RealmsSubscriptionInfoScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsSubscriptionInfoScreen.java:137
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: type. เรียกต่อ: drawCenteredString(), drawString(), row().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsSubscriptionInfoScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

RealmsTermsScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsTermsScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsTermsScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen

com.mojang.realmsclient.gui.screens.RealmsTermsScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsTermsScreen.java:83
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

เรียกต่อ: joinForNarration(), append().

Parameters

  • ไม่มี

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

RealmsTermsScreen instance = ...;
Component result = instance.getNarrationMessage();

com.mojang.realmsclient.gui.screens.RealmsTermsScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsTermsScreen.java:38
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsTermsScreen

ทำงานยังไง

เรียกต่อ: addRenderableWidget(), builder(), translatable(), agreedToTos(), bounds(), row(), build(), setScreen().

Parameters

  • ไม่มี

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

RealmsTermsScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsTermsScreen#keyPressed(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsTermsScreen.java:51
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ keyPressed ตาม implementation ของ RealmsTermsScreen

ทำงานยังไง

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

Parameters

  • int i
  • int j
  • int k

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

RealmsTermsScreen instance = ...;
boolean result = instance.keyPressed(0, 0, 0);

com.mojang.realmsclient.gui.screens.RealmsTermsScreen#mouseClicked(double,double,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsTermsScreen.java:72
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ mouseClicked ตาม implementation ของ RealmsTermsScreen

ทำงานยังไง

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

Parameters

  • double d
  • double e
  • int i

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

RealmsTermsScreen instance = ...;
boolean result = instance.mouseClicked(0.0D, 0.0D, 0);

com.mojang.realmsclient.gui.screens.RealmsTermsScreen#RealmsTermsScreen(Screen,RealmsServer)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsTermsScreen.java:32
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: lastScreen, realmsServer.

Parameters

  • Screen screen
  • RealmsServer realmsServer

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

Screen screen = ...;
RealmsServer realmsServer = ...;
RealmsTermsScreen instance = new RealmsTermsScreen(screen, realmsServer);

com.mojang.realmsclient.gui.screens.RealmsTermsScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsTermsScreen.java:90
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

แก้ state: onLink. เรียกต่อ: drawCenteredString(), drawString(), row(), width().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsTermsScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

RealmsUploadScreen

  • Full name: com.mojang.realmsclient.gui.screens.RealmsUploadScreen
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/RealmsUploadScreen.java
  • Type: class
  • Modifiers: public
  • Extends: RealmsScreen
  • Implements: RealmsWorldUploadStatusTracker

com.mojang.realmsclient.gui.screens.RealmsUploadScreen#getUploadStatus()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsUploadScreen.java:276
  • Modifiers: public
  • Return: UploadStatus

คืออะไร

อ่านค่า Upload Status

ทำงานยังไง

คืนค่า: this.uploadStatus.

Parameters

  • ไม่มี

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

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

com.mojang.realmsclient.gui.screens.RealmsUploadScreen#init()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsUploadScreen.java:82
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ RealmsUploadScreen

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: backButton, cancelButton, uploadStarted. เรียกต่อ: addToFooter(), builder(), onBack(), build(), onCancel(), upload(), add(), execute(). สร้างออบเจ็กต์: ArrayList<>, SwitchSlotTask, RealmsLongRunningMcoTaskScreen.

Parameters

  • ไม่มี

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

RealmsUploadScreen instance = ...;
instance.init();

com.mojang.realmsclient.gui.screens.RealmsUploadScreen#keyPressed(int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsUploadScreen.java:135
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ keyPressed ตาม implementation ของ RealmsUploadScreen

ทำงานยังไง

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

Parameters

  • int i
  • int j
  • int k

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

RealmsUploadScreen instance = ...;
boolean result = instance.keyPressed(0, 0, 0);

com.mojang.realmsclient.gui.screens.RealmsUploadScreen#RealmsUploadScreen(RealmCreationTask,long,int,RealmsResetWorldScreen,LevelSummary)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsUploadScreen.java:69
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: realmCreationTask, realmId, slotId, lastScreen, selectedLevel, uploadStatus. เรียกต่อ: create(). สร้างออบเจ็กต์: UploadStatus.

Parameters

  • RealmCreationTask realmCreationTask
  • long l
  • int i
  • RealmsResetWorldScreen realmsResetWorldScreen
  • LevelSummary levelSummary

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

RealmCreationTask realmCreationTask = ...;
RealmsResetWorldScreen realmsResetWorldScreen = ...;
LevelSummary levelSummary = ...;
RealmsUploadScreen instance = new RealmsUploadScreen(realmCreationTask, 0L, 0, realmsResetWorldScreen, levelSummary);

com.mojang.realmsclient.gui.screens.RealmsUploadScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsUploadScreen.java:150
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: status. เรียกต่อ: uploadStarted(), uploadCompleted(), drawCenteredString(), drawString(), width(), drawProgressBar(), drawUploadSpeed().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • float f

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

RealmsUploadScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);

com.mojang.realmsclient.gui.screens.RealmsUploadScreen#repositionElements()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsUploadScreen.java:116
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ repositionElements ตาม implementation ของ RealmsUploadScreen

ทำงานยังไง

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

Parameters

  • ไม่มี

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

@Override
protected void repositionElements() {
    super.repositionElements();
}

com.mojang.realmsclient.gui.screens.RealmsUploadScreen#setUploading()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsUploadScreen.java:281
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Uploading

ทำงานยังไง

แก้ state: status. เรียกต่อ: translatable(), getLevelName().

Parameters

  • ไม่มี

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

RealmsUploadScreen instance = ...;
instance.setUploading();

com.mojang.realmsclient.gui.screens.RealmsUploadScreen#tick()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/RealmsUploadScreen.java:199
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: tickCount. เรียกต่อ: refreshBytesPerSecond(), tryAcquire(), createProgressNarrationMessage(), getNarrator(), sayNow().

Parameters

  • ไม่มี

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

RealmsUploadScreen instance = ...;
instance.tick();

UploadResult

  • Full name: com.mojang.realmsclient.gui.screens.UploadResult
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/UploadResult.java
  • Type: class
  • Modifiers: public

com.mojang.realmsclient.gui.screens.UploadResult#getSimplifiedErrorMessage()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/UploadResult.java:18
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Simplified Error Message

ทำงานยังไง

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

Parameters

  • ไม่มี

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

UploadResult instance = ...;
String result = instance.getSimplifiedErrorMessage();

UploadResult$Builder

  • Full name: com.mojang.realmsclient.gui.screens.UploadResult$Builder
  • Package: com.mojang.realmsclient.gui.screens
  • Source: clientOnlycom/mojang/realmsclient/gui/screens/UploadResult.java
  • Type: class
  • Modifiers: public static

com.mojang.realmsclient.gui.screens.UploadResult$Builder#build()

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/UploadResult.java:42
  • Modifiers: public
  • Return: UploadResult

คืออะไร

สร้าง build

ทำงานยังไง

สร้างออบเจ็กต์: UploadResult. คืนค่า: new UploadResult(this.statusCode, this.errorMessage).

Parameters

  • ไม่มี

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

UploadResult.Builder instance = ...;
UploadResult result = instance.build();

com.mojang.realmsclient.gui.screens.UploadResult$Builder#withErrorMessage(String)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/UploadResult.java:37
  • Modifiers: public
  • Return: UploadResult.Builder

คืออะไร

ดำเนินการ withErrorMessage ตาม implementation ของ UploadResult$Builder

ทำงานยังไง

แก้ state: errorMessage. คืนค่า: this.

Parameters

  • String string

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

UploadResult.Builder instance = ...;
UploadResult.Builder result = instance.withErrorMessage("value");

com.mojang.realmsclient.gui.screens.UploadResult$Builder#withStatusCode(int)

  • Origin: clientOnly
  • Source: com/mojang/realmsclient/gui/screens/UploadResult.java:32
  • Modifiers: public
  • Return: UploadResult.Builder

คืออะไร

ดำเนินการ withStatusCode ตาม implementation ของ UploadResult$Builder

ทำงานยังไง

แก้ state: statusCode. คืนค่า: this.

Parameters

  • int i

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

UploadResult.Builder instance = ...;
UploadResult.Builder result = instance.withStatusCode(0);