Class GridWidget

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

@Environment(CLIENT) public class GridWidget extends WrapperWidget
A widget that positions its children in a 2D grid.
See Also:
Mappings:
Namespace Name
named net/minecraft/client/gui/widget/GridWidget
intermediary net/minecraft/class_7845
official fkr
  • Field Details

    • children

      private final List<Widget> children
      Mappings:
      Namespace Name Mixin selector
      named children Lnet/minecraft/client/gui/widget/GridWidget;children:Ljava/util/List;
      intermediary field_40771 Lnet/minecraft/class_7845;field_40771:Ljava/util/List;
      official c Lfkr;c:Ljava/util/List;
    • grids

      private final List<GridWidget.Element> grids
      Mappings:
      Namespace Name Mixin selector
      named grids Lnet/minecraft/client/gui/widget/GridWidget;grids:Ljava/util/List;
      intermediary field_40772 Lnet/minecraft/class_7845;field_40772:Ljava/util/List;
      official d Lfkr;d:Ljava/util/List;
    • mainPositioner

      private final Positioner mainPositioner
      Mappings:
      Namespace Name Mixin selector
      named mainPositioner Lnet/minecraft/client/gui/widget/GridWidget;mainPositioner:Lnet/minecraft/client/gui/widget/Positioner;
      intermediary field_40773 Lnet/minecraft/class_7845;field_40773:Lnet/minecraft/class_7847;
      official e Lfkr;e:Lfkv;
    • rowSpacing

      private int rowSpacing
      Mappings:
      Namespace Name Mixin selector
      named rowSpacing Lnet/minecraft/client/gui/widget/GridWidget;rowSpacing:I
      intermediary field_42154 Lnet/minecraft/class_7845;field_42154:I
      official f Lfkr;f:I
    • columnSpacing

      private int columnSpacing
      Mappings:
      Namespace Name Mixin selector
      named columnSpacing Lnet/minecraft/client/gui/widget/GridWidget;columnSpacing:I
      intermediary field_42155 Lnet/minecraft/class_7845;field_42155:I
      official g Lfkr;g:I
  • Constructor Details

    • GridWidget

      public GridWidget()
    • GridWidget

      public GridWidget(int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/GridWidget;<init>(II)V
      intermediary <init> Lnet/minecraft/class_7845;<init>(II)V
      official <init> Lfkr;<init>(II)V
  • Method Details

    • refreshPositions

      public void refreshPositions()
      Mappings:
      Namespace Name Mixin selector
      named refreshPositions Lnet/minecraft/client/gui/widget/LayoutWidget;refreshPositions()V
      intermediary method_48222 Lnet/minecraft/class_8133;method_48222()V
      official a Lfkt;a()V
    • add

      public <T extends Widget> T add(T widget, int row, int column)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/Widget;II)Lnet/minecraft/client/gui/widget/Widget;
      intermediary method_46452 Lnet/minecraft/class_7845;method_46452(Lnet/minecraft/class_8021;II)Lnet/minecraft/class_8021;
      official a Lfkr;a(Lfku;II)Lfku;
    • add

      public <T extends Widget> T add(T widget, int row, int column, Positioner positioner)
      Mappings:
      Namespace Name Mixin selector
      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;
      intermediary method_46455 Lnet/minecraft/class_7845;method_46455(Lnet/minecraft/class_8021;IILnet/minecraft/class_7847;)Lnet/minecraft/class_8021;
      official a Lfkr;a(Lfku;IILfkv;)Lfku;
    • add

      public <T extends Widget> T add(T widget, int row, int column, Consumer<Positioner> callback)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/Widget;IILjava/util/function/Consumer;)Lnet/minecraft/client/gui/widget/Widget;
      intermediary method_52734 Lnet/minecraft/class_7845;method_52734(Lnet/minecraft/class_8021;IILjava/util/function/Consumer;)Lnet/minecraft/class_8021;
      official a Lfkr;a(Lfku;IILjava/util/function/Consumer;)Lfku;
    • add

      public <T extends Widget> T add(T widget, int row, int column, int occupiedRows, int occupiedColumns)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/Widget;IIII)Lnet/minecraft/client/gui/widget/Widget;
      intermediary method_46453 Lnet/minecraft/class_7845;method_46453(Lnet/minecraft/class_8021;IIII)Lnet/minecraft/class_8021;
      official a Lfkr;a(Lfku;IIII)Lfku;
    • add

      public <T extends Widget> T add(T widget, int row, int column, int occupiedRows, int occupiedColumns, Positioner positioner)
      Mappings:
      Namespace Name Mixin selector
      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;
      intermediary method_46454 Lnet/minecraft/class_7845;method_46454(Lnet/minecraft/class_8021;IIIILnet/minecraft/class_7847;)Lnet/minecraft/class_8021;
      official a Lfkr;a(Lfku;IIIILfkv;)Lfku;
    • add

      public <T extends Widget> T add(T widget, int row, int column, int occupiedBelow, int occupiedAbove, Consumer<Positioner> callback)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/Widget;IIIILjava/util/function/Consumer;)Lnet/minecraft/client/gui/widget/Widget;
      intermediary method_52733 Lnet/minecraft/class_7845;method_52733(Lnet/minecraft/class_8021;IIIILjava/util/function/Consumer;)Lnet/minecraft/class_8021;
      official a Lfkr;a(Lfku;IIIILjava/util/function/Consumer;)Lfku;
    • setColumnSpacing

      public GridWidget setColumnSpacing(int columnSpacing)
      Mappings:
      Namespace Name Mixin selector
      named setColumnSpacing Lnet/minecraft/client/gui/widget/GridWidget;setColumnSpacing(I)Lnet/minecraft/client/gui/widget/GridWidget;
      intermediary method_48635 Lnet/minecraft/class_7845;method_48635(I)Lnet/minecraft/class_7845;
      official a Lfkr;a(I)Lfkr;
    • setRowSpacing

      public GridWidget setRowSpacing(int rowSpacing)
      Mappings:
      Namespace Name Mixin selector
      named setRowSpacing Lnet/minecraft/client/gui/widget/GridWidget;setRowSpacing(I)Lnet/minecraft/client/gui/widget/GridWidget;
      intermediary method_48636 Lnet/minecraft/class_7845;method_48636(I)Lnet/minecraft/class_7845;
      official b Lfkr;b(I)Lfkr;
    • setSpacing

      public GridWidget setSpacing(int spacing)
      Mappings:
      Namespace Name Mixin selector
      named setSpacing Lnet/minecraft/client/gui/widget/GridWidget;setSpacing(I)Lnet/minecraft/client/gui/widget/GridWidget;
      intermediary method_48637 Lnet/minecraft/class_7845;method_48637(I)Lnet/minecraft/class_7845;
      official c Lfkr;c(I)Lfkr;
    • forEachElement

      public void forEachElement(Consumer<Widget> consumer)
      Mappings:
      Namespace Name Mixin selector
      named forEachElement Lnet/minecraft/client/gui/widget/LayoutWidget;forEachElement(Ljava/util/function/Consumer;)V
      intermediary method_48227 Lnet/minecraft/class_8133;method_48227(Ljava/util/function/Consumer;)V
      official b Lfkt;b(Ljava/util/function/Consumer;)V
    • copyPositioner

      public Positioner copyPositioner()
      Mappings:
      Namespace Name Mixin selector
      named copyPositioner Lnet/minecraft/client/gui/widget/GridWidget;copyPositioner()Lnet/minecraft/client/gui/widget/Positioner;
      intermediary method_46457 Lnet/minecraft/class_7845;method_46457()Lnet/minecraft/class_7847;
      official b Lfkr;b()Lfkv;
    • getMainPositioner

      public Positioner getMainPositioner()
      Mappings:
      Namespace Name Mixin selector
      named getMainPositioner Lnet/minecraft/client/gui/widget/GridWidget;getMainPositioner()Lnet/minecraft/client/gui/widget/Positioner;
      intermediary method_46458 Lnet/minecraft/class_7845;method_46458()Lnet/minecraft/class_7847;
      official c Lfkr;c()Lfkv;
    • createAdder

      public GridWidget.Adder createAdder(int columns)
      Mappings:
      Namespace Name Mixin selector
      named createAdder Lnet/minecraft/client/gui/widget/GridWidget;createAdder(I)Lnet/minecraft/client/gui/widget/GridWidget$Adder;
      intermediary method_47610 Lnet/minecraft/class_7845;method_47610(I)Lnet/minecraft/class_7845$class_7939;
      official d Lfkr;d(I)Lfkr$b;