Package net.minecraft.client.gui
Part 1/1
BundleMouseActions
- Full name:
net.minecraft.client.gui.BundleMouseActions - Package:
net.minecraft.client.gui - Source:
clientOnly—net/minecraft/client/gui/BundleMouseActions.java - Type:
class - Modifiers:
public - Implements:
ItemSlotMouseAction
net.minecraft.client.gui.BundleMouseActions#BundleMouseActions(Minecraft)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/BundleMouseActions.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BundleMouseActions ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minecraft, scrollWheelHandler. สร้างออบเจ็กต์: ScrollWheelHandler.
Parameters
Minecraft minecraft
ตัวอย่างใช้งาน
net.minecraft.client.gui.BundleMouseActions#matches(Slot)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/BundleMouseActions.java:26 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ matches ตาม implementation ของ BundleMouseActions
ทำงานยังไง
เรียกต่อ: getItem(), is(). คืนค่า: slot.getItem().is(ItemTags.BUNDLES).
Parameters
Slot slot
ตัวอย่างใช้งาน
net.minecraft.client.gui.BundleMouseActions#onMouseScrolled(double,double,int,ItemStack)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/BundleMouseActions.java:31 - Modifiers:
public - Return:
boolean
คืออะไร
จัดการเหตุการณ์ Mouse Scrolled
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getNumberOfItemsToShow(), onMouseScroll(), getSelectedItem(), getNextScrollWheelSelection(), toggleSelectedBundleItem(). มีจุด return อย่างน้อย 2 จุด.
Parameters
double ddouble eint iItemStack itemStack
ตัวอย่างใช้งาน
BundleMouseActions instance = ...;
ItemStack itemStack = ...;
boolean result = instance.onMouseScrolled(0.0D, 0.0D, 0, itemStack);
net.minecraft.client.gui.BundleMouseActions#onSlotClicked(Slot,ClickType)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/BundleMouseActions.java:56 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Slot Clicked
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: unselectedBundleItem(), getItem().
Parameters
Slot slotClickType clickType
ตัวอย่างใช้งาน
BundleMouseActions instance = ...;
Slot slot = ...;
ClickType clickType = ...;
instance.onSlotClicked(slot, clickType);
net.minecraft.client.gui.BundleMouseActions#onStopHovering(Slot)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/BundleMouseActions.java:51 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Stop Hovering
ทำงานยังไง
เรียกต่อ: unselectedBundleItem(), getItem().
Parameters
Slot slot
ตัวอย่างใช้งาน
net.minecraft.client.gui.BundleMouseActions#unselectedBundleItem(ItemStack,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/BundleMouseActions.java:71 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ unselectedBundleItem ตาม implementation ของ BundleMouseActions
ทำงานยังไง
เรียกต่อ: toggleSelectedBundleItem().
Parameters
ItemStack itemStackint i
ตัวอย่างใช้งาน
BundleMouseActions instance = ...;
ItemStack itemStack = ...;
instance.unselectedBundleItem(itemStack, 0);
ComponentPath
- Full name:
net.minecraft.client.gui.ComponentPath - Package:
net.minecraft.client.gui - Source:
clientOnly—net/minecraft/client/gui/ComponentPath.java - Type:
interface - Modifiers:
public
net.minecraft.client.gui.ComponentPath#applyFocus(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/ComponentPath.java:32 - Modifiers: ``
- Return:
void
คืออะไร
นำไปใช้ Focus
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.gui.ComponentPath#component()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/ComponentPath.java:30 - Modifiers: ``
- Return:
GuiEventListener
คืออะไร
ดำเนินการ component ตาม implementation ของ ComponentPath
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.ComponentPath#leaf(GuiEventListener)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/ComponentPath.java:11 - Modifiers:
static - Return:
ComponentPath
คืออะไร
ดำเนินการ leaf ตาม implementation ของ ComponentPath
ทำงานยังไง
เรียกต่อ: Leaf(). สร้างออบเจ็กต์: ComponentPath.Leaf. คืนค่า: new ComponentPath.Leaf(guiEventListener).
Parameters
GuiEventListener guiEventListener
ตัวอย่างใช้งาน
GuiEventListener guiEventListener = ...;
ComponentPath result = ComponentPath.leaf(guiEventListener);
net.minecraft.client.gui.ComponentPath#path(ContainerEventHandler,ComponentPath)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/ComponentPath.java:15 - Modifiers:
static - Return:
ComponentPath
คืออะไร
ดำเนินการ path ตาม implementation ของ ComponentPath
ทำงานยังไง
เรียกต่อ: Path(). สร้างออบเจ็กต์: ComponentPath.Path. คืนค่า: componentPath == null ? null : new ComponentPath.Path(containerEventHandler, componentPath).
Parameters
ContainerEventHandler containerEventHandlerComponentPath componentPath
ตัวอย่างใช้งาน
ContainerEventHandler containerEventHandler = ...;
ComponentPath componentPath = ...;
ComponentPath result = ComponentPath.path(containerEventHandler, componentPath);
net.minecraft.client.gui.ComponentPath#path(GuiEventListener,ContainerEventHandler[])
- Origin:
clientOnly - Source:
net/minecraft/client/gui/ComponentPath.java:20 - Modifiers:
static - Return:
ComponentPath
คืออะไร
ดำเนินการ path ตาม implementation ของ ComponentPath
ทำงานยังไง
มีการวนลูป. เรียกต่อ: leaf(). คืนค่า: componentPath.
Parameters
GuiEventListener guiEventListenerContainerEventHandler[] containerEventHandlers
ตัวอย่างใช้งาน
GuiEventListener guiEventListener = ...;
ContainerEventHandler[] containerEventHandlers = ...;
ComponentPath result = ComponentPath.path(guiEventListener, containerEventHandlers);
Font
- Full name:
net.minecraft.client.gui.Font - Package:
net.minecraft.client.gui - Source:
clientOnly—net/minecraft/client/gui/Font.java - Type:
class - Modifiers:
public
net.minecraft.client.gui.Font#bidirectionalShaping(String)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:56 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ bidirectionalShaping ตาม implementation ของ Font
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: shape(), setReorderingMode(), writeReordered(). สร้างออบเจ็กต์: Bidi, ArabicShaping. มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.gui.Font#drawInBatch(Component,float,float,int,boolean,Matrix4f,MultiBufferSource,Font.DisplayMode,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:76 - Modifiers:
public - Return:
int
คืออะไร
วาด In Batch
ทำงานยังไง
คืนค่า: this.drawInBatch(component, f, g, i, bl, matrix4f, multiBufferSource, displayMode, j, k, true).
Parameters
Component componentfloat ffloat gint iboolean blMatrix4f matrix4fMultiBufferSource multiBufferSourceFont.DisplayMode displayModeint jint k
ตัวอย่างใช้งาน
Font instance = ...;
Component component = ...;
Matrix4f matrix4f = ...;
MultiBufferSource multiBufferSource = ...;
Font.DisplayMode displayMode = ...;
int result = instance.drawInBatch(component, 0.0F, 0.0F, 0, true, matrix4f, multiBufferSource, displayMode, 0, 0);
net.minecraft.client.gui.Font#drawInBatch(Component,float,float,int,boolean,Matrix4f,MultiBufferSource,Font.DisplayMode,int,int,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:82 - Modifiers:
public - Return:
int
คืออะไร
วาด In Batch
ทำงานยังไง
เรียกต่อ: drawInternal(), getVisualOrderText(). คืนค่า: this.drawInternal(component.getVisualOrderText(), f, g, i, bl, matrix4f, multiBufferSource, displayMode, j, k, bl2).
Parameters
Component componentfloat ffloat gint iboolean blMatrix4f matrix4fMultiBufferSource multiBufferSourceFont.DisplayMode displayModeint jint kboolean bl2
ตัวอย่างใช้งาน
Font instance = ...;
Component component = ...;
Matrix4f matrix4f = ...;
MultiBufferSource multiBufferSource = ...;
Font.DisplayMode displayMode = ...;
int result = instance.drawInBatch(component, 0.0F, 0.0F, 0, true, matrix4f, multiBufferSource, displayMode, 0, 0, true);
net.minecraft.client.gui.Font#drawInBatch(FormattedCharSequence,float,float,int,boolean,Matrix4f,MultiBufferSource,Font.DisplayMode,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:98 - Modifiers:
public - Return:
int
คืออะไร
วาด In Batch
ทำงานยังไง
เรียกต่อ: drawInternal(). คืนค่า: this.drawInternal(formattedCharSequence, f, g, i, bl, matrix4f, multiBufferSource, displayMode, j, k, true).
Parameters
FormattedCharSequence formattedCharSequencefloat ffloat gint iboolean blMatrix4f matrix4fMultiBufferSource multiBufferSourceFont.DisplayMode displayModeint jint k
ตัวอย่างใช้งาน
Font instance = ...;
FormattedCharSequence formattedCharSequence = ...;
Matrix4f matrix4f = ...;
MultiBufferSource multiBufferSource = ...;
Font.DisplayMode displayMode = ...;
int result = instance.drawInBatch(formattedCharSequence, 0.0F, 0.0F, 0, true, matrix4f, multiBufferSource, displayMode, 0, 0);
net.minecraft.client.gui.Font#drawInBatch(String,float,float,int,boolean,Matrix4f,MultiBufferSource,Font.DisplayMode,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:66 - Modifiers:
public - Return:
int
คืออะไร
วาด In Batch
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isBidirectional(), bidirectionalShaping(), drawInternal(). คืนค่า: this.drawInternal(string, f, g, i, bl, matrix4f, multiBufferSource, displayMode, j, k, true).
Parameters
String stringfloat ffloat gint iboolean blMatrix4f matrix4fMultiBufferSource multiBufferSourceFont.DisplayMode displayModeint jint k
ตัวอย่างใช้งาน
Font instance = ...;
Matrix4f matrix4f = ...;
MultiBufferSource multiBufferSource = ...;
Font.DisplayMode displayMode = ...;
int result = instance.drawInBatch("value", 0.0F, 0.0F, 0, true, matrix4f, multiBufferSource, displayMode, 0, 0);
net.minecraft.client.gui.Font#drawInBatch8xOutline(FormattedCharSequence,float,float,int,int,Matrix4f,MultiBufferSource,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:113 - Modifiers:
public - Return:
void
คืออะไร
วาด In Batch8x Outline
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: adjustColor(), StringRenderOutput(), accept(), isBold(), getFontSet(), getFont(), getGlyphInfo(), getShadowOffset(). สร้างออบเจ็กต์: Font.StringRenderOutput. คืนค่า: stringRenderOutput.accept(lx, style.withColor(l), mx).
Parameters
FormattedCharSequence formattedCharSequencefloat ffloat gint iint jMatrix4f matrix4fMultiBufferSource multiBufferSourceint k
ตัวอย่างใช้งาน
Font instance = ...;
FormattedCharSequence formattedCharSequence = ...;
Matrix4f matrix4f = ...;
MultiBufferSource multiBufferSource = ...;
instance.drawInBatch8xOutline(formattedCharSequence, 0.0F, 0.0F, 0, 0, matrix4f, multiBufferSource, 0);
net.minecraft.client.gui.Font#Font(Function<ResourceLocation, FontSet>,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:46 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Font ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: fonts, filterFishyGlyphs, splitter. เรียกต่อ: getFontSet(), getFont(), getGlyphInfo(), getAdvance(), isBold(). สร้างออบเจ็กต์: StringSplitter.
Parameters
Function<ResourceLocation, FontSet> functionboolean bl
ตัวอย่างใช้งาน
net.minecraft.client.gui.Font#getSplitter()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:262 - Modifiers:
public - Return:
StringSplitter
คืออะไร
อ่านค่า Splitter
ทำงานยังไง
คืนค่า: this.splitter.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Font#isBidirectional()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:258 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Bidirectional
ทำงานยังไง
เรียกต่อ: getInstance(), isDefaultRightToLeft(). คืนค่า: Language.getInstance().isDefaultRightToLeft().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Font#plainSubstrByWidth(String,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:238 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ plainSubstrByWidth ตาม implementation ของ Font
ทำงานยังไง
เรียกต่อ: plainHeadByWidth(). คืนค่า: this.splitter.plainHeadByWidth(string, i, Style.EMPTY).
Parameters
String stringint i
ตัวอย่างใช้งาน
net.minecraft.client.gui.Font#plainSubstrByWidth(String,int,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:234 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ plainSubstrByWidth ตาม implementation ของ Font
ทำงานยังไง
เรียกต่อ: plainTailByWidth(), plainHeadByWidth(). คืนค่า: bl ? this.splitter.plainTailByWidth(string, i, Style.EMPTY) : this.splitter.plainHeadByWidth(string, i, Style.EMPTY).
Parameters
String stringint iboolean bl
ตัวอย่างใช้งาน
net.minecraft.client.gui.Font#split(FormattedText,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:254 - Modifiers:
public - Return:
List<FormattedCharSequence>
คืออะไร
แยก split
ทำงานยังไง
เรียกต่อ: getInstance(), getVisualOrder(), splitLines(). คืนค่า: Language.getInstance().getVisualOrder(this.splitter.splitLines(formattedText, i, Style.EMPTY)).
Parameters
FormattedText formattedTextint i
ตัวอย่างใช้งาน
Font instance = ...;
FormattedText formattedText = ...;
List<FormattedCharSequence> result = instance.split(formattedText, 0);
net.minecraft.client.gui.Font#substrByWidth(FormattedText,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:242 - Modifiers:
public - Return:
FormattedText
คืออะไร
ดำเนินการ substrByWidth ตาม implementation ของ Font
ทำงานยังไง
เรียกต่อ: headByWidth(). คืนค่า: this.splitter.headByWidth(formattedText, i, Style.EMPTY).
Parameters
FormattedText formattedTextint i
ตัวอย่างใช้งาน
Font instance = ...;
FormattedText formattedText = ...;
FormattedText result = instance.substrByWidth(formattedText, 0);
net.minecraft.client.gui.Font#width(FormattedCharSequence)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:230 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ width ตาม implementation ของ Font
ทำงานยังไง
เรียกต่อ: ceil(), stringWidth(). คืนค่า: Mth.ceil(this.splitter.stringWidth(formattedCharSequence)).
Parameters
FormattedCharSequence formattedCharSequence
ตัวอย่างใช้งาน
Font instance = ...;
FormattedCharSequence formattedCharSequence = ...;
int result = instance.width(formattedCharSequence);
net.minecraft.client.gui.Font#width(FormattedText)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:226 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ width ตาม implementation ของ Font
ทำงานยังไง
เรียกต่อ: ceil(), stringWidth(). คืนค่า: Mth.ceil(this.splitter.stringWidth(formattedText)).
Parameters
FormattedText formattedText
ตัวอย่างใช้งาน
net.minecraft.client.gui.Font#width(String)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:222 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ width ตาม implementation ของ Font
ทำงานยังไง
เรียกต่อ: ceil(), stringWidth(). คืนค่า: Mth.ceil(this.splitter.stringWidth(string)).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.client.gui.Font#wordWrapHeight(FormattedText,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:250 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ wordWrapHeight ตาม implementation ของ Font
ทำงานยังไง
เรียกต่อ: splitLines(), size(). คืนค่า: 9 * this.splitter.splitLines(formattedText, i, Style.EMPTY).size().
Parameters
FormattedText formattedTextint i
ตัวอย่างใช้งาน
Font instance = ...;
FormattedText formattedText = ...;
int result = instance.wordWrapHeight(formattedText, 0);
net.minecraft.client.gui.Font#wordWrapHeight(String,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Font.java:246 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ wordWrapHeight ตาม implementation ของ Font
ทำงานยังไง
เรียกต่อ: splitLines(), size(). คืนค่า: 9 * this.splitter.splitLines(string, i, Style.EMPTY).size().
Parameters
String stringint i
ตัวอย่างใช้งาน
Gui
- Full name:
net.minecraft.client.gui.Gui - Package:
net.minecraft.client.gui - Source:
clientOnly—net/minecraft/client/gui/Gui.java - Type:
class - Modifiers:
public
net.minecraft.client.gui.Gui#clearCache()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1283 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Cache
ทำงานยังไง
เรียกต่อ: clearChunkCache().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#clearTitles()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1239 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Titles
ทำงานยังไง
แก้ state: title, subtitle, titleTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#getBossOverlay()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1275 - Modifiers:
public - Return:
BossHealthOverlay
คืออะไร
อ่านค่า Boss Overlay
ทำงานยังไง
คืนค่า: this.bossOverlay.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#getChat()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1245 - Modifiers:
public - Return:
ChatComponent
คืออะไร
อ่านค่า Chat
ทำงานยังไง
คืนค่า: this.chat.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#getDebugOverlay()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1279 - Modifiers:
public - Return:
DebugScreenOverlay
คืออะไร
อ่านค่า Debug Overlay
ทำงานยังไง
คืนค่า: this.debugOverlay.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#getFont()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1253 - Modifiers:
public - Return:
Font
คืออะไร
อ่านค่า Font
ทำงานยังไง
คืนค่า: this.minecraft.font.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#getGuiTicks()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1249 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Gui Ticks
ทำงานยังไง
คืนค่า: this.tickCount.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#getSpectatorGui()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1257 - Modifiers:
public - Return:
SpectatorGui
คืออะไร
อ่านค่า Spectator Gui
ทำงานยังไง
คืนค่า: this.spectatorGui.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#getTabList()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1261 - Modifiers:
public - Return:
PlayerTabOverlay
คืออะไร
อ่านค่า Tab List
ทำงานยังไง
คืนค่า: this.tabList.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#Gui(Minecraft)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:180 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Gui ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: minecraft, debugOverlay, spectatorGui, chat, tabList, bossOverlay. เรียกต่อ: resetTitleTimes(), add(), render(), showDebugScreen(). สร้างออบเจ็กต์: DebugScreenOverlay, SpectatorGui, ChatComponent, PlayerTabOverlay.
Parameters
Minecraft minecraft
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#isShowingChatDisabledByPlayer()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1208 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Showing Chat Disabled By Player
ทำงานยังไง
คืนค่า: this.chatDisabledByPlayerShown && this.overlayMessageTime > 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#onDisconnected()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1265 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Disconnected
ทำงานยังไง
เรียกต่อ: reset(), getToastManager(), clear(), clearMessages(), clearTitles(), resetTitleTimes().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#render(GuiGraphics,DeltaTracker)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:218 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
GuiGraphics guiGraphicsDeltaTracker deltaTracker
ตัวอย่างใช้งาน
Gui instance = ...;
GuiGraphics guiGraphics = ...;
DeltaTracker deltaTracker = ...;
instance.render(guiGraphics, deltaTracker);
net.minecraft.client.gui.Gui#renderSavingIndicator(GuiGraphics,DeltaTracker)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1287 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Saving Indicator
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: showAutosaveIndicator(), get(), floor(), clamp(), lerp(), getRealtimeDeltaTicks(), getFont(), width().
Parameters
GuiGraphics guiGraphicsDeltaTracker deltaTracker
ตัวอย่างใช้งาน
Gui instance = ...;
GuiGraphics guiGraphics = ...;
DeltaTracker deltaTracker = ...;
instance.renderSavingIndicator(guiGraphics, deltaTracker);
net.minecraft.client.gui.Gui#resetTitleTimes()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:212 - Modifiers:
public - Return:
void
คืออะไร
รีเซ็ต Title Times
ทำงานยังไง
แก้ state: titleFadeInTime, titleStayTime, titleFadeOutTime.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#setChatDisabledByPlayerShown(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1204 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Chat Disabled By Player Shown
ทำงานยังไง
แก้ state: chatDisabledByPlayerShown.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#setNowPlaying(Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1191 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Now Playing
ทำงานยังไง
เรียกต่อ: translatable(), setOverlayMessage(), getNarrator(), sayNow().
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#setOverlayMessage(Component,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1197 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Overlay Message
ทำงานยังไง
แก้ state: overlayMessageString, overlayMessageTime, animateOverlayMessageColor. เรียกต่อ: setChatDisabledByPlayerShown().
Parameters
Component componentboolean bl
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#setSubtitle(Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1230 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Subtitle
ทำงานยังไง
แก้ state: subtitle.
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#setTimes(int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1212 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Times
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: titleFadeInTime, titleStayTime, titleFadeOutTime, titleTime.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#setTitle(Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1234 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Title
ทำงานยังไง
แก้ state: title, titleTime.
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.client.gui.Gui#tick(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/Gui.java:1140 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: tickAutosaveIndicator().
Parameters
boolean bl
ตัวอย่างใช้งาน
GuiGraphics
- Full name:
net.minecraft.client.gui.GuiGraphics - Package:
net.minecraft.client.gui - Source:
clientOnly—net/minecraft/client/gui/GuiGraphics.java - Type:
class - Modifiers:
public
net.minecraft.client.gui.GuiGraphics#blit(Function<ResourceLocation, RenderType>,ResourceLocation,int,int,float,float,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:546 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ blit ตาม implementation ของ GuiGraphics
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Function<ResourceLocation, RenderType> functionResourceLocation resourceLocationint iint jfloat ffloat gint kint lint mint n
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Function<ResourceLocation, RenderType> function = ...;
ResourceLocation resourceLocation = ...;
instance.blit(function, resourceLocation, 0, 0, 0.0F, 0.0F, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#blit(Function<ResourceLocation, RenderType>,ResourceLocation,int,int,float,float,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:540 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ blit ตาม implementation ของ GuiGraphics
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Function<ResourceLocation, RenderType> functionResourceLocation resourceLocationint iint jfloat ffloat gint kint lint mint nint o
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Function<ResourceLocation, RenderType> function = ...;
ResourceLocation resourceLocation = ...;
instance.blit(function, resourceLocation, 0, 0, 0.0F, 0.0F, 0, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#blit(Function<ResourceLocation, RenderType>,ResourceLocation,int,int,float,float,int,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:552 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ blit ตาม implementation ของ GuiGraphics
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Function<ResourceLocation, RenderType> functionResourceLocation resourceLocationint iint jfloat ffloat gint kint lint mint nint oint p
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Function<ResourceLocation, RenderType> function = ...;
ResourceLocation resourceLocation = ...;
instance.blit(function, resourceLocation, 0, 0, 0.0F, 0.0F, 0, 0, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#blit(Function<ResourceLocation, RenderType>,ResourceLocation,int,int,float,float,int,int,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:558 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ blit ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: innerBlit().
Parameters
Function<ResourceLocation, RenderType> functionResourceLocation resourceLocationint iint jfloat ffloat gint kint lint mint nint oint pint q
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Function<ResourceLocation, RenderType> function = ...;
ResourceLocation resourceLocation = ...;
instance.blit(function, resourceLocation, 0, 0, 0.0F, 0.0F, 0, 0, 0, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#blitSprite(Function<ResourceLocation, RenderType>,ResourceLocation,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:281 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ blitSprite ตาม implementation ของ GuiGraphics
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Function<ResourceLocation, RenderType> functionResourceLocation resourceLocationint iint jint kint l
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Function<ResourceLocation, RenderType> function = ...;
ResourceLocation resourceLocation = ...;
instance.blitSprite(function, resourceLocation, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#blitSprite(Function<ResourceLocation, RenderType>,ResourceLocation,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:285 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ blitSprite ตาม implementation ของ GuiGraphics
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSprite(), getSpriteScaling(), blitTiledSprite(), width(), height(), blitNineSlicedSprite().
Parameters
Function<ResourceLocation, RenderType> functionResourceLocation resourceLocationint iint jint kint lint m
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Function<ResourceLocation, RenderType> function = ...;
ResourceLocation resourceLocation = ...;
instance.blitSprite(function, resourceLocation, 0, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#blitSprite(Function<ResourceLocation, RenderType>,ResourceLocation,int,int,int,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:297 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ blitSprite ตาม implementation ของ GuiGraphics
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getSprite(), getSpriteScaling(), enableScissor(), disableScissor().
Parameters
Function<ResourceLocation, RenderType> functionResourceLocation resourceLocationint iint jint kint lint mint nint oint p
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Function<ResourceLocation, RenderType> function = ...;
ResourceLocation resourceLocation = ...;
instance.blitSprite(function, resourceLocation, 0, 0, 0, 0, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#blitSprite(Function<ResourceLocation, RenderType>,TextureAtlasSprite,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:311 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ blitSprite ตาม implementation ของ GuiGraphics
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Function<ResourceLocation, RenderType> functionTextureAtlasSprite textureAtlasSpriteint iint jint kint l
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Function<ResourceLocation, RenderType> function = ...;
TextureAtlasSprite textureAtlasSprite = ...;
instance.blitSprite(function, textureAtlasSprite, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#blitSprite(Function<ResourceLocation, RenderType>,TextureAtlasSprite,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:315 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ blitSprite ตาม implementation ของ GuiGraphics
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: innerBlit(), atlasLocation(), getU0(), getU1(), getV0(), getV1().
Parameters
Function<ResourceLocation, RenderType> functionTextureAtlasSprite textureAtlasSpriteint iint jint kint lint m
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Function<ResourceLocation, RenderType> function = ...;
TextureAtlasSprite textureAtlasSprite = ...;
instance.blitSprite(function, textureAtlasSprite, 0, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#containsPointInScissor(int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:133 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Point In Scissor
ทำงานยังไง
เรียกต่อ: containsPoint(). คืนค่า: this.scissorStack.containsPoint(i, j).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#disableScissor()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:129 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ disableScissor ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: applyScissor(), pop().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#drawCenteredString(Font,Component,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:220 - Modifiers:
public - Return:
void
คืออะไร
วาด Centered String
ทำงานยังไง
เรียกต่อ: getVisualOrderText(), drawString(), width().
Parameters
Font fontComponent componentint iint jint k
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
Component component = ...;
instance.drawCenteredString(font, component, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#drawCenteredString(Font,FormattedCharSequence,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:225 - Modifiers:
public - Return:
void
คืออะไร
วาด Centered String
ทำงานยังไง
เรียกต่อ: drawString(), width().
Parameters
Font fontFormattedCharSequence formattedCharSequenceint iint jint k
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
FormattedCharSequence formattedCharSequence = ...;
instance.drawCenteredString(font, formattedCharSequence, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#drawCenteredString(Font,String,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:216 - Modifiers:
public - Return:
void
คืออะไร
วาด Centered String
ทำงานยังไง
เรียกต่อ: drawString(), width().
Parameters
Font fontString stringint iint jint k
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#drawSpecial(Consumer<MultiBufferSource>)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:816 - Modifiers:
public - Return:
void
คืออะไร
วาด Special
ทำงานยังไง
เรียกต่อ: accept(), endBatch().
Parameters
Consumer<MultiBufferSource> consumer
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Consumer<MultiBufferSource> consumer = ...;
instance.drawSpecial(consumer);
net.minecraft.client.gui.GuiGraphics#drawString(Font,Component,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:245 - Modifiers:
public - Return:
int
คืออะไร
วาด String
ทำงานยังไง
คืนค่า: this.drawString(font, component, i, j, k, true).
Parameters
Font fontComponent componentint iint jint k
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
Component component = ...;
int result = instance.drawString(font, component, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#drawString(Font,Component,int,int,int,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:249 - Modifiers:
public - Return:
int
คืออะไร
วาด String
ทำงานยังไง
เรียกต่อ: getVisualOrderText(). คืนค่า: this.drawString(font, component.getVisualOrderText(), i, j, k, bl).
Parameters
Font fontComponent componentint iint jint kboolean bl
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
Component component = ...;
int result = instance.drawString(font, component, 0, 0, 0, true);
net.minecraft.client.gui.GuiGraphics#drawString(Font,FormattedCharSequence,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:237 - Modifiers:
public - Return:
int
คืออะไร
วาด String
ทำงานยังไง
คืนค่า: this.drawString(font, formattedCharSequence, i, j, k, true).
Parameters
Font fontFormattedCharSequence formattedCharSequenceint iint jint k
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
FormattedCharSequence formattedCharSequence = ...;
int result = instance.drawString(font, formattedCharSequence, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#drawString(Font,FormattedCharSequence,int,int,int,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:241 - Modifiers:
public - Return:
int
คืออะไร
วาด String
ทำงานยังไง
เรียกต่อ: drawInBatch(), last(), pose(). คืนค่า: font.drawInBatch(formattedCharSequence, i, j, k, bl, this.pose.last().pose(), this.bufferSource, Font.DisplayMode.NORMAL, 0, 15728880).
Parameters
Font fontFormattedCharSequence formattedCharSequenceint iint jint kboolean bl
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
FormattedCharSequence formattedCharSequence = ...;
int result = instance.drawString(font, formattedCharSequence, 0, 0, 0, true);
net.minecraft.client.gui.GuiGraphics#drawString(Font,String,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:229 - Modifiers:
public - Return:
int
คืออะไร
วาด String
ทำงานยังไง
คืนค่า: this.drawString(font, string, i, j, k, true).
Parameters
Font fontString stringint iint jint k
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
int result = instance.drawString(font, "value", 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#drawString(Font,String,int,int,int,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:233 - Modifiers:
public - Return:
int
คืออะไร
วาด String
ทำงานยังไง
เรียกต่อ: drawInBatch(), last(), pose(). คืนค่า: string == null ? 0 : font.drawInBatch(string, i, j, k, bl, this.pose.last().pose(), this.bufferSource, Font.DisplayMode.NORMAL, 0, 15728880).
Parameters
Font fontString stringint iint jint kboolean bl
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
int result = instance.drawString(font, "value", 0, 0, 0, true);
net.minecraft.client.gui.GuiGraphics#drawStringWithBackdrop(Font,Component,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:264 - Modifiers:
public - Return:
int
คืออะไร
วาด String With Backdrop
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBackgroundColor(), fill(), multiply(), drawString(). คืนค่า: this.drawString(font, component, i, j, l, true).
Parameters
Font fontComponent componentint iint jint kint l
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
Component component = ...;
int result = instance.drawStringWithBackdrop(font, component, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#drawWordWrap(Font,FormattedText,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:253 - Modifiers:
public - Return:
void
คืออะไร
วาด Word Wrap
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontFormattedText formattedTextint iint jint kint l
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
FormattedText formattedText = ...;
instance.drawWordWrap(font, formattedText, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#drawWordWrap(Font,FormattedText,int,int,int,int,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:257 - Modifiers:
public - Return:
void
คืออะไร
วาด Word Wrap
ทำงานยังไง
มีการวนลูป. เรียกต่อ: split(), drawString().
Parameters
Font fontFormattedText formattedTextint iint jint kint lboolean bl
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
FormattedText formattedText = ...;
instance.drawWordWrap(font, formattedText, 0, 0, 0, 0, true);
net.minecraft.client.gui.GuiGraphics#enableScissor(int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:124 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ enableScissor ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: transformAxisAligned(), last(), pose(), applyScissor(), push(). สร้างออบเจ็กต์: ScreenRectangle.
Parameters
int iint jint kint l
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#fill(int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:153 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fill ตาม implementation ของ GuiGraphics
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iint jint kint lint m
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#fill(int,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:157 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fill ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: gui().
Parameters
int iint jint kint lint mint n
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#fill(RenderType,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:161 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fill ตาม implementation ของ GuiGraphics
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
RenderType renderTypeint iint jint kint lint m
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#fill(RenderType,int,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:165 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fill ตาม implementation ของ GuiGraphics
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: last(), pose(), getBuffer(), addVertex(), setColor().
Parameters
RenderType renderTypeint iint jint kint lint mint n
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
RenderType renderType = ...;
instance.fill(renderType, 0, 0, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#fillGradient(int,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:186 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillGradient ตาม implementation ของ GuiGraphics
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iint jint kint lint mint n
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#fillGradient(int,int,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:190 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillGradient ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: gui().
Parameters
int iint jint kint lint mint nint o
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#fillGradient(RenderType,int,int,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:194 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillGradient ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: getBuffer().
Parameters
RenderType renderTypeint iint jint kint lint mint nint o
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
RenderType renderType = ...;
instance.fillGradient(renderType, 0, 0, 0, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#fillRenderType(RenderType,int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:207 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillRenderType ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: last(), pose(), getBuffer(), addVertex().
Parameters
RenderType renderTypeint iint jint kint lint m
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
RenderType renderType = ...;
instance.fillRenderType(renderType, 0, 0, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#flush()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:92 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ flush ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: endBatch().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#GuiGraphics(Minecraft,MultiBufferSource.BufferSource)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:76 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GuiGraphics ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: PoseStack.
Parameters
Minecraft minecraftMultiBufferSource.BufferSource bufferSource
ตัวอย่างใช้งาน
Minecraft minecraft = ...;
MultiBufferSource.BufferSource bufferSource = ...;
GuiGraphics instance = new GuiGraphics(minecraft, bufferSource);
net.minecraft.client.gui.GuiGraphics#guiHeight()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:84 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ guiHeight ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: getWindow(), getGuiScaledHeight(). คืนค่า: this.minecraft.getWindow().getGuiScaledHeight().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#guiWidth()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:80 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ guiWidth ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: getWindow(), getGuiScaledWidth(). คืนค่า: this.minecraft.getWindow().getGuiScaledWidth().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#hLine(int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:96 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ hLine ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: gui().
Parameters
int iint jint kint l
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#hLine(RenderType,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:100 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ hLine ตาม implementation ของ GuiGraphics
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fill().
Parameters
RenderType renderTypeint iint jint kint l
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#pose()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:88 - Modifiers:
public - Return:
PoseStack
คืออะไร
ดำเนินการ pose ตาม implementation ของ GuiGraphics
ทำงานยังไง
คืนค่า: this.pose.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#renderComponentHoverEffect(Font,Style,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:794 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Component Hover Effect
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getHoverEvent(), getValue(), renderTooltip(), getItemStack(), renderComponentTooltip(), getTooltipLines(), split(), max().
Parameters
Font fontStyle styleint iint j
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
Style style = ...;
instance.renderComponentHoverEffect(font, style, 0, 0);
net.minecraft.client.gui.GuiGraphics#renderComponentTooltip(Font,List<Component>,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:689 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Component Tooltip
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontList<Component> listint iint j
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
List<Component> list = ...;
instance.renderComponentTooltip(font, list, 0, 0);
net.minecraft.client.gui.GuiGraphics#renderComponentTooltip(Font,List<Component>,int,int,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:693 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Component Tooltip
ทำงานยังไง
เรียกต่อ: renderTooltipInternal(), stream(), map(), toList().
Parameters
Font fontList<Component> listint iint jResourceLocation resourceLocation
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
List<Component> list = ...;
ResourceLocation resourceLocation = ...;
instance.renderComponentTooltip(font, list, 0, 0, resourceLocation);
net.minecraft.client.gui.GuiGraphics#renderFakeItem(ItemStack,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:600 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Fake Item
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStackint iint j
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#renderFakeItem(ItemStack,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:604 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Fake Item
ทำงานยังไง
เรียกต่อ: renderItem().
Parameters
ItemStack itemStackint iint jint k
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#renderItem(ItemStack,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:588 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Item
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStackint iint j
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#renderItem(ItemStack,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:592 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Item
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStackint iint jint k
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#renderItem(ItemStack,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:596 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Item
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ItemStack itemStackint iint jint kint l
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#renderItem(LivingEntity,ItemStack,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:608 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Item
ทำงานยังไง
เรียกต่อ: level().
Parameters
LivingEntity livingEntityItemStack itemStackint iint jint k
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
LivingEntity livingEntity = ...;
ItemStack itemStack = ...;
instance.renderItem(livingEntity, itemStack, 0, 0, 0);
net.minecraft.client.gui.GuiGraphics#renderItemDecorations(Font,ItemStack,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:648 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Item Decorations
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontItemStack itemStackint iint j
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
ItemStack itemStack = ...;
instance.renderItemDecorations(font, itemStack, 0, 0);
net.minecraft.client.gui.GuiGraphics#renderItemDecorations(Font,ItemStack,int,int,String)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:652 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Item Decorations
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), pushPose(), renderItemBar(), renderItemCount(), renderItemCooldown(), popPose().
Parameters
Font fontItemStack itemStackint iint jString string
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
ItemStack itemStack = ...;
instance.renderItemDecorations(font, itemStack, 0, 0, "value");
net.minecraft.client.gui.GuiGraphics#renderOutline(int,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:274 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Outline
ทำงานยังไง
เรียกต่อ: fill().
Parameters
int iint jint kint lint m
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#renderTooltip(Font,Component,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:681 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Tooltip
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontComponent componentint iint j
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
Component component = ...;
instance.renderTooltip(font, component, 0, 0);
net.minecraft.client.gui.GuiGraphics#renderTooltip(Font,Component,int,int,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:685 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Tooltip
ทำงานยังไง
เรียกต่อ: of(), getVisualOrderText().
Parameters
Font fontComponent componentint iint jResourceLocation resourceLocation
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
Component component = ...;
ResourceLocation resourceLocation = ...;
instance.renderTooltip(font, component, 0, 0, resourceLocation);
net.minecraft.client.gui.GuiGraphics#renderTooltip(Font,ItemStack,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:662 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Tooltip
ทำงานยังไง
เรียกต่อ: getTooltipFromItem(), getTooltipImage(), get().
Parameters
Font fontItemStack itemStackint iint j
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
ItemStack itemStack = ...;
instance.renderTooltip(font, itemStack, 0, 0);
net.minecraft.client.gui.GuiGraphics#renderTooltip(Font,List<? extends FormattedCharSequence>,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:704 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Tooltip
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontList<? extends FormattedCharSequence> listint iint j
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
List<? extends FormattedCharSequence> list = ...;
instance.renderTooltip(font, list, 0, 0);
net.minecraft.client.gui.GuiGraphics#renderTooltip(Font,List<? extends FormattedCharSequence>,int,int,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:708 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Tooltip
ทำงานยังไง
เรียกต่อ: renderTooltipInternal(), stream(), map(), collect(), toList().
Parameters
Font fontList<? extends FormattedCharSequence> listint iint jResourceLocation resourceLocation
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
List<? extends FormattedCharSequence> list = ...;
ResourceLocation resourceLocation = ...;
instance.renderTooltip(font, list, 0, 0, resourceLocation);
net.minecraft.client.gui.GuiGraphics#renderTooltip(Font,List<Component>,Optional<TooltipComponent>,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:668 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Tooltip
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Font fontList<Component> listOptional<TooltipComponent> optionalint iint j
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
List<Component> list = ...;
Optional<TooltipComponent> optional = ...;
instance.renderTooltip(font, list, optional, 0, 0);
net.minecraft.client.gui.GuiGraphics#renderTooltip(Font,List<Component>,Optional<TooltipComponent>,int,int,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:672 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Tooltip
ทำงานยังไง
เรียกต่อ: stream(), map(), collect(), toMutableList(), ifPresent(), add(), isEmpty(), create().
Parameters
Font fontList<Component> listOptional<TooltipComponent> optionalint iint jResourceLocation resourceLocation
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
List<Component> list = ...;
Optional<TooltipComponent> optional = ...;
ResourceLocation resourceLocation = ...;
instance.renderTooltip(font, list, optional, 0, 0, resourceLocation);
net.minecraft.client.gui.GuiGraphics#renderTooltip(Font,List<FormattedCharSequence>,ClientTooltipPositioner,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:714 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ Tooltip
ทำงานยังไง
เรียกต่อ: renderTooltipInternal(), stream(), map(), collect(), toList().
Parameters
Font fontList<FormattedCharSequence> listClientTooltipPositioner clientTooltipPositionerint iint j
ตัวอย่างใช้งาน
GuiGraphics instance = ...;
Font font = ...;
List<FormattedCharSequence> list = ...;
ClientTooltipPositioner clientTooltipPositioner = ...;
instance.renderTooltip(font, list, clientTooltipPositioner, 0, 0);
net.minecraft.client.gui.GuiGraphics#vLine(int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:110 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ vLine ตาม implementation ของ GuiGraphics
ทำงานยังไง
เรียกต่อ: gui().
Parameters
int iint jint kint l
ตัวอย่างใช้งาน
net.minecraft.client.gui.GuiGraphics#vLine(RenderType,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiGraphics.java:114 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ vLine ตาม implementation ของ GuiGraphics
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fill().
Parameters
RenderType renderTypeint iint jint kint l
ตัวอย่างใช้งาน
GuiSpriteManager
- Full name:
net.minecraft.client.gui.GuiSpriteManager - Package:
net.minecraft.client.gui - Source:
clientOnly—net/minecraft/client/gui/GuiSpriteManager.java - Type:
class - Modifiers:
public - Extends:
TextureAtlasHolder
net.minecraft.client.gui.GuiSpriteManager#getSprite(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiSpriteManager.java:23 - Modifiers:
public - Return:
TextureAtlasSprite
คืออะไร
อ่านค่า Sprite
ทำงานยังไง
คืนค่า: super.getSprite(resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
GuiSpriteManager instance = ...;
ResourceLocation resourceLocation = ...;
TextureAtlasSprite result = instance.getSprite(resourceLocation);
net.minecraft.client.gui.GuiSpriteManager#getSpriteScaling(TextureAtlasSprite)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiSpriteManager.java:28 - Modifiers:
public - Return:
GuiSpriteScaling
คืออะไร
อ่านค่า Sprite Scaling
ทำงานยังไง
เรียกต่อ: getMetadata(), scaling(). คืนค่า: this.getMetadata(textureAtlasSprite).scaling().
Parameters
TextureAtlasSprite textureAtlasSprite
ตัวอย่างใช้งาน
GuiSpriteManager instance = ...;
TextureAtlasSprite textureAtlasSprite = ...;
GuiSpriteScaling result = instance.getSpriteScaling(textureAtlasSprite);
net.minecraft.client.gui.GuiSpriteManager#GuiSpriteManager(TextureManager)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/GuiSpriteManager.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GuiSpriteManager ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: withDefaultNamespace().
Parameters
TextureManager textureManager
ตัวอย่างใช้งาน
TextureManager textureManager = ...;
GuiSpriteManager instance = new GuiSpriteManager(textureManager);
ItemSlotMouseAction
- Full name:
net.minecraft.client.gui.ItemSlotMouseAction - Package:
net.minecraft.client.gui - Source:
clientOnly—net/minecraft/client/gui/ItemSlotMouseAction.java - Type:
interface - Modifiers:
public
net.minecraft.client.gui.ItemSlotMouseAction#matches(Slot)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/ItemSlotMouseAction.java:11 - Modifiers: ``
- Return:
boolean
คืออะไร
ดำเนินการ matches ตาม implementation ของ ItemSlotMouseAction
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Slot slot
ตัวอย่างใช้งาน
net.minecraft.client.gui.ItemSlotMouseAction#onMouseScrolled(double,double,int,ItemStack)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/ItemSlotMouseAction.java:13 - Modifiers: ``
- Return:
boolean
คืออะไร
จัดการเหตุการณ์ Mouse Scrolled
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
double ddouble eint iItemStack itemStack
ตัวอย่างใช้งาน
ItemSlotMouseAction instance = ...;
ItemStack itemStack = ...;
boolean result = instance.onMouseScrolled(0.0D, 0.0D, 0, itemStack);
net.minecraft.client.gui.ItemSlotMouseAction#onSlotClicked(Slot,ClickType)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/ItemSlotMouseAction.java:17 - Modifiers: ``
- Return:
void
คืออะไร
จัดการเหตุการณ์ Slot Clicked
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Slot slotClickType clickType
ตัวอย่างใช้งาน
ItemSlotMouseAction instance = ...;
Slot slot = ...;
ClickType clickType = ...;
instance.onSlotClicked(slot, clickType);
net.minecraft.client.gui.ItemSlotMouseAction#onStopHovering(Slot)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/ItemSlotMouseAction.java:15 - Modifiers: ``
- Return:
void
คืออะไร
จัดการเหตุการณ์ Stop Hovering
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Slot slot
ตัวอย่างใช้งาน
LayeredDraw
- Full name:
net.minecraft.client.gui.LayeredDraw - Package:
net.minecraft.client.gui - Source:
clientOnly—net/minecraft/client/gui/LayeredDraw.java - Type:
class - Modifiers:
public
net.minecraft.client.gui.LayeredDraw#add(LayeredDraw,BooleanSupplier)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/LayeredDraw.java:20 - Modifiers:
public - Return:
LayeredDraw
คืออะไร
เพิ่ม add
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getAsBoolean(), renderInner(). คืนค่า: this.add((guiGraphics, deltaTracker) -> { if (booleanSupplier.getAsBoolean()) { layeredDraw.renderInner(guiGraphics, deltaTracker).
Parameters
LayeredDraw layeredDrawBooleanSupplier booleanSupplier
ตัวอย่างใช้งาน
LayeredDraw instance = ...;
LayeredDraw layeredDraw = ...;
BooleanSupplier booleanSupplier = ...;
LayeredDraw result = instance.add(layeredDraw, booleanSupplier);
net.minecraft.client.gui.LayeredDraw#add(LayeredDraw.Layer)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/LayeredDraw.java:15 - Modifiers:
public - Return:
LayeredDraw
คืออะไร
เพิ่ม add
ทำงานยังไง
คืนค่า: this.
Parameters
LayeredDraw.Layer layer
ตัวอย่างใช้งาน
LayeredDraw instance = ...;
LayeredDraw.Layer layer = ...;
LayeredDraw result = instance.add(layer);
net.minecraft.client.gui.LayeredDraw#render(GuiGraphics,DeltaTracker)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/LayeredDraw.java:28 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: pose(), pushPose(), renderInner(), popPose().
Parameters
GuiGraphics guiGraphicsDeltaTracker deltaTracker
ตัวอย่างใช้งาน
LayeredDraw instance = ...;
GuiGraphics guiGraphics = ...;
DeltaTracker deltaTracker = ...;
instance.render(guiGraphics, deltaTracker);
LayeredDraw$Layer
- Full name:
net.minecraft.client.gui.LayeredDraw$Layer - Package:
net.minecraft.client.gui - Source:
clientOnly—net/minecraft/client/gui/LayeredDraw.java - Type:
interface - Modifiers:
public
net.minecraft.client.gui.LayeredDraw$Layer#render(GuiGraphics,DeltaTracker)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/LayeredDraw.java:43 - Modifiers: ``
- Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
GuiGraphics guiGraphicsDeltaTracker deltaTracker
ตัวอย่างใช้งาน
LayeredDraw.Layer instance = ...;
GuiGraphics guiGraphics = ...;
DeltaTracker deltaTracker = ...;
instance.render(guiGraphics, deltaTracker);