Class OptionPairWidget


@Environment(CLIENT)
public class OptionPairWidget
extends EntryListWidget
Mappings:
Namespace Name
official awf
intermediary net/minecraft/class_701
named net/minecraft/client/gui/widget/OptionPairWidget
  • Field Details

    • entries

      private final List<OptionPairWidget.Pair> entries
      Mappings:
      Namespace Name Mixin selector
      official u Lawf;u:Ljava/util/List;
      intermediary field_2960 Lnet/minecraft/class_701;field_2960:Ljava/util/List;
      named entries Lnet/minecraft/client/gui/widget/OptionPairWidget;entries:Ljava/util/List;
  • Constructor Details

    • OptionPairWidget

      public OptionPairWidget​(MinecraftClient client, int width, int height, int top, int bottom, int entryHeight, GameOptions.Option[] options)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lawf;<init>(Lave;IIIII[Lavh$a;)V
      intermediary <init> Lnet/minecraft/class_701;<init>(Lnet/minecraft/class_669;IIIII[Lnet/minecraft/class_671$class_672;)V
      named <init> Lnet/minecraft/client/gui/widget/OptionPairWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII[Lnet/minecraft/client/options/GameOptions$Option;)V
  • Method Details

    • createWidget

      private ButtonWidget createWidget​(MinecraftClient client, int x, int y, GameOptions.Option option)
      Mappings:
      Namespace Name Mixin selector
      official a Lawf;a(Lave;IILavh$a;)Lavs;
      intermediary method_2572 Lnet/minecraft/class_701;method_2572(Lnet/minecraft/class_669;IILnet/minecraft/class_671$class_672;)Lnet/minecraft/class_685;
      named createWidget Lnet/minecraft/client/gui/widget/OptionPairWidget;createWidget(Lnet/minecraft/client/MinecraftClient;IILnet/minecraft/client/options/GameOptions$Option;)Lnet/minecraft/client/gui/widget/ButtonWidget;
    • getEntry

      public OptionPairWidget.Pair getEntry​(int int2)
      Specified by:
      getEntry in class EntryListWidget
      Mappings:
      Namespace Name Mixin selector
      official c Lawf;c(I)Lawf$a;
      intermediary method_2573 Lnet/minecraft/class_701;method_2573(I)Lnet/minecraft/class_701$class_702;
      named getEntry Lnet/minecraft/client/gui/widget/OptionPairWidget;getEntry(I)Lnet/minecraft/client/gui/widget/OptionPairWidget$Pair;
    • getEntriesSize

      protected int getEntriesSize()
      Specified by:
      getEntriesSize in class ListWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lawi;b()I
      intermediary method_2639 Lnet/minecraft/class_713;method_2639()I
      named getEntriesSize Lnet/minecraft/client/gui/widget/ListWidget;getEntriesSize()I
    • getRowWidth

      public int getRowWidth()
      Overrides:
      getRowWidth in class ListWidget
      Mappings:
      Namespace Name Mixin selector
      official c Lawi;c()I
      intermediary method_2643 Lnet/minecraft/class_713;method_2643()I
      named getRowWidth Lnet/minecraft/client/gui/widget/ListWidget;getRowWidth()I
    • getScrollbarPosition

      protected int getScrollbarPosition()
      Overrides:
      getScrollbarPosition in class ListWidget
      Mappings:
      Namespace Name Mixin selector
      official d Lawi;d()I
      intermediary method_2646 Lnet/minecraft/class_713;method_2646()I
      named getScrollbarPosition Lnet/minecraft/client/gui/widget/ListWidget;getScrollbarPosition()I