Class GridWidget

All Implemented Interfaces:
Drawable, Element, Narratable, ParentElement, Selectable

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

    • children

      private final List<ClickableWidget> children
      Mappings:
      Namespace Name Mixin selector
      official a Lelj;a: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

      private final List<GridWidget.Element> grids
      Mappings:
      Namespace Name Mixin selector
      official b Lelj;b: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

      private final Positioner mainPositioner
      Mappings:
      Namespace Name Mixin selector
      official c Lelj;c:Lell;
      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;
  • Constructor Details

    • GridWidget

      public GridWidget()
    • GridWidget

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

      public GridWidget(int x, int y, Text message)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lelj;<init>(IILss;)V
      intermediary <init> Lnet/minecraft/class_7845;<init>(IILnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/widget/GridWidget;<init>(IILnet/minecraft/text/Text;)V
  • Method Details

    • recalculateDimensions

      public void recalculateDimensions()
      Mappings:
      Namespace Name Mixin selector
      official g Lelj;g()V
      intermediary method_46456 Lnet/minecraft/class_7845;method_46456()V
      named recalculateDimensions Lnet/minecraft/client/gui/widget/GridWidget;recalculateDimensions()V
    • add

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

      public <T extends ClickableWidget> T add(T widget, int row, int column, Positioner positioner)
      Mappings:
      Namespace Name Mixin selector
      official a Lelj;a(Lekw;IILell;)Lekw;
      intermediary method_46455 Lnet/minecraft/class_7845;method_46455(Lnet/minecraft/class_339;IILnet/minecraft/class_7847;)Lnet/minecraft/class_339;
      named add Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/ClickableWidget;IILnet/minecraft/client/gui/widget/Positioner;)Lnet/minecraft/client/gui/widget/ClickableWidget;
    • add

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

      public <T extends ClickableWidget> T add(T widget, int row, int column, int occupiedRows, int occupiedColumns, Positioner positioner)
      Mappings:
      Namespace Name Mixin selector
      official a Lelj;a(Lekw;IIIILell;)Lekw;
      intermediary method_46454 Lnet/minecraft/class_7845;method_46454(Lnet/minecraft/class_339;IIIILnet/minecraft/class_7847;)Lnet/minecraft/class_339;
      named add Lnet/minecraft/client/gui/widget/GridWidget;add(Lnet/minecraft/client/gui/widget/ClickableWidget;IIIILnet/minecraft/client/gui/widget/Positioner;)Lnet/minecraft/client/gui/widget/ClickableWidget;
    • wrappedWidgets

      protected List<? extends ClickableWidget> wrappedWidgets()
      Specified by:
      wrappedWidgets in class WrapperWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lekr;b()Ljava/util/List;
      intermediary method_46418 Lnet/minecraft/class_7838;method_46418()Ljava/util/List;
      named wrappedWidgets Lnet/minecraft/client/gui/widget/WrapperWidget;wrappedWidgets()Ljava/util/List;
    • copyPositioner

      public Positioner copyPositioner()
      Mappings:
      Namespace Name Mixin selector
      official h Lelj;h()Lell;
      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

      public Positioner getMainPositioner()
      Mappings:
      Namespace Name Mixin selector
      official t Lelj;t()Lell;
      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

      public GridWidget.Adder createAdder(int columns)
      Mappings:
      Namespace Name Mixin selector
      official g Lelj;g(I)Lelj$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;