Class FrameWidget
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.FrameWidget
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,NarratableEntry
,NarrationSupplier
-
Nested Class Summary
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<FrameWidget.ChildContainer>
private final List<AbstractWidget>
private final LayoutSettings
private int
private int
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
-
Method Summary
Modifier and TypeMethodDescription<T extends AbstractWidget>
TaddChild
(T p_254042_) <T extends AbstractWidget>
TaddChild
(T p_253867_, LayoutSettings p_254248_) static void
alignInDimension
(int p_254540_, int p_254175_, int p_254347_, Consumer<Integer> p_254019_, float p_253883_) static void
alignInRectangle
(AbstractWidget p_254017_, int p_253970_, int p_254417_, int p_253830_, int p_254349_, float p_253759_, float p_254234_) static void
centerInRectangle
(AbstractWidget p_254089_, int p_253673_, int p_253715_, int p_254062_, int p_253910_) protected List<AbstractWidget>
void
pack()
setMinDimensions
(int p_254494_, int p_254389_) setMinHeight
(int p_253656_) setMinWidth
(int p_254400_) static FrameWidget
withMinDimensions
(int p_254205_, int p_254083_) 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
-
containedChildrenView
-
minWidth
private int minWidth -
minHeight
private int minHeight -
defaultChildLayoutSettings
-
-
Constructor Details
-
FrameWidget
public FrameWidget() -
FrameWidget
public FrameWidget(int p_253979_, int p_254090_, int p_253710_, int p_254169_)
-
-
Method Details
-
withMinDimensions
-
setMinDimensions
-
setMinHeight
-
setMinWidth
-
newChildLayoutSettings
-
defaultChildLayoutSetting
-
pack
public void pack() -
addChild
-
addChild
-
getContainedChildren
- Specified by:
getContainedChildren
in classAbstractContainerWidget
-
centerInRectangle
public static void centerInRectangle(AbstractWidget p_254089_, int p_253673_, int p_253715_, int p_254062_, int p_253910_) -
alignInRectangle
public static void alignInRectangle(AbstractWidget p_254017_, int p_253970_, int p_254417_, int p_253830_, int p_254349_, float p_253759_, float p_254234_) -
alignInDimension
-