Class SimplePositioningWidget

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

@Environment(CLIENT) public class SimplePositioningWidget extends WrapperWidget
A widget that positions its children relative to the widget's position. This does not attempt to prevent widgets overlapping with each other; if this is necessary, consider GridWidget.
Mappings:
Namespace Name
official eli
intermediary net/minecraft/class_7843
named net/minecraft/client/gui/widget/SimplePositioningWidget
  • Field Details

    • elements

      private final List<SimplePositioningWidget.Element> elements
      Mappings:
      Namespace Name Mixin selector
      official a Leli;a:Ljava/util/List;
      intermediary field_40766 Lnet/minecraft/class_7843;field_40766:Ljava/util/List;
      named elements Lnet/minecraft/client/gui/widget/SimplePositioningWidget;elements:Ljava/util/List;
    • children

      private final List<ClickableWidget> children
      Mappings:
      Namespace Name Mixin selector
      official b Leli;b:Ljava/util/List;
      intermediary field_40767 Lnet/minecraft/class_7843;field_40767:Ljava/util/List;
      named children Lnet/minecraft/client/gui/widget/SimplePositioningWidget;children:Ljava/util/List;
    • minHeight

      private int minHeight
      Mappings:
      Namespace Name Mixin selector
      official c Leli;c:I
      intermediary field_40768 Lnet/minecraft/class_7843;field_40768:I
      named minHeight Lnet/minecraft/client/gui/widget/SimplePositioningWidget;minHeight:I
    • minWidth

      private int minWidth
      Mappings:
      Namespace Name Mixin selector
      official d Leli;d:I
      intermediary field_40769 Lnet/minecraft/class_7843;field_40769:I
      named minWidth Lnet/minecraft/client/gui/widget/SimplePositioningWidget;minWidth:I
    • mainPositioner

      private final Positioner mainPositioner
      Mappings:
      Namespace Name Mixin selector
      official e Leli;e:Lell;
      intermediary field_40770 Lnet/minecraft/class_7843;field_40770:Lnet/minecraft/class_7847;
      named mainPositioner Lnet/minecraft/client/gui/widget/SimplePositioningWidget;mainPositioner:Lnet/minecraft/client/gui/widget/Positioner;
  • Constructor Details

    • SimplePositioningWidget

      public SimplePositioningWidget()
    • SimplePositioningWidget

      public SimplePositioningWidget(int x, int y, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leli;<init>(IIII)V
      intermediary <init> Lnet/minecraft/class_7843;<init>(IIII)V
      named <init> Lnet/minecraft/client/gui/widget/SimplePositioningWidget;<init>(IIII)V
  • Method Details

    • of

      public static SimplePositioningWidget of(int minWidth, int minHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Leli;a(II)Leli;
      intermediary method_46439 Lnet/minecraft/class_7843;method_46439(II)Lnet/minecraft/class_7843;
      named of Lnet/minecraft/client/gui/widget/SimplePositioningWidget;of(II)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
    • setDimensions

      public SimplePositioningWidget setDimensions(int minWidth, int minHeight)
      Mappings:
      Namespace Name Mixin selector
      official c Leli;c(II)Leli;
      intermediary method_46446 Lnet/minecraft/class_7843;method_46446(II)Lnet/minecraft/class_7843;
      named setDimensions Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setDimensions(II)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
    • setMinHeight

      public SimplePositioningWidget setMinHeight(int minWidth)
      Mappings:
      Namespace Name Mixin selector
      official g Leli;g(I)Leli;
      intermediary method_46447 Lnet/minecraft/class_7843;method_46447(I)Lnet/minecraft/class_7843;
      named setMinHeight Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setMinHeight(I)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
    • setMinWidth

      public SimplePositioningWidget setMinWidth(int minHeight)
      Mappings:
      Namespace Name Mixin selector
      official h Leli;h(I)Leli;
      intermediary method_46449 Lnet/minecraft/class_7843;method_46449(I)Lnet/minecraft/class_7843;
      named setMinWidth Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setMinWidth(I)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
    • copyPositioner

      public Positioner copyPositioner()
      Mappings:
      Namespace Name Mixin selector
      official g Leli;g()Lell;
      intermediary method_46448 Lnet/minecraft/class_7843;method_46448()Lnet/minecraft/class_7847;
      named copyPositioner Lnet/minecraft/client/gui/widget/SimplePositioningWidget;copyPositioner()Lnet/minecraft/client/gui/widget/Positioner;
    • getMainPositioner

      public Positioner getMainPositioner()
      Mappings:
      Namespace Name Mixin selector
      official h Leli;h()Lell;
      intermediary method_46450 Lnet/minecraft/class_7843;method_46450()Lnet/minecraft/class_7847;
      named getMainPositioner Lnet/minecraft/client/gui/widget/SimplePositioningWidget;getMainPositioner()Lnet/minecraft/client/gui/widget/Positioner;
    • recalculateDimensions

      public void recalculateDimensions()
      Mappings:
      Namespace Name Mixin selector
      official t Leli;t()V
      intermediary method_46451 Lnet/minecraft/class_7843;method_46451()V
      named recalculateDimensions Lnet/minecraft/client/gui/widget/SimplePositioningWidget;recalculateDimensions()V
    • add

      public <T extends ClickableWidget> T add(T widget)
      Mappings:
      Namespace Name Mixin selector
      official a Leli;a(Lekw;)Lekw;
      intermediary method_46441 Lnet/minecraft/class_7843;method_46441(Lnet/minecraft/class_339;)Lnet/minecraft/class_339;
      named add Lnet/minecraft/client/gui/widget/SimplePositioningWidget;add(Lnet/minecraft/client/gui/widget/ClickableWidget;)Lnet/minecraft/client/gui/widget/ClickableWidget;
    • add

      public <T extends ClickableWidget> T add(T widget, Positioner positioner)
      Mappings:
      Namespace Name Mixin selector
      official a Leli;a(Lekw;Lell;)Lekw;
      intermediary method_46444 Lnet/minecraft/class_7843;method_46444(Lnet/minecraft/class_339;Lnet/minecraft/class_7847;)Lnet/minecraft/class_339;
      named add Lnet/minecraft/client/gui/widget/SimplePositioningWidget;add(Lnet/minecraft/client/gui/widget/ClickableWidget;Lnet/minecraft/client/gui/widget/Positioner;)Lnet/minecraft/client/gui/widget/ClickableWidget;
    • wrappedWidgets

      protected List<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;
    • setPos

      public static void setPos(ClickableWidget widget, int left, int top, int right, int bottom)
      Mappings:
      Namespace Name Mixin selector
      official a Leli;a(Lekw;IIII)V
      intermediary method_46442 Lnet/minecraft/class_7843;method_46442(Lnet/minecraft/class_339;IIII)V
      named setPos Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(Lnet/minecraft/client/gui/widget/ClickableWidget;IIII)V
    • setPos

      public static void setPos(ClickableWidget widget, int left, int top, int right, int bottom, float relativeX, float relativeY)
      Mappings:
      Namespace Name Mixin selector
      official a Leli;a(Lekw;IIIIFF)V
      intermediary method_46443 Lnet/minecraft/class_7843;method_46443(Lnet/minecraft/class_339;IIIIFF)V
      named setPos Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(Lnet/minecraft/client/gui/widget/ClickableWidget;IIIIFF)V
    • setPos

      public static void setPos(int low, int high, int length, Consumer<Integer> setter, float relative)
      Mappings:
      Namespace Name Mixin selector
      official a Leli;a(IIILjava/util/function/Consumer;F)V
      intermediary method_46440 Lnet/minecraft/class_7843;method_46440(IIILjava/util/function/Consumer;F)V
      named setPos Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(IIILjava/util/function/Consumer;F)V