Class LinearLayoutWidget
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.LinearLayoutWidget
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,NarratableEntry
,NarrationSupplier
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static enum
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<LinearLayoutWidget.ChildContainer>
private final List<AbstractWidget>
private final LayoutSettings
private final LinearLayoutWidget.Orientation
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
ConstructorDescriptionLinearLayoutWidget
(int p_253953_, int p_254179_, int p_254204_, int p_253837_, LinearLayoutWidget.Orientation p_254163_) LinearLayoutWidget
(int p_253992_, int p_254410_, LinearLayoutWidget.Orientation p_253898_) -
Method Summary
Modifier and TypeMethodDescription<T extends AbstractWidget>
TaddChild
(T p_254554_) <T extends AbstractWidget>
TaddChild
(T p_253643_, LayoutSettings p_253652_) 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
-
orientation
-
children
-
containedChildrenView
-
defaultChildLayoutSettings
-
-
Constructor Details
-
LinearLayoutWidget
-
LinearLayoutWidget
public LinearLayoutWidget(int p_253953_, int p_254179_, int p_254204_, int p_253837_, LinearLayoutWidget.Orientation p_254163_)
-
-
Method Details
-
pack
public void pack() -
getContainedChildren
- Specified by:
getContainedChildren
in classAbstractContainerWidget
-
newChildLayoutSettings
-
defaultChildLayoutSetting
-
addChild
-
addChild
-