Package net.minecraft.client.gui.widget
Class SimplePositioningWidget
java.lang.Object
net.minecraft.client.gui.widget.WrapperWidget
net.minecraft.client.gui.widget.SimplePositioningWidget
- All Implemented Interfaces:
LayoutWidget
,Widget
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 named net/minecraft/client/gui/widget/SimplePositioningWidget
intermediary net/minecraft/class_7843
official fkr
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.WrapperWidget
WrapperWidget.WrappedElement
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<SimplePositioningWidget.Element> private final Positioner
private int
private int
Fields inherited from class net.minecraft.client.gui.widget.WrapperWidget
height, width
-
Constructor Summary
ConstructorDescriptionSimplePositioningWidget
(int width, int height) SimplePositioningWidget
(int x, int y, int width, int height) -
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) void
setDimensions
(int minWidth, int minHeight) setMinHeight
(int minWidth) setMinWidth
(int minHeight) static void
static void
static void
static void
setPos
(Widget widget, ScreenRect rect) static void
setPos
(Widget widget, ScreenRect rect, float relativeX, float relativeY) Methods inherited from class net.minecraft.client.gui.widget.WrapperWidget
getHeight, getWidth, getX, getY, setX, setY
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
-
elements
- Mappings:
Namespace Name Mixin selector named elements
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;elements:Ljava/util/List;
intermediary field_40766
Lnet/minecraft/class_7843;field_40766:Ljava/util/List;
official c
Lfkr;c:Ljava/util/List;
-
minHeight
private int minHeight- Mappings:
Namespace Name Mixin selector named minHeight
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;minHeight:I
intermediary field_40768
Lnet/minecraft/class_7843;field_40768:I
official d
Lfkr;d:I
-
minWidth
private int minWidth- Mappings:
Namespace Name Mixin selector named minWidth
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;minWidth:I
intermediary field_40769
Lnet/minecraft/class_7843;field_40769:I
official e
Lfkr;e:I
-
mainPositioner
- Mappings:
Namespace Name Mixin selector named mainPositioner
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;mainPositioner:Lnet/minecraft/client/gui/widget/Positioner;
intermediary field_40770
Lnet/minecraft/class_7843;field_40770:Lnet/minecraft/class_7847;
official f
Lfkr;f:Lfkw;
-
-
Constructor Details
-
SimplePositioningWidget
public SimplePositioningWidget() -
SimplePositioningWidget
public SimplePositioningWidget(int width, int height) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;<init>(II)V
intermediary <init>
Lnet/minecraft/class_7843;<init>(II)V
official <init>
Lfkr;<init>(II)V
-
SimplePositioningWidget
public SimplePositioningWidget(int x, int y, int width, int height) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/WrapperWidget;<init>(IIII)V
intermediary <init>
Lnet/minecraft/class_7838;<init>(IIII)V
official <init>
Lfko;<init>(IIII)V
-
-
Method Details
-
setDimensions
- Mappings:
Namespace Name Mixin selector named setDimensions
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setDimensions(II)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
intermediary method_46446
Lnet/minecraft/class_7843;method_46446(II)Lnet/minecraft/class_7843;
official a
Lfkr;a(II)Lfkr;
-
setMinHeight
- Mappings:
Namespace Name Mixin selector named setMinHeight
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setMinHeight(I)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
intermediary method_46447
Lnet/minecraft/class_7843;method_46447(I)Lnet/minecraft/class_7843;
official a
Lfkr;a(I)Lfkr;
-
setMinWidth
- Mappings:
Namespace Name Mixin selector named setMinWidth
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setMinWidth(I)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
intermediary method_46449
Lnet/minecraft/class_7843;method_46449(I)Lnet/minecraft/class_7843;
official b
Lfkr;b(I)Lfkr;
-
copyPositioner
- Mappings:
Namespace Name Mixin selector named copyPositioner
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;copyPositioner()Lnet/minecraft/client/gui/widget/Positioner;
intermediary method_46448
Lnet/minecraft/class_7843;method_46448()Lnet/minecraft/class_7847;
official b
Lfkr;b()Lfkw;
-
getMainPositioner
- Mappings:
Namespace Name Mixin selector named getMainPositioner
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;getMainPositioner()Lnet/minecraft/client/gui/widget/Positioner;
intermediary method_46450
Lnet/minecraft/class_7843;method_46450()Lnet/minecraft/class_7847;
official c
Lfkr;c()Lfkw;
-
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
Lfku;a()V
-
add
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;add(Lnet/minecraft/client/gui/widget/Widget;)Lnet/minecraft/client/gui/widget/Widget;
intermediary method_46441
Lnet/minecraft/class_7843;method_46441(Lnet/minecraft/class_8021;)Lnet/minecraft/class_8021;
official a
Lfkr;a(Lfkv;)Lfkv;
-
add
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;add(Lnet/minecraft/client/gui/widget/Widget;Lnet/minecraft/client/gui/widget/Positioner;)Lnet/minecraft/client/gui/widget/Widget;
intermediary method_46444
Lnet/minecraft/class_7843;method_46444(Lnet/minecraft/class_8021;Lnet/minecraft/class_7847;)Lnet/minecraft/class_8021;
official a
Lfkr;a(Lfkv;Lfkw;)Lfkv;
-
add
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;add(Lnet/minecraft/client/gui/widget/Widget;Ljava/util/function/Consumer;)Lnet/minecraft/client/gui/widget/Widget;
intermediary method_52732
Lnet/minecraft/class_7843;method_52732(Lnet/minecraft/class_8021;Ljava/util/function/Consumer;)Lnet/minecraft/class_8021;
official a
Lfkr;a(Lfkv;Ljava/util/function/Consumer;)Lfkv;
-
forEachElement
- 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
Lfku;b(Ljava/util/function/Consumer;)V
-
setPos
- Mappings:
Namespace Name Mixin selector named setPos
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(Lnet/minecraft/client/gui/widget/Widget;IIII)V
intermediary method_46442
Lnet/minecraft/class_7843;method_46442(Lnet/minecraft/class_8021;IIII)V
official a
Lfkr;a(Lfkv;IIII)V
-
setPos
- Mappings:
Namespace Name Mixin selector named setPos
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(Lnet/minecraft/client/gui/widget/Widget;Lnet/minecraft/client/gui/ScreenRect;)V
intermediary method_48634
Lnet/minecraft/class_7843;method_48634(Lnet/minecraft/class_8021;Lnet/minecraft/class_8030;)V
official a
Lfkr;a(Lfkv;Lflm;)V
-
setPos
- Mappings:
Namespace Name Mixin selector named setPos
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(Lnet/minecraft/client/gui/widget/Widget;Lnet/minecraft/client/gui/ScreenRect;FF)V
intermediary method_49617
Lnet/minecraft/class_7843;method_49617(Lnet/minecraft/class_8021;Lnet/minecraft/class_8030;FF)V
official a
Lfkr;a(Lfkv;Lflm;FF)V
-
setPos
public static void setPos(Widget widget, int left, int top, int right, int bottom, float relativeX, float relativeY) - Mappings:
Namespace Name Mixin selector named setPos
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(Lnet/minecraft/client/gui/widget/Widget;IIIIFF)V
intermediary method_46443
Lnet/minecraft/class_7843;method_46443(Lnet/minecraft/class_8021;IIIIFF)V
official a
Lfkr;a(Lfkv;IIIIFF)V
-
setPos
- Mappings:
Namespace Name Mixin selector named setPos
Lnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(IIILjava/util/function/Consumer;F)V
intermediary method_46440
Lnet/minecraft/class_7843;method_46440(IIILjava/util/function/Consumer;F)V
official a
Lfkr;a(IIILjava/util/function/Consumer;F)V
-