Class GridWidget
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.components.GridWidget
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,NarratableEntry
,NarrationSupplier
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
final class
Nested classes/interfaces inherited from class net.minecraft.client.gui.components.AbstractContainerWidget
AbstractContainerWidget.AbstractChildWrapper
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<GridWidget.CellInhabitant>
private final List<AbstractWidget>
private final LayoutSettings
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionGridWidget
(int p_253876_, int p_253928_) GridWidget
(int p_253963_, int p_254096_, Component p_253791_) -
Method Summary
Modifier and TypeMethodDescription<T extends AbstractWidget>
TaddChild
(T p_254508_, int p_254211_, int p_254200_) <T extends AbstractWidget>
TaddChild
(T p_254063_, int p_253923_, int p_254490_, int p_254378_, int p_253716_) <T extends AbstractWidget>
TaddChild
(T p_254015_, int p_253893_, int p_254284_, int p_253678_, int p_253681_, LayoutSettings p_254124_) <T extends AbstractWidget>
TaddChild
(T p_254111_, int p_253708_, int p_253918_, LayoutSettings p_253611_) createRowHelper
(int p_262003_) protected List<? extends AbstractWidget>
void
pack()
Methods inherited from class net.minecraft.client.gui.components.AbstractContainerWidget
changeFocus, children, getChildAt, getFocused, getHovered, isDragging, isMouseOver, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, narrationPriority, renderButton, setDragging, setFocused, setX, setY, updateWidgetNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getX, getY, getYImage, isActive, isFocused, isHoveredOrFocused, isValidClickButton, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setPosition, setTooltip, setTooltipDelay, setWidth, updateNarration, wrapDefaultNarrationMessage
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
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.components.events.ContainerEventHandler
charTyped, keyPressed, keyReleased, magicalSpecialHackyFocus, setInitialFocus
-
Field Details
-
children
-
cellInhabitants
-
defaultCellSettings
-
-
Constructor Details
-
GridWidget
public GridWidget() -
GridWidget
public GridWidget(int p_253876_, int p_253928_) -
GridWidget
-
-
Method Details
-
pack
public void pack() -
addChild
-
addChild
public <T extends AbstractWidget> T addChild(T p_254111_, int p_253708_, int p_253918_, LayoutSettings p_253611_) -
addChild
public <T extends AbstractWidget> T addChild(T p_254063_, int p_253923_, int p_254490_, int p_254378_, int p_253716_) -
addChild
public <T extends AbstractWidget> T addChild(T p_254015_, int p_253893_, int p_254284_, int p_253678_, int p_253681_, LayoutSettings p_254124_) -
getContainedChildren
- Specified by:
getContainedChildren
in classAbstractContainerWidget
-
newCellSettings
-
defaultCellSetting
-
createRowHelper
-