Package net.minecraft.client.gui.widget
Class ContainerWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ScrollableWidget
net.minecraft.client.gui.widget.ContainerWidget
- All Implemented Interfaces:
- Drawable,- Element,- Narratable,- Navigable,- ParentElement,- Selectable,- Widget
- Direct Known Subclasses:
- EntryListWidget,- ExperimentsScreen.ExperimentsListWidget
@Environment(CLIENT)
public abstract class ContainerWidget
extends ScrollableWidget
implements ParentElement
- Mappings:
- Namespace - Name - named - net/minecraft/client/gui/widget/ContainerWidget- intermediary - net/minecraft/class_9017- official - fok
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanFields inherited from class net.minecraft.client.gui.widget.ScrollableWidgetSCROLLBAR_WIDTHFields inherited from class net.minecraft.client.gui.widget.ClickableWidgetactive, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetNavigationPath(GuiNavigation navigation) final booleanbooleanbooleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured.booleanmouseReleased(double mouseX, double mouseY, int button) Callback for when a mouse button release event has been captured.final voidsetDragging(boolean dragging) voidsetFocused(boolean focused) voidsetFocused(@Nullable Element focused) Methods inherited from class net.minecraft.client.gui.widget.ScrollableWidgetcheckScrollbarDragged, drawScrollbar, getContentsHeightWithPadding, getDeltaYPerScroll, getMaxScrollY, getScrollbarThumbHeight, getScrollbarThumbY, getScrollbarX, getScrollY, mouseScrolled, onRelease, overflows, refreshScroll, setScrollYMethods inherited from class net.minecraft.client.gui.widget.ClickableWidgetappendClickableNarrations, appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getTooltip, getType, getWidth, getX, getY, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, onClick, onDrag, playClickSound, playDownSound, render, renderWidget, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementgetBorder, getNavigationFocus, isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElementcharTyped, children, getFocusedPath, hoveredElement, keyPressed, keyReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.SelectablegetNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.WidgetsetPosition
- 
Field Details- 
focusedElement- Mappings:
- Namespace - Name - Mixin selector - named - focusedElement- Lnet/minecraft/client/gui/widget/ContainerWidget;focusedElement:Lnet/minecraft/client/gui/Element;- intermediary - field_47551- Lnet/minecraft/class_9017;field_47551:Lnet/minecraft/class_364;- official - a- Lfok;a:Lfqr;
 
- 
draggingprivate boolean dragging- Mappings:
- Namespace - Name - Mixin selector - named - dragging- Lnet/minecraft/client/gui/widget/ContainerWidget;dragging:Z- intermediary - field_47552- Lnet/minecraft/class_9017;field_47552:Z- official - c- Lfok;c:Z
 
 
- 
- 
Constructor Details- 
ContainerWidget- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/gui/widget/ClickableWidget;<init>(IIIILnet/minecraft/text/Text;)V- intermediary - <init>- Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)V- official - <init>- Lfos;<init>(IIIILwp;)V
 
 
- 
- 
Method Details- 
isDraggingpublic final boolean isDragging()- Specified by:
- isDraggingin interface- ParentElement
- Mappings:
- Namespace - Name - Mixin selector - named - isDragging- Lnet/minecraft/client/gui/ParentElement;isDragging()Z- intermediary - method_25397- Lnet/minecraft/class_4069;method_25397()Z- official - aK_- Lfqq;aK_()Z
 
- 
setDraggingpublic final void setDragging(boolean dragging) - Specified by:
- setDraggingin interface- ParentElement
- Mappings:
- Namespace - Name - Mixin selector - named - setDragging- Lnet/minecraft/client/gui/ParentElement;setDragging(Z)V- intermediary - method_25398- Lnet/minecraft/class_4069;method_25398(Z)V- official - b_- Lfqq;b_(Z)V
 
- 
getFocused- Specified by:
- getFocusedin interface- ParentElement
- Mappings:
- Namespace - Name - Mixin selector - named - getFocused- Lnet/minecraft/client/gui/ParentElement;getFocused()Lnet/minecraft/client/gui/Element;- intermediary - method_25399- Lnet/minecraft/class_4069;method_25399()Lnet/minecraft/class_364;- official - aL_- Lfqq;aL_()Lfqr;
 
- 
setFocused- Specified by:
- setFocusedin interface- ParentElement
- Mappings:
- Namespace - Name - Mixin selector - named - setFocused- Lnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)V- intermediary - method_25395- Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)V- official - a- Lfqq;a(Lfqr;)V
 
- 
mouseClickedpublic boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
- mouseClickedin interface- Element
- Specified by:
- mouseClickedin interface- ParentElement
- Overrides:
- mouseClickedin class- ClickableWidget
- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - mouseClicked- Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z- intermediary - method_25402- Lnet/minecraft/class_364;method_25402(DDI)Z- official - a- Lfqr;a(DDI)Z
 
- 
mouseReleasedpublic boolean mouseReleased(double mouseX, double mouseY, int button) Callback for when a mouse button release event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
- mouseReleasedin interface- Element
- Specified by:
- mouseReleasedin interface- ParentElement
- Overrides:
- mouseReleasedin class- ClickableWidget
- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - mouseReleased- Lnet/minecraft/client/gui/Element;mouseReleased(DDI)Z- intermediary - method_25406- Lnet/minecraft/class_364;method_25406(DDI)Z- official - b- Lfqr;b(DDI)Z
 
- 
mouseDraggedpublic boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
- mouseDraggedin interface- Element
- Specified by:
- mouseDraggedin interface- ParentElement
- Overrides:
- mouseDraggedin class- ScrollableWidget
- Parameters:
- mouseX- the current X coordinate of the mouse
- mouseY- the current Y coordinate of the mouse
- button- the mouse button number
- deltaX- the difference of the current X with the previous X coordinate
- deltaY- the difference of the current Y with the previous Y coordinate
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - mouseDragged- Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z- intermediary - method_25403- Lnet/minecraft/class_364;method_25403(DDIDD)Z- official - a- Lfqr;a(DDIDD)Z
 
- 
isFocusedpublic boolean isFocused()- Specified by:
- isFocusedin interface- Element
- Specified by:
- isFocusedin interface- ParentElement
- Overrides:
- isFocusedin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - isFocused- Lnet/minecraft/client/gui/Element;isFocused()Z- intermediary - method_25370- Lnet/minecraft/class_364;method_25370()Z- official - aM_- Lfqr;aM_()Z
 
- 
setFocusedpublic void setFocused(boolean focused) - Specified by:
- setFocusedin interface- Element
- Specified by:
- setFocusedin interface- ParentElement
- Overrides:
- setFocusedin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - setFocused- Lnet/minecraft/client/gui/Element;setFocused(Z)V- intermediary - method_25365- Lnet/minecraft/class_364;method_25365(Z)V- official - a- Lfqr;a(Z)V
 
 
-