Package net.minecraft.client.gui.widget
Class GridWidget
java.lang.Object
net.minecraft.client.gui.widget.WrapperWidget
net.minecraft.client.gui.widget.GridWidget
- All Implemented Interfaces:
LayoutWidget
,Widget
A widget that positions its children in a 2D grid.
- See Also:
- Mappings:
Namespace Name official equ
intermediary net/minecraft/class_7845
named net/minecraft/client/gui/widget/GridWidget
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
private static class
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.WrapperWidget
WrapperWidget.WrappedElement
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final List<GridWidget.Element>
private final Positioner
private int
Fields inherited from class net.minecraft.client.gui.widget.WrapperWidget
height, width
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Widget>
Tadd
(T widget, int row, int column) <T extends Widget>
Tadd
(T widget, int row, int column, int occupiedRows, int occupiedColumns) <T extends Widget>
Tadd
(T widget, int row, int column, int occupiedRows, int occupiedColumns, Positioner positioner) <T extends Widget>
Tadd
(T widget, int row, int column, Positioner positioner) createAdder
(int columns) void
forEachElement
(Consumer<Widget> consumer) void
setColumnSpacing
(int columnSpacing) setRowSpacing
(int rowSpacing) setSpacing
(int spacing) Methods inherited from class net.minecraft.client.gui.widget.WrapperWidget
getHeight, getWidth, getX, getY, setX, setY
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.widget.LayoutWidget
forEachChild
Methods inherited from interface net.minecraft.client.gui.widget.Widget
getNavigationFocus, setPosition
-
Field Details
-
children
- Mappings:
Namespace Name Mixin selector official c
Lequ;c:Ljava/util/List;
intermediary field_40771
Lnet/minecraft/class_7845;field_40771:Ljava/util/List;
named children
Lnet/minecraft/client/gui/widget/GridWidget;children:Ljava/util/List;
-
grids
- Mappings:
Namespace Name Mixin selector official d
Lequ;d:Ljava/util/List;
intermediary field_40772
Lnet/minecraft/class_7845;field_40772:Ljava/util/List;
named grids
Lnet/minecraft/client/gui/widget/GridWidget;grids:Ljava/util/List;
-
mainPositioner
- Mappings:
Namespace Name Mixin selector official e
Lequ;e:Leqy;
intermediary field_40773
Lnet/minecraft/class_7845;field_40773:Lnet/minecraft/class_7847;
named mainPositioner
Lnet/minecraft/client/gui/widget/GridWidget;mainPositioner:Lnet/minecraft/client/gui/widget/Positioner;
-
rowSpacing
private int rowSpacing- Mappings:
Namespace Name Mixin selector official f
Lequ;f:I
intermediary field_42154
Lnet/minecraft/class_7845;field_42154:I
named rowSpacing
Lnet/minecraft/client/gui/widget/GridWidget;rowSpacing:I
-
columnSpacing
private int columnSpacing- Mappings:
Namespace Name Mixin selector official g
Lequ;g:I
intermediary field_42155
Lnet/minecraft/class_7845;field_42155:I
named columnSpacing
Lnet/minecraft/client/gui/widget/GridWidget;columnSpacing:I
-
-
Constructor Details
-
GridWidget
public GridWidget() -
GridWidget
public GridWidget(int x, int y) - Mappings:
Namespace Name Mixin selector official <init>
Lequ;<init>(II)V
intermediary <init>
Lnet/minecraft/class_7845;<init>(II)V
named <init>
Lnet/minecraft/client/gui/widget/GridWidget;<init>(II)V
-
-
Method Details
-
refreshPositions
public void refreshPositions()- Mappings:
Namespace Name Mixin selector official c
Leqw;c()V
intermediary method_48222
Lnet/minecraft/class_8133;method_48222()V
named refreshPositions
Lnet/minecraft/client/gui/widget/LayoutWidget;refreshPositions()V
-
add
- Mappings:
Namespace Name Mixin selector official a
Lequ;a(Leqx;II)Leqx;
intermediary method_46452
Lnet/minecraft/class_7845;method_46452(Lnet/minecraft/class_8021;II)Lnet/minecraft/class_8021;
named add
Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/Widget;II)Lnet/minecraft/client/gui/widget/Widget;
-
add
- Mappings:
Namespace Name Mixin selector official a
Lequ;a(Leqx;IILeqy;)Leqx;
intermediary method_46455
Lnet/minecraft/class_7845;method_46455(Lnet/minecraft/class_8021;IILnet/minecraft/class_7847;)Lnet/minecraft/class_8021;
named add
Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/Widget;IILnet/minecraft/client/gui/widget/Positioner;)Lnet/minecraft/client/gui/widget/Widget;
-
add
public <T extends Widget> T add(T widget, int row, int column, int occupiedRows, int occupiedColumns) - Mappings:
Namespace Name Mixin selector official a
Lequ;a(Leqx;IIII)Leqx;
intermediary method_46453
Lnet/minecraft/class_7845;method_46453(Lnet/minecraft/class_8021;IIII)Lnet/minecraft/class_8021;
named add
Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/Widget;IIII)Lnet/minecraft/client/gui/widget/Widget;
-
add
public <T extends Widget> T add(T widget, int row, int column, int occupiedRows, int occupiedColumns, Positioner positioner) - Mappings:
Namespace Name Mixin selector official a
Lequ;a(Leqx;IIIILeqy;)Leqx;
intermediary method_46454
Lnet/minecraft/class_7845;method_46454(Lnet/minecraft/class_8021;IIIILnet/minecraft/class_7847;)Lnet/minecraft/class_8021;
named add
Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/Widget;IIIILnet/minecraft/client/gui/widget/Positioner;)Lnet/minecraft/client/gui/widget/Widget;
-
setColumnSpacing
- Mappings:
Namespace Name Mixin selector official a
Lequ;a(I)Lequ;
intermediary method_48635
Lnet/minecraft/class_7845;method_48635(I)Lnet/minecraft/class_7845;
named setColumnSpacing
Lnet/minecraft/client/gui/widget/GridWidget;setColumnSpacing(I)Lnet/minecraft/client/gui/widget/GridWidget;
-
setRowSpacing
- Mappings:
Namespace Name Mixin selector official b
Lequ;b(I)Lequ;
intermediary method_48636
Lnet/minecraft/class_7845;method_48636(I)Lnet/minecraft/class_7845;
named setRowSpacing
Lnet/minecraft/client/gui/widget/GridWidget;setRowSpacing(I)Lnet/minecraft/client/gui/widget/GridWidget;
-
setSpacing
- Mappings:
Namespace Name Mixin selector official c
Lequ;c(I)Lequ;
intermediary method_48637
Lnet/minecraft/class_7845;method_48637(I)Lnet/minecraft/class_7845;
named setSpacing
Lnet/minecraft/client/gui/widget/GridWidget;setSpacing(I)Lnet/minecraft/client/gui/widget/GridWidget;
-
forEachElement
- Mappings:
Namespace Name Mixin selector official b
Leqw;b(Ljava/util/function/Consumer;)V
intermediary method_48227
Lnet/minecraft/class_8133;method_48227(Ljava/util/function/Consumer;)V
named forEachElement
Lnet/minecraft/client/gui/widget/LayoutWidget;forEachElement(Ljava/util/function/Consumer;)V
-
copyPositioner
- Mappings:
Namespace Name Mixin selector official a
Lequ;a()Leqy;
intermediary method_46457
Lnet/minecraft/class_7845;method_46457()Lnet/minecraft/class_7847;
named copyPositioner
Lnet/minecraft/client/gui/widget/GridWidget;copyPositioner()Lnet/minecraft/client/gui/widget/Positioner;
-
getMainPositioner
- Mappings:
Namespace Name Mixin selector official b
Lequ;b()Leqy;
intermediary method_46458
Lnet/minecraft/class_7845;method_46458()Lnet/minecraft/class_7847;
named getMainPositioner
Lnet/minecraft/client/gui/widget/GridWidget;getMainPositioner()Lnet/minecraft/client/gui/widget/Positioner;
-
createAdder
- Mappings:
Namespace Name Mixin selector official d
Lequ;d(I)Lequ$b;
intermediary method_47610
Lnet/minecraft/class_7845;method_47610(I)Lnet/minecraft/class_7845$class_7939;
named createAdder
Lnet/minecraft/client/gui/widget/GridWidget;createAdder(I)Lnet/minecraft/client/gui/widget/GridWidget$Adder;
-