Package net.minecraft.client.gui.widget
Class GridWidget
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.GridWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,ParentElement
,Selectable
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
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
private static class
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.WrapperWidget
WrapperWidget.WrappedElement
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<ClickableWidget>
private final List<GridWidget.Element>
private final Positioner
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ClickableWidget>
Tadd
(T widget, int row, int column) <T extends ClickableWidget>
Tadd
(T widget, int row, int column, int occupiedRows, int occupiedColumns) <T extends ClickableWidget>
Tadd
(T widget, int row, int column, int occupiedRows, int occupiedColumns, Positioner positioner) <T extends ClickableWidget>
Tadd
(T widget, int row, int column, Positioner positioner) createAdder
(int columns) void
protected List<? extends 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, setY
Methods 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, setWidth
Methods 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, setZOffset
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.ParentElement
charTyped, focusOn, keyPressed, keyReleased, setInitialFocus
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
- Specified by:
wrappedWidgets
in classWrapperWidget
- 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
- 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
- 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
- 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;
-