Package net.minecraft.client.gui.widget
Class OptionPairWidget
java.lang.Object
net.minecraft.client.gui.widget.ListWidget
net.minecraft.client.gui.widget.EntryListWidget
net.minecraft.client.gui.widget.OptionPairWidget
@Environment(CLIENT) public class OptionPairWidget extends EntryListWidget
- Mappings:
Namespace Name official awfintermediary net/minecraft/class_701named net/minecraft/client/gui/widget/OptionPairWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOptionPairWidget.PairNested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.Entry -
Field Summary
Fields Modifier and Type Field Description private List<OptionPairWidget.Pair>entriesFields inherited from class net.minecraft.client.gui.widget.ListWidget
client, entryHeight, field_3001, field_3003, field_3005, field_3006, headerHeight, height, lastMouseX, lastMouseY, renderHeader, renderSelection, scrollAmount, visible, width, xEnd, xStart, yDrag, yEnd, yStart -
Constructor Summary
Constructors Constructor Description OptionPairWidget(MinecraftClient client, int width, int height, int top, int bottom, int entryHeight, GameOptions.Option[] options) -
Method Summary
Modifier and Type Method Description private ButtonWidgetcreateWidget(MinecraftClient client, int x, int y, GameOptions.Option option)protected intgetEntriesSize()OptionPairWidget.PairgetEntry(int int2)intgetRowWidth()protected intgetScrollbarPosition()Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget
isEntrySelected, mouseClicked, mouseReleased, renderBackground, renderEntry, selectEntry, updateItemPositionMethods inherited from class net.minecraft.client.gui.widget.ListWidget
buttonClicked, capYPosition, getEntryAt, getItemHeight, getMaxPosition, getMaxScroll, getScrollAmount, handleMouse, isDragging, isMouseInList, method_2630, render, renderDecorations, renderHeader, renderHoleBackground, renderList, scroll, setButtonIds, setDragging, setHeader, setRenderSelection, setXPos, updateBounds
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector official uLawf;u:Ljava/util/List;intermediary field_2960Lnet/minecraft/class_701;field_2960:Ljava/util/List;named entriesLnet/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;)Vintermediary <init>Lnet/minecraft/class_701;<init>(Lnet/minecraft/class_669;IIIII[Lnet/minecraft/class_671$class_672;)Vnamed <init>Lnet/minecraft/client/gui/widget/OptionPairWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII[Lnet/minecraft/client/options/GameOptions$Option;)V
-
-
Method Details
-
createWidget
- Mappings:
Namespace Name Mixin selector official aLawf;a(Lave;IILavh$a;)Lavs;intermediary method_2572Lnet/minecraft/class_701;method_2572(Lnet/minecraft/class_669;IILnet/minecraft/class_671$class_672;)Lnet/minecraft/class_685;named createWidgetLnet/minecraft/client/gui/widget/OptionPairWidget;createWidget(Lnet/minecraft/client/MinecraftClient;IILnet/minecraft/client/options/GameOptions$Option;)Lnet/minecraft/client/gui/widget/ButtonWidget;
-
getEntry
- Specified by:
getEntryin classEntryListWidget- Mappings:
Namespace Name Mixin selector official cLawf;c(I)Lawf$a;intermediary method_2573Lnet/minecraft/class_701;method_2573(I)Lnet/minecraft/class_701$class_702;named getEntryLnet/minecraft/client/gui/widget/OptionPairWidget;getEntry(I)Lnet/minecraft/client/gui/widget/OptionPairWidget$Pair;
-
getEntriesSize
protected int getEntriesSize()- Specified by:
getEntriesSizein classListWidget- Mappings:
Namespace Name Mixin selector official bLawi;b()Iintermediary method_2639Lnet/minecraft/class_713;method_2639()Inamed getEntriesSizeLnet/minecraft/client/gui/widget/ListWidget;getEntriesSize()I
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classListWidget- Mappings:
Namespace Name Mixin selector official cLawi;c()Iintermediary method_2643Lnet/minecraft/class_713;method_2643()Inamed getRowWidthLnet/minecraft/client/gui/widget/ListWidget;getRowWidth()I
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPositionin classListWidget- Mappings:
Namespace Name Mixin selector official dLawi;d()Iintermediary method_2646Lnet/minecraft/class_713;method_2646()Inamed getScrollbarPositionLnet/minecraft/client/gui/widget/ListWidget;getScrollbarPosition()I
-