Package net.minecraft.client.gui.widget
Class SimplePositioningWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.WrapperWidget
net.minecraft.client.gui.widget.SimplePositioningWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,ParentElement,Selectable
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 eliintermediary net/minecraft/class_7843named net/minecraft/client/gui/widget/SimplePositioningWidget
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.widget.WrapperWidget
WrapperWidget.WrappedElementNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ClickableWidget>private final List<SimplePositioningWidget.Element>private final Positionerprivate intprivate intFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, WIDGETS_TEXTURE, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ClickableWidget>
Tadd(T widget) <T extends ClickableWidget>
Tadd(T widget, Positioner positioner) static SimplePositioningWidgetof(int minWidth, int minHeight) voidsetDimensions(int minWidth, int minHeight) setMinHeight(int minWidth) setMinWidth(int minHeight) static voidstatic voidsetPos(ClickableWidget widget, int left, int top, int right, int bottom) static voidsetPos(ClickableWidget widget, int left, int top, int right, int bottom, float relativeX, float relativeY) protected List<ClickableWidget>Methods inherited from class net.minecraft.client.gui.widget.WrapperWidget
appendClickableNarrations, changeFocus, children, getFocused, getHoveredElement, getType, hoveredElement, isDragging, isMouseOver, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, renderButton, setDragging, setFocused, setX, setYMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getTooltipPositioner, getWidth, getX, getY, getYImage, isFocused, isHovered, isNarratable, isValidClickButton, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBackground, setAlpha, setFocused, setMessage, setPos, setTooltip, setTooltipDelay, setWidthMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, keyPressed, keyReleased, setInitialFocus
-
Field Details
-
elements
- Mappings:
Namespace Name Mixin selector official aLeli;a:Ljava/util/List;intermediary field_40766Lnet/minecraft/class_7843;field_40766:Ljava/util/List;named elementsLnet/minecraft/client/gui/widget/SimplePositioningWidget;elements:Ljava/util/List;
-
children
- Mappings:
Namespace Name Mixin selector official bLeli;b:Ljava/util/List;intermediary field_40767Lnet/minecraft/class_7843;field_40767:Ljava/util/List;named childrenLnet/minecraft/client/gui/widget/SimplePositioningWidget;children:Ljava/util/List;
-
minHeight
private int minHeight- Mappings:
Namespace Name Mixin selector official cLeli;c:Iintermediary field_40768Lnet/minecraft/class_7843;field_40768:Inamed minHeightLnet/minecraft/client/gui/widget/SimplePositioningWidget;minHeight:I
-
minWidth
private int minWidth- Mappings:
Namespace Name Mixin selector official dLeli;d:Iintermediary field_40769Lnet/minecraft/class_7843;field_40769:Inamed minWidthLnet/minecraft/client/gui/widget/SimplePositioningWidget;minWidth:I
-
mainPositioner
- Mappings:
Namespace Name Mixin selector official eLeli;e:Lell;intermediary field_40770Lnet/minecraft/class_7843;field_40770:Lnet/minecraft/class_7847;named mainPositionerLnet/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)Vintermediary <init>Lnet/minecraft/class_7843;<init>(IIII)Vnamed <init>Lnet/minecraft/client/gui/widget/SimplePositioningWidget;<init>(IIII)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official aLeli;a(II)Leli;intermediary method_46439Lnet/minecraft/class_7843;method_46439(II)Lnet/minecraft/class_7843;named ofLnet/minecraft/client/gui/widget/SimplePositioningWidget;of(II)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
-
setDimensions
- Mappings:
Namespace Name Mixin selector official cLeli;c(II)Leli;intermediary method_46446Lnet/minecraft/class_7843;method_46446(II)Lnet/minecraft/class_7843;named setDimensionsLnet/minecraft/client/gui/widget/SimplePositioningWidget;setDimensions(II)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
-
setMinHeight
- Mappings:
Namespace Name Mixin selector official gLeli;g(I)Leli;intermediary method_46447Lnet/minecraft/class_7843;method_46447(I)Lnet/minecraft/class_7843;named setMinHeightLnet/minecraft/client/gui/widget/SimplePositioningWidget;setMinHeight(I)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
-
setMinWidth
- Mappings:
Namespace Name Mixin selector official hLeli;h(I)Leli;intermediary method_46449Lnet/minecraft/class_7843;method_46449(I)Lnet/minecraft/class_7843;named setMinWidthLnet/minecraft/client/gui/widget/SimplePositioningWidget;setMinWidth(I)Lnet/minecraft/client/gui/widget/SimplePositioningWidget;
-
copyPositioner
- Mappings:
Namespace Name Mixin selector official gLeli;g()Lell;intermediary method_46448Lnet/minecraft/class_7843;method_46448()Lnet/minecraft/class_7847;named copyPositionerLnet/minecraft/client/gui/widget/SimplePositioningWidget;copyPositioner()Lnet/minecraft/client/gui/widget/Positioner;
-
getMainPositioner
- Mappings:
Namespace Name Mixin selector official hLeli;h()Lell;intermediary method_46450Lnet/minecraft/class_7843;method_46450()Lnet/minecraft/class_7847;named getMainPositionerLnet/minecraft/client/gui/widget/SimplePositioningWidget;getMainPositioner()Lnet/minecraft/client/gui/widget/Positioner;
-
recalculateDimensions
public void recalculateDimensions()- Mappings:
Namespace Name Mixin selector official tLeli;t()Vintermediary method_46451Lnet/minecraft/class_7843;method_46451()Vnamed recalculateDimensionsLnet/minecraft/client/gui/widget/SimplePositioningWidget;recalculateDimensions()V
-
add
- Mappings:
Namespace Name Mixin selector official aLeli;a(Lekw;)Lekw;intermediary method_46441Lnet/minecraft/class_7843;method_46441(Lnet/minecraft/class_339;)Lnet/minecraft/class_339;named addLnet/minecraft/client/gui/widget/SimplePositioningWidget;add(Lnet/minecraft/client/gui/widget/ClickableWidget;)Lnet/minecraft/client/gui/widget/ClickableWidget;
-
add
- Mappings:
Namespace Name Mixin selector official aLeli;a(Lekw;Lell;)Lekw;intermediary method_46444Lnet/minecraft/class_7843;method_46444(Lnet/minecraft/class_339;Lnet/minecraft/class_7847;)Lnet/minecraft/class_339;named addLnet/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
- Specified by:
wrappedWidgetsin classWrapperWidget- Mappings:
Namespace Name Mixin selector official bLekr;b()Ljava/util/List;intermediary method_46418Lnet/minecraft/class_7838;method_46418()Ljava/util/List;named wrappedWidgetsLnet/minecraft/client/gui/widget/WrapperWidget;wrappedWidgets()Ljava/util/List;
-
setPos
- Mappings:
Namespace Name Mixin selector official aLeli;a(Lekw;IIII)Vintermediary method_46442Lnet/minecraft/class_7843;method_46442(Lnet/minecraft/class_339;IIII)Vnamed setPosLnet/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 aLeli;a(Lekw;IIIIFF)Vintermediary method_46443Lnet/minecraft/class_7843;method_46443(Lnet/minecraft/class_339;IIIIFF)Vnamed setPosLnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(Lnet/minecraft/client/gui/widget/ClickableWidget;IIIIFF)V
-
setPos
- Mappings:
Namespace Name Mixin selector official aLeli;a(IIILjava/util/function/Consumer;F)Vintermediary method_46440Lnet/minecraft/class_7843;method_46440(IIILjava/util/function/Consumer;F)Vnamed setPosLnet/minecraft/client/gui/widget/SimplePositioningWidget;setPos(IIILjava/util/function/Consumer;F)V
-