类 ButtonListWidget.ButtonEntry
- java.lang.Object
-
- net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
-
- net.minecraft.client.gui.widget.ElementListWidget.Entry<ButtonListWidget.ButtonEntry>
-
- net.minecraft.client.gui.widget.ButtonListWidget.ButtonEntry
-
- 所有已实现的接口:
Element,ParentElement
- 封闭类:
- ButtonListWidget
@Environment(CLIENT) public static class ButtonListWidget.ButtonEntry extends ElementListWidget.Entry<ButtonListWidget.ButtonEntry>
- Mappings:
Namespace Name official dwk$aintermediary net/minecraft/class_353$class_354named net/minecraft/client/gui/widget/ButtonListWidget$ButtonEntry
-
-
字段概要
字段 修饰符和类型 字段 说明 private List<AbstractButtonWidget>buttonsprivate Map<Option,AbstractButtonWidget>field_27983
-
构造器概要
构造器 限定符 构造器 说明 privateButtonEntry(Map<Option,AbstractButtonWidget> map)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 List<? extends Element>children()Gets a list of all child GUI elements.static ButtonListWidget.ButtonEntrycreate(GameOptions options, int width, Option option)static ButtonListWidget.ButtonEntrycreate(GameOptions options, int width, Option firstOption, @Nullable Option secondOption)voidrender(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)Renders an entry in a list.-
从类继承的方法 net.minecraft.client.gui.widget.ElementListWidget.Entry
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOver
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
isMouseOver, mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
field_27983
private final Map<Option,AbstractButtonWidget> field_27983
- Mappings:
Namespace Name Mixin selector official aLdwk$a;a:Ljava/util/Map;intermediary field_27983Lnet/minecraft/class_353$class_354;field_27983:Ljava/util/Map;named field_27983Lnet/minecraft/client/gui/widget/ButtonListWidget$ButtonEntry;field_27983:Ljava/util/Map;
-
buttons
private final List<AbstractButtonWidget> buttons
- Mappings:
Namespace Name Mixin selector official bLdwk$a;b:Ljava/util/List;intermediary field_18214Lnet/minecraft/class_353$class_354;field_18214:Ljava/util/List;named buttonsLnet/minecraft/client/gui/widget/ButtonListWidget$ButtonEntry;buttons:Ljava/util/List;
-
-
构造器详细资料
-
ButtonEntry
private ButtonEntry(Map<Option,AbstractButtonWidget> map)
-
-
方法详细资料
-
create
public static ButtonListWidget.ButtonEntry create(GameOptions options, int width, Option option)
- Mappings:
Namespace Name Mixin selector official aLdwk$a;a(Lduq;ILdup;)Ldwk$a;intermediary method_20409Lnet/minecraft/class_353$class_354;method_20409(Lnet/minecraft/class_315;ILnet/minecraft/class_316;)Lnet/minecraft/class_353$class_354;named createLnet/minecraft/client/gui/widget/ButtonListWidget$ButtonEntry;create(Lnet/minecraft/client/option/GameOptions;ILnet/minecraft/client/option/Option;)Lnet/minecraft/client/gui/widget/ButtonListWidget$ButtonEntry;
-
create
public static ButtonListWidget.ButtonEntry create(GameOptions options, int width, Option firstOption, @Nullable @Nullable Option secondOption)
- Mappings:
Namespace Name Mixin selector official aLdwk$a;a(Lduq;ILdup;Ldup;)Ldwk$a;intermediary method_20410Lnet/minecraft/class_353$class_354;method_20410(Lnet/minecraft/class_315;ILnet/minecraft/class_316;Lnet/minecraft/class_316;)Lnet/minecraft/class_353$class_354;named createLnet/minecraft/client/gui/widget/ButtonListWidget$ButtonEntry;create(Lnet/minecraft/client/option/GameOptions;ILnet/minecraft/client/option/Option;Lnet/minecraft/client/option/Option;)Lnet/minecraft/client/gui/widget/ButtonListWidget$ButtonEntry;
-
render
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
Renders an entry in a list.- 指定者:
render在类中EntryListWidget.Entry<ButtonListWidget.ButtonEntry>- 参数:
matrices- the matrix stack used for renderingindex- the index of the entryy- the Y coordinate of the entryx- the X coordinate of the entryentryWidth- the width of the entryentryHeight- the height of the entrymouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehovered- whether the mouse is hovering over the entry- Mappings:
Namespace Name Mixin selector official aLdvs$a;a(Ldpi;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_4587;IIIIIIIZF)Vnamed renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIZF)V
-
children
public List<? extends Element> children()
Gets a list of all child GUI elements.- Mappings:
Namespace Name Mixin selector official aB_Ldwu;aB_()Ljava/util/List;intermediary method_25396Lnet/minecraft/class_4069;method_25396()Ljava/util/List;named childrenLnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
-
-