类 ButtonListWidget
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.AbstractParentElement
-
- net.minecraft.client.gui.widget.EntryListWidget<E>
-
- net.minecraft.client.gui.widget.ElementListWidget<ButtonListWidget.ButtonEntry>
-
- net.minecraft.client.gui.widget.ButtonListWidget
-
- 所有已实现的接口:
Drawable,Element,ParentElement
@Environment(CLIENT) public class ButtonListWidget extends ElementListWidget<ButtonListWidget.ButtonEntry>
- Mappings:
Namespace Name official dwkintermediary net/minecraft/class_353named net/minecraft/client/gui/widget/ButtonListWidget
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classButtonListWidget.ButtonEntry-
从类继承的嵌套类/接口 net.minecraft.client.gui.widget.ElementListWidget
ElementListWidget.Entry<E extends ElementListWidget.Entry<E>>
-
从类继承的嵌套类/接口 net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.Entries, EntryListWidget.MoveDirection
-
-
字段概要
-
从类继承的字段 net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, WHITE_TEXTURE, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 ButtonListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddAll(Option[] options)voidaddOptionEntry(Option firstOption, @Nullable Option secondOption)intaddSingleOptionEntry(Option option)@Nullable AbstractButtonWidgetgetButtonFor(Option option)Optional<AbstractButtonWidget>getHoveredButton(double mouseX, double mouseY)intgetRowWidth()protected intgetScrollbarPositionX()-
从类继承的方法 net.minecraft.client.gui.widget.ElementListWidget
changeFocus, isSelectedEntry
-
从类继承的方法 net.minecraft.client.gui.widget.EntryListWidget
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureSelectedEntryVisible, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFocused, getMaxPosition, getMaxScroll, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelected, isFocused, isMouseOver, keyPressed, method_31322, method_31323, method_35721, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, setSelected, updateScrollingState, updateSize
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
-
-
-
构造器详细资料
-
ButtonListWidget
public ButtonListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)
- Mappings:
Namespace Name Mixin selector official <init>Ldvs;<init>(Ldum;IIIII)Vintermediary <init>Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIIII)Vnamed <init>Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII)V
-
-
方法详细资料
-
addSingleOptionEntry
public int addSingleOptionEntry(Option option)
- Mappings:
Namespace Name Mixin selector official aLdwk;a(Ldup;)Iintermediary method_20406Lnet/minecraft/class_353;method_20406(Lnet/minecraft/class_316;)Inamed addSingleOptionEntryLnet/minecraft/client/gui/widget/ButtonListWidget;addSingleOptionEntry(Lnet/minecraft/client/option/Option;)I
-
addOptionEntry
public void addOptionEntry(Option firstOption, @Nullable @Nullable Option secondOption)
- Mappings:
Namespace Name Mixin selector official aLdwk;a(Ldup;Ldup;)Vintermediary method_20407Lnet/minecraft/class_353;method_20407(Lnet/minecraft/class_316;Lnet/minecraft/class_316;)Vnamed addOptionEntryLnet/minecraft/client/gui/widget/ButtonListWidget;addOptionEntry(Lnet/minecraft/client/option/Option;Lnet/minecraft/client/option/Option;)V
-
addAll
public void addAll(Option[] options)
- Mappings:
Namespace Name Mixin selector official aLdwk;a([Ldup;)Vintermediary method_20408Lnet/minecraft/class_353;method_20408([Lnet/minecraft/class_316;)Vnamed addAllLnet/minecraft/client/gui/widget/ButtonListWidget;addAll([Lnet/minecraft/client/option/Option;)V
-
getRowWidth
public int getRowWidth()
- 覆盖:
getRowWidth在类中EntryListWidget<ButtonListWidget.ButtonEntry>- Mappings:
Namespace Name Mixin selector official dLdvs;d()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getScrollbarPositionX
protected int getScrollbarPositionX()
- 覆盖:
getScrollbarPositionX在类中EntryListWidget<ButtonListWidget.ButtonEntry>- Mappings:
Namespace Name Mixin selector official eLdvs;e()Iintermediary method_25329Lnet/minecraft/class_350;method_25329()Inamed getScrollbarPositionXLnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
getButtonFor
@Nullable public @Nullable AbstractButtonWidget getButtonFor(Option option)
- Mappings:
Namespace Name Mixin selector official bLdwk;b(Ldup;)Ldvu;intermediary method_31046Lnet/minecraft/class_353;method_31046(Lnet/minecraft/class_316;)Lnet/minecraft/class_339;named getButtonForLnet/minecraft/client/gui/widget/ButtonListWidget;getButtonFor(Lnet/minecraft/client/option/Option;)Lnet/minecraft/client/gui/widget/AbstractButtonWidget;
-
getHoveredButton
public Optional<AbstractButtonWidget> getHoveredButton(double mouseX, double mouseY)
- Mappings:
Namespace Name Mixin selector official cLdwk;c(DD)Ljava/util/Optional;intermediary method_29624Lnet/minecraft/class_353;method_29624(DD)Ljava/util/Optional;named getHoveredButtonLnet/minecraft/client/gui/widget/ButtonListWidget;getHoveredButton(DD)Ljava/util/Optional;
-
-