Package net.minecraft.client.gui.screens.options.controls
Part 1/1
ControlsScreen
- Full name:
net.minecraft.client.gui.screens.options.controls.ControlsScreen - Package:
net.minecraft.client.gui.screens.options.controls - Source:
clientOnly—net/minecraft/client/gui/screens/options/controls/ControlsScreen.java - Type:
class - Modifiers:
public - Extends:
OptionsSubScreen
net.minecraft.client.gui.screens.options.controls.ControlsScreen#addOptions()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/ControlsScreen.java:25 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Options
ทำงานยังไง
เรียกต่อ: addSmall(), builder(), translatable(), setScreen(), build(), options(). สร้างออบเจ็กต์: MouseSettingsScreen, KeyBindsScreen.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.ControlsScreen#ControlsScreen(Screen,Options)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/ControlsScreen.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ControlsScreen ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Screen screenOptions options
ตัวอย่างใช้งาน
Screen screen = ...;
Options options = ...;
ControlsScreen instance = new ControlsScreen(screen, options);
KeyBindsList
- Full name:
net.minecraft.client.gui.screens.options.controls.KeyBindsList - Package:
net.minecraft.client.gui.screens.options.controls - Source:
clientOnly—net/minecraft/client/gui/screens/options/controls/KeyBindsList.java - Type:
class - Modifiers:
public - Extends:
ContainerObjectSelectionList<KeyBindsList.Entry>
net.minecraft.client.gui.screens.options.controls.KeyBindsList#getRowWidth()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:66 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Row Width
ทำงานยังไง
คืนค่า: 340.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.KeyBindsList#KeyBindsList(KeyBindsScreen,Minecraft)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:33 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ KeyBindsList ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: keyBindsScreen, maxNameWidth. เรียกต่อ: getContentHeight(), getHeaderHeight(), clone(), sort(), getCategory(), equals(), addEntry(), CategoryEntry(). สร้างออบเจ็กต์: KeyBindsList.CategoryEntry, KeyBindsList.KeyEntry.
Parameters
KeyBindsScreen keyBindsScreenMinecraft minecraft
ตัวอย่างใช้งาน
KeyBindsScreen keyBindsScreen = ...;
Minecraft minecraft = ...;
KeyBindsList instance = new KeyBindsList(keyBindsScreen, minecraft);
net.minecraft.client.gui.screens.options.controls.KeyBindsList#refreshEntries()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:62 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ refreshEntries ตาม implementation ของ KeyBindsList
ทำงานยังไง
เรียกต่อ: children(), forEach().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.KeyBindsList#resetMappingAndUpdateButtons()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:57 - Modifiers:
public - Return:
void
คืออะไร
รีเซ็ต Mapping And Update Buttons
ทำงานยังไง
เรียกต่อ: resetMapping(), refreshEntries().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
KeyBindsList$CategoryEntry
- Full name:
net.minecraft.client.gui.screens.options.controls.KeyBindsList$CategoryEntry - Package:
net.minecraft.client.gui.screens.options.controls - Source:
clientOnly—net/minecraft/client/gui/screens/options/controls/KeyBindsList.java - Type:
class - Modifiers:
public - Extends:
KeyBindsList.Entry
net.minecraft.client.gui.screens.options.controls.KeyBindsList$CategoryEntry#CategoryEntry(Component)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:76 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ KeyBindsList.CategoryEntry ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, width. เรียกต่อ: width().
Parameters
Component component
ตัวอย่างใช้งาน
Component component = ...;
KeyBindsList.CategoryEntry instance = new KeyBindsList.CategoryEntry(component);
net.minecraft.client.gui.screens.options.controls.KeyBindsList$CategoryEntry#children()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:92 - Modifiers:
public - Return:
List<? extends GuiEventListener>
คืออะไร
ดำเนินการ children ตาม implementation ของ KeyBindsList$CategoryEntry
ทำงานยังไง
เรียกต่อ: emptyList(). คืนค่า: Collections.emptyList().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
KeyBindsList.CategoryEntry instance = ...;
List<? extends GuiEventListener> result = instance.children();
net.minecraft.client.gui.screens.options.controls.KeyBindsList$CategoryEntry#narratables()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:97 - Modifiers:
public - Return:
List<? extends NarratableEntry>
คืออะไร
ดำเนินการ narratables ตาม implementation ของ KeyBindsList$CategoryEntry
ทำงานยังไง
เรียกต่อ: of(), narrationPriority(), updateNarration(), add(). สร้างออบเจ็กต์: NarratableEntry. คืนค่า: NarratableEntry.NarrationPriority.HOVERED.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
KeyBindsList.CategoryEntry instance = ...;
List<? extends NarratableEntry> result = instance.narratables();
net.minecraft.client.gui.screens.options.controls.KeyBindsList$CategoryEntry#nextFocusPath(FocusNavigationEvent)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:86 - Modifiers:
public - Return:
ComponentPath
คืออะไร
ดำเนินการ nextFocusPath ตาม implementation ของ KeyBindsList$CategoryEntry
ทำงานยังไง
คืนค่า: null.
Parameters
FocusNavigationEvent focusNavigationEvent
ตัวอย่างใช้งาน
KeyBindsList.CategoryEntry instance = ...;
FocusNavigationEvent focusNavigationEvent = ...;
ComponentPath result = instance.nextFocusPath(focusNavigationEvent);
net.minecraft.client.gui.screens.options.controls.KeyBindsList$CategoryEntry#refreshEntry()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:112 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ refreshEntry ตาม implementation ของ KeyBindsList$CategoryEntry
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.KeyBindsList$CategoryEntry#render(GuiGraphics,int,int,int,int,int,int,int,boolean,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:81 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
เรียกต่อ: drawString().
Parameters
GuiGraphics guiGraphicsint iint jint kint lint mint nint oboolean blfloat f
ตัวอย่างใช้งาน
KeyBindsList.CategoryEntry instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0, 0, 0, 0, 0, true, 0.0F);
KeyBindsList$KeyEntry
- Full name:
net.minecraft.client.gui.screens.options.controls.KeyBindsList$KeyEntry - Package:
net.minecraft.client.gui.screens.options.controls - Source:
clientOnly—net/minecraft/client/gui/screens/options/controls/KeyBindsList.java - Type:
class - Modifiers:
public - Extends:
KeyBindsList.Entry
net.minecraft.client.gui.screens.options.controls.KeyBindsList$KeyEntry#children()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:170 - Modifiers:
public - Return:
List<? extends GuiEventListener>
คืออะไร
ดำเนินการ children ตาม implementation ของ KeyBindsList$KeyEntry
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: ImmutableList.of(this.changeButton, this.resetButton).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
KeyBindsList.KeyEntry instance = ...;
List<? extends GuiEventListener> result = instance.children();
net.minecraft.client.gui.screens.options.controls.KeyBindsList$KeyEntry#narratables()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:175 - Modifiers:
public - Return:
List<? extends NarratableEntry>
คืออะไร
ดำเนินการ narratables ตาม implementation ของ KeyBindsList$KeyEntry
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: ImmutableList.of(this.changeButton, this.resetButton).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
KeyBindsList.KeyEntry instance = ...;
List<? extends NarratableEntry> result = instance.narratables();
net.minecraft.client.gui.screens.options.controls.KeyBindsList$KeyEntry#refreshEntry()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:180 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ refreshEntry ตาม implementation ของ KeyBindsList$KeyEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: hasCollision. เรียกต่อ: setMessage(), getTranslatedKeyMessage(), isDefault(), empty(), isUnbound(), same(), append(), translatable().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.KeyBindsList$KeyEntry#render(GuiGraphics,int,int,int,int,int,int,int,boolean,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsList.java:153 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: scrollBarX(), getWidth(), setPosition(), drawString(), getX(), fill().
Parameters
GuiGraphics guiGraphicsint iint jint kint lint mint nint oboolean blfloat f
ตัวอย่างใช้งาน
KeyBindsList.KeyEntry instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0, 0, 0, 0, 0, true, 0.0F);
KeyBindsScreen
- Full name:
net.minecraft.client.gui.screens.options.controls.KeyBindsScreen - Package:
net.minecraft.client.gui.screens.options.controls - Source:
clientOnly—net/minecraft/client/gui/screens/options/controls/KeyBindsScreen.java - Type:
class - Modifiers:
public - Extends:
OptionsSubScreen
net.minecraft.client.gui.screens.options.controls.KeyBindsScreen#addContents()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsScreen.java:31 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Contents
ทำงานยังไง
แก้ state: keyBindsList. เรียกต่อ: addToContents(). สร้างออบเจ็กต์: KeyBindsList.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.KeyBindsScreen#addFooter()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsScreen.java:40 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Footer
ทำงานยังไง
มีการวนลูป. แก้ state: resetButton. เรียกต่อ: builder(), translatable(), setKey(), getDefaultKey(), resetMappingAndUpdateButtons(), build(), addToFooter(), horizontal().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.KeyBindsScreen#addOptions()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsScreen.java:36 - Modifiers:
protected - Return:
void
คืออะไร
เพิ่ม Options
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.KeyBindsScreen#KeyBindsScreen(Screen,Options)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsScreen.java:27 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ KeyBindsScreen ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Screen screenOptions options
ตัวอย่างใช้งาน
Screen screen = ...;
Options options = ...;
KeyBindsScreen instance = new KeyBindsScreen(screen, options);
net.minecraft.client.gui.screens.options.controls.KeyBindsScreen#keyPressed(int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsScreen.java:72 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ keyPressed ตาม implementation ของ KeyBindsScreen
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: selectedKey, lastKeySelection. เรียกต่อ: setKey(), getKey(), getMillis(), resetMappingAndUpdateButtons(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.KeyBindsScreen#mouseClicked(double,double,int)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsScreen.java:60 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ mouseClicked ตาม implementation ของ KeyBindsScreen
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: selectedKey. เรียกต่อ: setKey(), getOrCreate(), resetMappingAndUpdateButtons(). มีจุด return อย่างน้อย 2 จุด.
Parameters
double ddouble eint i
ตัวอย่างใช้งาน
net.minecraft.client.gui.screens.options.controls.KeyBindsScreen#render(GuiGraphics,int,int,float)
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsScreen.java:90 - Modifiers:
public - Return:
void
คืออะไร
เรนเดอร์ render
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isDefault().
Parameters
GuiGraphics guiGraphicsint iint jfloat f
ตัวอย่างใช้งาน
KeyBindsScreen instance = ...;
GuiGraphics guiGraphics = ...;
instance.render(guiGraphics, 0, 0, 0.0F);
net.minecraft.client.gui.screens.options.controls.KeyBindsScreen#repositionElements()
- Origin:
clientOnly - Source:
net/minecraft/client/gui/screens/options/controls/KeyBindsScreen.java:54 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ repositionElements ตาม implementation ของ KeyBindsScreen
ทำงานยังไง
เรียกต่อ: arrangeElements(), updateSize().
Parameters
- ไม่มี