Package net.minecraft.client.gui.widget
Class DirectionalLayoutWidget
java.lang.Object
net.minecraft.client.gui.widget.DirectionalLayoutWidget
- All Implemented Interfaces:
LayoutWidget
,Widget
A widget implementing one-directional layout. The elements can be
positioned either horizontally or vertically.
Use AxisGridWidget
to allow multiple elements per row or column.
- See Also:
- Mappings:
Namespace Name official fau
intermediary net/minecraft/class_8667
named net/minecraft/client/gui/widget/DirectionalLayoutWidget
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DirectionalLayoutWidget.DisplayAxis
private int
private final GridWidget
-
Constructor Summary
ModifierConstructorDescriptionDirectionalLayoutWidget
(int x, int y, DirectionalLayoutWidget.DisplayAxis axis) private
-
Method Summary
Modifier and TypeMethodDescription<T extends Widget>
Tadd
(T widget) <T extends Widget>
Tadd
(T widget, Consumer<Positioner> callback) <T extends Widget>
Tadd
(T widget, Positioner positioner) void
forEachElement
(Consumer<Widget> consumer) int
int
getWidth()
int
getX()
int
getY()
static DirectionalLayoutWidget
void
void
setX
(int x) void
setY
(int y) spacing
(int spacing) static DirectionalLayoutWidget
vertical()
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
-
grid
- Mappings:
Namespace Name Mixin selector official a
Lfau;a:Lfap;
intermediary field_45400
Lnet/minecraft/class_8667;field_45400:Lnet/minecraft/class_7845;
named grid
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;grid:Lnet/minecraft/client/gui/widget/GridWidget;
-
axis
- Mappings:
Namespace Name Mixin selector official b
Lfau;b:Lfau$a;
intermediary field_45401
Lnet/minecraft/class_8667;field_45401:Lnet/minecraft/class_8667$class_8668;
named axis
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;axis:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget$DisplayAxis;
-
currentIndex
private int currentIndex- Mappings:
Namespace Name Mixin selector official c
Lfau;c:I
intermediary field_45402
Lnet/minecraft/class_8667;field_45402:I
named currentIndex
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;currentIndex:I
-
-
Constructor Details
-
DirectionalLayoutWidget
- Mappings:
Namespace Name Mixin selector official <init>
Lfau;<init>(Lfau$a;)V
intermediary <init>
Lnet/minecraft/class_8667;<init>(Lnet/minecraft/class_8667$class_8668;)V
named <init>
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;<init>(Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget$DisplayAxis;)V
-
DirectionalLayoutWidget
- Mappings:
Namespace Name Mixin selector official <init>
Lfau;<init>(IILfau$a;)V
intermediary <init>
Lnet/minecraft/class_8667;<init>(IILnet/minecraft/class_8667$class_8668;)V
named <init>
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;<init>(IILnet/minecraft/client/gui/widget/DirectionalLayoutWidget$DisplayAxis;)V
-
-
Method Details
-
spacing
- Mappings:
Namespace Name Mixin selector official a
Lfau;a(I)Lfau;
intermediary method_52735
Lnet/minecraft/class_8667;method_52735(I)Lnet/minecraft/class_8667;
named spacing
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;spacing(I)Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
-
copyPositioner
- Mappings:
Namespace Name Mixin selector official b
Lfau;b()Lfat;
intermediary method_52739
Lnet/minecraft/class_8667;method_52739()Lnet/minecraft/class_7847;
named copyPositioner
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;copyPositioner()Lnet/minecraft/client/gui/widget/Positioner;
-
getMainPositioner
- Mappings:
Namespace Name Mixin selector official c
Lfau;c()Lfat;
intermediary method_52740
Lnet/minecraft/class_8667;method_52740()Lnet/minecraft/class_7847;
named getMainPositioner
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;getMainPositioner()Lnet/minecraft/client/gui/widget/Positioner;
-
add
- Mappings:
Namespace Name Mixin selector official a
Lfau;a(Lfas;Lfat;)Lfas;
intermediary method_52737
Lnet/minecraft/class_8667;method_52737(Lnet/minecraft/class_8021;Lnet/minecraft/class_7847;)Lnet/minecraft/class_8021;
named add
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;add(Lnet/minecraft/client/gui/widget/Widget;Lnet/minecraft/client/gui/widget/Positioner;)Lnet/minecraft/client/gui/widget/Widget;
-
add
- Mappings:
Namespace Name Mixin selector official a
Lfau;a(Lfas;)Lfas;
intermediary method_52736
Lnet/minecraft/class_8667;method_52736(Lnet/minecraft/class_8021;)Lnet/minecraft/class_8021;
named add
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;add(Lnet/minecraft/client/gui/widget/Widget;)Lnet/minecraft/client/gui/widget/Widget;
-
add
- Mappings:
Namespace Name Mixin selector official a
Lfau;a(Lfas;Ljava/util/function/Consumer;)Lfas;
intermediary method_52738
Lnet/minecraft/class_8667;method_52738(Lnet/minecraft/class_8021;Ljava/util/function/Consumer;)Lnet/minecraft/class_8021;
named add
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;add(Lnet/minecraft/client/gui/widget/Widget;Ljava/util/function/Consumer;)Lnet/minecraft/client/gui/widget/Widget;
-
forEachElement
- Specified by:
forEachElement
in interfaceLayoutWidget
- Mappings:
Namespace Name Mixin selector official b
Lfar;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
-
refreshPositions
public void refreshPositions()- Specified by:
refreshPositions
in interfaceLayoutWidget
- Mappings:
Namespace Name Mixin selector official a
Lfar;a()V
intermediary method_48222
Lnet/minecraft/class_8133;method_48222()V
named refreshPositions
Lnet/minecraft/client/gui/widget/LayoutWidget;refreshPositions()V
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
setX
public void setX(int x) -
setY
public void setY(int y) -
getX
public int getX() -
getY
public int getY() -
vertical
- Mappings:
Namespace Name Mixin selector official d
Lfau;d()Lfau;
intermediary method_52741
Lnet/minecraft/class_8667;method_52741()Lnet/minecraft/class_8667;
named vertical
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;vertical()Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
-
horizontal
- Mappings:
Namespace Name Mixin selector official e
Lfau;e()Lfau;
intermediary method_52742
Lnet/minecraft/class_8667;method_52742()Lnet/minecraft/class_8667;
named horizontal
Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;horizontal()Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
-