Skip to content

Package net.minecraft.client.gui.screens.social

Part 1/1


PlayerEntry

  • Full name: net.minecraft.client.gui.screens.social.PlayerEntry
  • Package: net.minecraft.client.gui.screens.social
  • Source: clientOnlynet/minecraft/client/gui/screens/social/PlayerEntry.java
  • Type: class
  • Modifiers: public
  • Extends: ContainerObjectSelectionList.Entry<PlayerEntry>

net.minecraft.client.gui.screens.social.PlayerEntry#children()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:200
  • Modifiers: public
  • Return: List<? extends GuiEventListener>

คืออะไร

ดำเนินการ children ตาม implementation ของ PlayerEntry

ทำงานยังไง

คืนค่า: this.children.

Parameters

  • ไม่มี

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

PlayerEntry instance = ...;
List<? extends GuiEventListener> result = instance.children();

net.minecraft.client.gui.screens.social.PlayerEntry#getPlayerId()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:214
  • Modifiers: public
  • Return: UUID

คืออะไร

อ่านค่า Player Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

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

PlayerEntry instance = ...;
UUID result = instance.getPlayerId();

net.minecraft.client.gui.screens.social.PlayerEntry#getPlayerName()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:210
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Player Name

ทำงานยังไง

คืนค่า: this.playerName.

Parameters

  • ไม่มี

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

PlayerEntry instance = ...;
String result = instance.getPlayerName();

net.minecraft.client.gui.screens.social.PlayerEntry#getSkinGetter()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:218
  • Modifiers: public
  • Return: Supplier<PlayerSkin>

คืออะไร

อ่านค่า Skin Getter

ทำงานยังไง

คืนค่า: this.skinGetter.

Parameters

  • ไม่มี

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

PlayerEntry instance = ...;
Supplier<PlayerSkin> result = instance.getSkinGetter();

net.minecraft.client.gui.screens.social.PlayerEntry#hasRecentMessages()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:234
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Recent Messages

ทำงานยังไง

คืนค่า: this.hasRecentMessages.

Parameters

  • ไม่มี

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

PlayerEntry instance = ...;
boolean result = instance.hasRecentMessages();

net.minecraft.client.gui.screens.social.PlayerEntry#isChatReportable()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:238
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Chat Reportable

ทำงานยังไง

คืนค่า: this.chatReportable.

Parameters

  • ไม่มี

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

PlayerEntry instance = ...;
boolean result = instance.isChatReportable();

net.minecraft.client.gui.screens.social.PlayerEntry#isRemoved()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:226
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

คืนค่า: this.isRemoved.

Parameters

  • ไม่มี

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

PlayerEntry instance = ...;
boolean result = instance.isRemoved();

net.minecraft.client.gui.screens.social.PlayerEntry#narratables()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:205
  • Modifiers: public
  • Return: List<? extends NarratableEntry>

คืออะไร

ดำเนินการ narratables ตาม implementation ของ PlayerEntry

ทำงานยังไง

คืนค่า: this.children.

Parameters

  • ไม่มี

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

PlayerEntry instance = ...;
List<? extends NarratableEntry> result = instance.narratables();

net.minecraft.client.gui.screens.social.PlayerEntry#PlayerEntry(Minecraft,SocialInteractionsScreen,UUID,String,Supplier<PlayerSkin>,boolean)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:86
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: minecraft, id, playerName, skinGetter, reportingEnabled, chatReportable. เรียกต่อ: getReportingContext(), sender(), isEnabled(), hasDraftReportFor(), translatable(), getPlayerSocialManager(), getChatStatus(), isChatAllowed(). สร้างออบเจ็กต์: ImageButton, ReportPlayerScreen, ArrayList<>. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • Minecraft minecraft
  • SocialInteractionsScreen socialInteractionsScreen
  • UUID uUID
  • String string
  • Supplier<PlayerSkin> supplier
  • boolean bl

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

Minecraft minecraft = ...;
SocialInteractionsScreen socialInteractionsScreen = ...;
UUID uUID = ...;
Supplier<PlayerSkin> supplier = ...;
PlayerEntry instance = new PlayerEntry(minecraft, socialInteractionsScreen, uUID, "value", supplier, true);

net.minecraft.client.gui.screens.social.PlayerEntry#render(GuiGraphics,int,int,int,int,int,int,int,boolean,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:157
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: tooltipHoverTime. เรียกต่อ: getStatusComponent(), fill(), drawString(), draw(), get(), setX(), getWidth(), setY().

Parameters

  • GuiGraphics guiGraphics
  • int i
  • int j
  • int k
  • int l
  • int m
  • int n
  • int o
  • boolean bl
  • float f

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

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

net.minecraft.client.gui.screens.social.PlayerEntry#setHasRecentMessages(boolean)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:230
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Has Recent Messages

ทำงานยังไง

แก้ state: hasRecentMessages.

Parameters

  • boolean bl

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

PlayerEntry instance = ...;
instance.setHasRecentMessages(true);

net.minecraft.client.gui.screens.social.PlayerEntry#setRemoved(boolean)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerEntry.java:222
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Removed

ทำงานยังไง

แก้ state: isRemoved.

Parameters

  • boolean bl

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

PlayerEntry instance = ...;
instance.setRemoved(true);

PlayerSocialManager

  • Full name: net.minecraft.client.gui.screens.social.PlayerSocialManager
  • Package: net.minecraft.client.gui.screens.social
  • Source: clientOnlynet/minecraft/client/gui/screens/social/PlayerSocialManager.java
  • Type: class
  • Modifiers: public

net.minecraft.client.gui.screens.social.PlayerSocialManager#addPlayer(PlayerInfo)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:73
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Player

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getProfile(), put(), getName(), getId(), onAddPlayer().

Parameters

  • PlayerInfo playerInfo

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

PlayerSocialManager instance = ...;
PlayerInfo playerInfo = ...;
instance.addPlayer(playerInfo);

net.minecraft.client.gui.screens.social.PlayerSocialManager#getDiscoveredUUID(String)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:69
  • Modifiers: public
  • Return: UUID

คืออะไร

อ่านค่า Discovered UUID

ทำงานยังไง

เรียกต่อ: getOrDefault(). คืนค่า: this.discoveredNamesToUUID.getOrDefault(string, Util.NIL_UUID).

Parameters

  • String string

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

PlayerSocialManager instance = ...;
UUID result = instance.getDiscoveredUUID("value");

net.minecraft.client.gui.screens.social.PlayerSocialManager#getHiddenPlayers()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:65
  • Modifiers: public
  • Return: Set<UUID>

คืออะไร

อ่านค่า Hidden Players

ทำงานยังไง

คืนค่า: this.hiddenPlayers.

Parameters

  • ไม่มี

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

PlayerSocialManager instance = ...;
Set<UUID> result = instance.getHiddenPlayers();

net.minecraft.client.gui.screens.social.PlayerSocialManager#hidePlayer(UUID)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:31
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ hidePlayer ตาม implementation ของ PlayerSocialManager

ทำงานยังไง

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

Parameters

  • UUID uUID

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

PlayerSocialManager instance = ...;
UUID uUID = ...;
instance.hidePlayer(uUID);

net.minecraft.client.gui.screens.social.PlayerSocialManager#isBlocked(UUID)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:56
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

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

Parameters

  • UUID uUID

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

PlayerSocialManager instance = ...;
UUID uUID = ...;
boolean result = instance.isBlocked(uUID);

net.minecraft.client.gui.screens.social.PlayerSocialManager#isHidden(UUID)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:43
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

เรียกต่อ: contains(). คืนค่า: this.hiddenPlayers.contains(uUID).

Parameters

  • UUID uUID

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

PlayerSocialManager instance = ...;
UUID uUID = ...;
boolean result = instance.isHidden(uUID);

net.minecraft.client.gui.screens.social.PlayerSocialManager#PlayerSocialManager(Minecraft,UserApiService)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:26
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: minecraft, service.

Parameters

  • Minecraft minecraft
  • UserApiService userApiService

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

Minecraft minecraft = ...;
UserApiService userApiService = ...;
PlayerSocialManager instance = new PlayerSocialManager(minecraft, userApiService);

net.minecraft.client.gui.screens.social.PlayerSocialManager#removePlayer(UUID)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:81
  • Modifiers: public
  • Return: void

คืออะไร

ลบ Player

ทำงานยังไง

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

Parameters

  • UUID uUID

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

PlayerSocialManager instance = ...;
UUID uUID = ...;
instance.removePlayer(uUID);

net.minecraft.client.gui.screens.social.PlayerSocialManager#shouldHideMessageFrom(UUID)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:39
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Hide Message From

ทำงานยังไง

เรียกต่อ: isHidden(), isBlocked(). คืนค่า: this.isHidden(uUID) || this.isBlocked(uUID).

Parameters

  • UUID uUID

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

PlayerSocialManager instance = ...;
UUID uUID = ...;
boolean result = instance.shouldHideMessageFrom(uUID);

net.minecraft.client.gui.screens.social.PlayerSocialManager#showPlayer(UUID)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:35
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ showPlayer ตาม implementation ของ PlayerSocialManager

ทำงานยังไง

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

Parameters

  • UUID uUID

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

PlayerSocialManager instance = ...;
UUID uUID = ...;
instance.showPlayer(uUID);

net.minecraft.client.gui.screens.social.PlayerSocialManager#startOnlineMode()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:47
  • Modifiers: public
  • Return: void

คืออะไร

เริ่ม Online Mode

ทำงานยังไง

แก้ state: onlineMode, pendingBlockListRefresh. เรียกต่อ: thenRunAsync(), ioPool().

Parameters

  • ไม่มี

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

PlayerSocialManager instance = ...;
instance.startOnlineMode();

net.minecraft.client.gui.screens.social.PlayerSocialManager#stopOnlineMode()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/PlayerSocialManager.java:52
  • Modifiers: public
  • Return: void

คืออะไร

หยุด Online Mode

ทำงานยังไง

แก้ state: onlineMode.

Parameters

  • ไม่มี

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

PlayerSocialManager instance = ...;
instance.stopOnlineMode();

SocialInteractionsPlayerList

  • Full name: net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList
  • Package: net.minecraft.client.gui.screens.social
  • Source: clientOnlynet/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java
  • Type: class
  • Modifiers: public
  • Extends: ContainerObjectSelectionList<PlayerEntry>

net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList#addPlayer(PlayerInfo,SocialInteractionsScreen.Page)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java:159
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Player

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getProfile(), getId(), getPlayerId(), equals(), setRemoved(), getPlayerSocialManager(), shouldHideMessageFrom(), isNullOrEmpty(). สร้างออบเจ็กต์: PlayerEntry.

Parameters

  • PlayerInfo playerInfo
  • SocialInteractionsScreen.Page page

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

SocialInteractionsPlayerList instance = ...;
PlayerInfo playerInfo = ...;
SocialInteractionsScreen.Page page = ...;
instance.addPlayer(playerInfo, page);

net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList#enableScissor(GuiGraphics)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java:46
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ enableScissor ตาม implementation ของ SocialInteractionsPlayerList

ทำงานยังไง

เรียกต่อ: getX(), getY(), getRight(), getBottom().

Parameters

  • GuiGraphics guiGraphics

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

GuiGraphics guiGraphics = ...;
@Override
protected void enableScissor(GuiGraphics guiGraphics) {
    super.enableScissor(guiGraphics);
}

net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList#isEmpty()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java:155
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

คืนค่า: this.players.isEmpty().

Parameters

  • ไม่มี

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

SocialInteractionsPlayerList instance = ...;
boolean result = instance.isEmpty();

net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList#removePlayer(UUID)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java:180
  • Modifiers: public
  • Return: void

คืออะไร

ลบ Player

ทำงานยังไง

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

Parameters

  • UUID uUID

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

SocialInteractionsPlayerList instance = ...;
UUID uUID = ...;
instance.removePlayer(uUID);

net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList#renderListBackground(GuiGraphics)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java:38
  • Modifiers: protected
  • Return: void

คืออะไร

เรนเดอร์ List Background

ทำงานยังไง

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

Parameters

  • GuiGraphics guiGraphics

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

GuiGraphics guiGraphics = ...;
@Override
protected void renderListBackground(GuiGraphics guiGraphics) {
    super.renderListBackground(guiGraphics);
}

net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList#renderListSeparators(GuiGraphics)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java:42
  • Modifiers: protected
  • Return: void

คืออะไร

เรนเดอร์ List Separators

ทำงานยังไง

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

Parameters

  • GuiGraphics guiGraphics

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

GuiGraphics guiGraphics = ...;
@Override
protected void renderListSeparators(GuiGraphics guiGraphics) {
    super.renderListSeparators(guiGraphics);
}

net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList#setFilter(String)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java:151
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Filter

ทำงานยังไง

แก้ state: filter.

Parameters

  • String string

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

SocialInteractionsPlayerList instance = ...;
instance.setFilter("value");

net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList#SocialInteractionsPlayerList(SocialInteractionsScreen,Minecraft,int,int,int,int)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java:33
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

แก้ state: socialInteractionsScreen.

Parameters

  • SocialInteractionsScreen socialInteractionsScreen
  • Minecraft minecraft
  • int i
  • int j
  • int k
  • int l

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

SocialInteractionsScreen socialInteractionsScreen = ...;
Minecraft minecraft = ...;
SocialInteractionsPlayerList instance = new SocialInteractionsPlayerList(socialInteractionsScreen, minecraft, 0, 0, 0, 0);

net.minecraft.client.gui.screens.social.SocialInteractionsPlayerList#updatePlayerList(Collection<UUID>,double,boolean)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsPlayerList.java:51
  • Modifiers: public
  • Return: void

คืออะไร

อัปเดต Player List

ทำงานยังไง

เรียกต่อ: addOnlinePlayers(), updatePlayersFromChatLog(), updateFiltersAndScroll(), values(). สร้างออบเจ็กต์: HashMap<>.

Parameters

  • Collection<UUID> collection
  • double d
  • boolean bl

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

SocialInteractionsPlayerList instance = ...;
Collection<UUID> collection = ...;
instance.updatePlayerList(collection, 0.0D, true);

SocialInteractionsScreen

  • Full name: net.minecraft.client.gui.screens.social.SocialInteractionsScreen
  • Package: net.minecraft.client.gui.screens.social
  • Source: clientOnlynet/minecraft/client/gui/screens/social/SocialInteractionsScreen.java
  • Type: class
  • Modifiers: public
  • Extends: Screen

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#getNarrationMessage()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:94
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Narration Message

ทำงานยังไง

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

Parameters

  • ไม่มี

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

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

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#init()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:101
  • Modifiers: protected
  • Return: void

คืออะไร

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

ทำงานยังไง

แก้ state: socialInteractionsPlayerList, allButton, hiddenButton, blockedButton, searchBox, blockingHintButton. เรียกต่อ: addTitleHeader(), listEnd(), getRowWidth(), getRowLeft(), getRowRight(), addRenderableWidget(), builder(), showPage(). สร้างออบเจ็กต์: SocialInteractionsPlayerList, EditBox.

Parameters

  • ไม่มี

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

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

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#isPauseScreen()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:246
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Pause Screen

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

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

SocialInteractionsScreen instance = ...;
boolean result = instance.isPauseScreen();

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#keyPressed(int,int,int)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:236
  • Modifiers: public
  • Return: boolean

คืออะไร

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

ทำงานยังไง

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

Parameters

  • int i
  • int j
  • int k

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

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

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#onAddPlayer(PlayerInfo)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:281
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • PlayerInfo playerInfo

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

SocialInteractionsScreen instance = ...;
PlayerInfo playerInfo = ...;
instance.onAddPlayer(playerInfo);

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#onClose()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:164
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

SocialInteractionsScreen instance = ...;
instance.onClose();

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#onRemovePlayer(UUID)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:285
  • Modifiers: public
  • Return: void

คืออะไร

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

ทำงานยังไง

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

Parameters

  • UUID uUID

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

SocialInteractionsScreen instance = ...;
UUID uUID = ...;
instance.onRemovePlayer(uUID);

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#render(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:215
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ render

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: page. เรียกต่อ: updateServerLabel(), drawString(), marginX(), isEmpty(), getValue(), drawCenteredString(), listEnd().

Parameters

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

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

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

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#renderBackground(GuiGraphics,int,int,float)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:207
  • Modifiers: public
  • Return: void

คืออะไร

เรนเดอร์ Background

ทำงานยังไง

เรียกต่อ: marginX(), blitSprite(), windowHeight().

Parameters

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

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

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

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#repositionElements()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:145
  • Modifiers: protected
  • Return: void

คืออะไร

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

ทำงานยังไง

เรียกต่อ: arrangeElements(), updateSizeAndPosition(), listEnd(), setPosition(), marginX(), getRowLeft(), getRowRight(), getRowWidth().

Parameters

  • ไม่มี

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

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

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#setInitialFocus()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:159
  • Modifiers: protected
  • Return: void

คืออะไร

กำหนดค่า Initial Focus

ทำงานยังไง

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

Parameters

  • ไม่มี

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

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

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#SocialInteractionsScreen()

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:72
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • ไม่มี

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

SocialInteractionsScreen instance = new SocialInteractionsScreen();

net.minecraft.client.gui.screens.social.SocialInteractionsScreen#SocialInteractionsScreen(Screen)

  • Origin: clientOnly
  • Source: net/minecraft/client/gui/screens/social/SocialInteractionsScreen.java:76
  • Modifiers: public
  • Kind: constructor

คืออะไร

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

ทำงานยังไง

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

Parameters

  • Screen screen

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

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