Class DirectionalLayoutWidget

java.lang.Object
net.minecraft.client.gui.widget.DirectionalLayoutWidget
All Implemented Interfaces:
LayoutWidget, Widget

@Environment(CLIENT) public class DirectionalLayoutWidget extends Object implements LayoutWidget
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 ewd
intermediary net/minecraft/class_8667
named net/minecraft/client/gui/widget/DirectionalLayoutWidget
  • Field Details

    • grid

      private final GridWidget grid
      Mappings:
      Namespace Name Mixin selector
      official a Lewd;a:Levy;
      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 Lewd;b:Lewd$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 Lewd;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

      private DirectionalLayoutWidget(DirectionalLayoutWidget.DisplayAxis axis)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lewd;<init>(Lewd$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

      public DirectionalLayoutWidget(int x, int y, DirectionalLayoutWidget.DisplayAxis axis)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lewd;<init>(IILewd$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

      public DirectionalLayoutWidget spacing(int spacing)
      Mappings:
      Namespace Name Mixin selector
      official a Lewd;a(I)Lewd;
      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

      public Positioner copyPositioner()
      Mappings:
      Namespace Name Mixin selector
      official b Lewd;b()Lewc;
      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

      public Positioner getMainPositioner()
      Mappings:
      Namespace Name Mixin selector
      official c Lewd;c()Lewc;
      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

      public <T extends Widget> T add(T widget, Positioner positioner)
      Mappings:
      Namespace Name Mixin selector
      official a Lewd;a(Lewb;Lewc;)Lewb;
      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

      public <T extends Widget> T add(T widget)
      Mappings:
      Namespace Name Mixin selector
      official a Lewd;a(Lewb;)Lewb;
      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

      public <T extends Widget> T add(T widget, Consumer<Positioner> callback)
      Mappings:
      Namespace Name Mixin selector
      official a Lewd;a(Lewb;Ljava/util/function/Consumer;)Lewb;
      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

      public void forEachElement(Consumer<Widget> consumer)
      Specified by:
      forEachElement in interface LayoutWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lewa;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 interface LayoutWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lewa;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()
      Specified by:
      getWidth in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official l Lewb;l()I
      intermediary method_25368 Lnet/minecraft/class_8021;method_25368()I
      named getWidth Lnet/minecraft/client/gui/widget/Widget;getWidth()I
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official i Lewb;i()I
      intermediary method_25364 Lnet/minecraft/class_8021;method_25364()I
      named getHeight Lnet/minecraft/client/gui/widget/Widget;getHeight()I
    • setX

      public void setX(int x)
      Specified by:
      setX in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official f Lewb;f(I)V
      intermediary method_46421 Lnet/minecraft/class_8021;method_46421(I)V
      named setX Lnet/minecraft/client/gui/widget/Widget;setX(I)V
    • setY

      public void setY(int y)
      Specified by:
      setY in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official g Lewb;g(I)V
      intermediary method_46419 Lnet/minecraft/class_8021;method_46419(I)V
      named setY Lnet/minecraft/client/gui/widget/Widget;setY(I)V
    • getX

      public int getX()
      Specified by:
      getX in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official r Lewb;r()I
      intermediary method_46426 Lnet/minecraft/class_8021;method_46426()I
      named getX Lnet/minecraft/client/gui/widget/Widget;getX()I
    • getY

      public int getY()
      Specified by:
      getY in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official t Lewb;t()I
      intermediary method_46427 Lnet/minecraft/class_8021;method_46427()I
      named getY Lnet/minecraft/client/gui/widget/Widget;getY()I
    • vertical

      public static DirectionalLayoutWidget vertical()
      Mappings:
      Namespace Name Mixin selector
      official d Lewd;d()Lewd;
      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

      public static DirectionalLayoutWidget horizontal()
      Mappings:
      Namespace Name Mixin selector
      official e Lewd;e()Lewd;
      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;