Class OptionListWidget

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

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

    • OptionListWidget

      public OptionListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lepc;<init>(Lenn;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(SimpleOption<?> option)
      Mappings:
      Namespace Name Mixin selector
      official a Leqd;a(Lenq;)I
      intermediary method_20406 Lnet/minecraft/class_353;method_20406(Lnet/minecraft/class_7172;)I
      named addSingleOptionEntry Lnet/minecraft/client/gui/widget/OptionListWidget;addSingleOptionEntry(Lnet/minecraft/client/option/SimpleOption;)I
    • addOptionEntry

      public void addOptionEntry(SimpleOption<?> firstOption, @Nullable @Nullable SimpleOption<?> secondOption)
      Mappings:
      Namespace Name Mixin selector
      official a Leqd;a(Lenq;Lenq;)V
      intermediary method_20407 Lnet/minecraft/class_353;method_20407(Lnet/minecraft/class_7172;Lnet/minecraft/class_7172;)V
      named addOptionEntry Lnet/minecraft/client/gui/widget/OptionListWidget;addOptionEntry(Lnet/minecraft/client/option/SimpleOption;Lnet/minecraft/client/option/SimpleOption;)V
    • addAll

      public void addAll(SimpleOption<?>[] options)
      Mappings:
      Namespace Name Mixin selector
      official a Leqd;a([Lenq;)V
      intermediary method_20408 Lnet/minecraft/class_353;method_20408([Lnet/minecraft/class_7172;)V
      named addAll Lnet/minecraft/client/gui/widget/OptionListWidget;addAll([Lnet/minecraft/client/option/SimpleOption;)V
    • getRowWidth

      public int getRowWidth()
      Overrides:
      getRowWidth in class EntryListWidget<OptionListWidget.WidgetEntry>
      Mappings:
      Namespace Name Mixin selector
      official b Lepc;b()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<OptionListWidget.WidgetEntry>
      Mappings:
      Namespace Name Mixin selector
      official c Lepc;c()I
      intermediary method_25329 Lnet/minecraft/class_350;method_25329()I
      named getScrollbarPositionX Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
    • getWidgetFor

      @Nullable public @Nullable ClickableWidget getWidgetFor(SimpleOption<?> option)
      Mappings:
      Namespace Name Mixin selector
      official b Leqd;b(Lenq;)Lepf;
      intermediary method_31046 Lnet/minecraft/class_353;method_31046(Lnet/minecraft/class_7172;)Lnet/minecraft/class_339;
      named getWidgetFor Lnet/minecraft/client/gui/widget/OptionListWidget;getWidgetFor(Lnet/minecraft/client/option/SimpleOption;)Lnet/minecraft/client/gui/widget/ClickableWidget;
    • getHoveredWidget

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