Class ButtonListWidget

All Implemented Interfaces:
Drawable, Element, Narratable, ParentElement, Selectable

@Environment(CLIENT) public class ButtonListWidget extends ElementListWidget<ButtonListWidget.ButtonEntry>
Mappings:
Namespace Name
official dxn
intermediary net/minecraft/class_353
named net/minecraft/client/gui/widget/ButtonListWidget
  • Constructor Details

    • ButtonListWidget

      public ButtonListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldwv;<init>(Ldvo;IIIII)V
      intermediary <init> Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIIII)V
      named <init> Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII)V
  • Method Details

    • addSingleOptionEntry

      public int addSingleOptionEntry(Option option)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxn;a(Ldvr;)I
      intermediary method_20406 Lnet/minecraft/class_353;method_20406(Lnet/minecraft/class_316;)I
      named addSingleOptionEntry Lnet/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 a Ldxn;a(Ldvr;Ldvr;)V
      intermediary method_20407 Lnet/minecraft/class_353;method_20407(Lnet/minecraft/class_316;Lnet/minecraft/class_316;)V
      named addOptionEntry Lnet/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 a Ldxn;a([Ldvr;)V
      intermediary method_20408 Lnet/minecraft/class_353;method_20408([Lnet/minecraft/class_316;)V
      named addAll Lnet/minecraft/client/gui/widget/ButtonListWidget;addAll([Lnet/minecraft/client/option/Option;)V
    • getRowWidth

      public int getRowWidth()
      Overrides:
      getRowWidth in class EntryListWidget<ButtonListWidget.ButtonEntry>
      Mappings:
      Namespace Name Mixin selector
      official d Ldwv;d()I
      intermediary method_25322 Lnet/minecraft/class_350;method_25322()I
      named getRowWidth Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
    • getScrollbarPositionX

      protected int getScrollbarPositionX()
      Overrides:
      getScrollbarPositionX in class EntryListWidget<ButtonListWidget.ButtonEntry>
      Mappings:
      Namespace Name Mixin selector
      official e Ldwv;e()I
      intermediary method_25329 Lnet/minecraft/class_350;method_25329()I
      named getScrollbarPositionX Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
    • getButtonFor

      @Nullable public @Nullable ClickableWidget getButtonFor(Option option)
      Mappings:
      Namespace Name Mixin selector
      official b Ldxn;b(Ldvr;)Ldwx;
      intermediary method_31046 Lnet/minecraft/class_353;method_31046(Lnet/minecraft/class_316;)Lnet/minecraft/class_339;
      named getButtonFor Lnet/minecraft/client/gui/widget/ButtonListWidget;getButtonFor(Lnet/minecraft/client/option/Option;)Lnet/minecraft/client/gui/widget/ClickableWidget;
    • getHoveredButton

      public Optional<ClickableWidget> getHoveredButton(double mouseX, double mouseY)
      Mappings:
      Namespace Name Mixin selector
      official c Ldxn;c(DD)Ljava/util/Optional;
      intermediary method_29624 Lnet/minecraft/class_353;method_29624(DD)Ljava/util/Optional;
      named getHoveredButton Lnet/minecraft/client/gui/widget/ButtonListWidget;getHoveredButton(DD)Ljava/util/Optional;