Package net.minecraft.client.gui.widget
Class ContainerWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ContainerWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,ParentElement
,Selectable
,Widget
- Direct Known Subclasses:
EntryListWidget
@Environment(CLIENT)
public abstract class ContainerWidget
extends ClickableWidget
implements ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/ContainerWidget
intermediary net/minecraft/class_9017
official fhy
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNavigationPath
(GuiNavigation navigation) final boolean
boolean
boolean
mouseClicked
(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.boolean
mouseDragged
(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured.boolean
mouseReleased
(double mouseX, double mouseY, int button) Callback for when a mouse button release event has been captured.final void
setDragging
(boolean dragging) void
setFocused
(boolean focused) void
setFocused
(@Nullable Element focused) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendClickableNarrations, appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getTooltip, getType, getWidth, getX, getY, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, renderWidget, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
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.Element
getNavigationFocus, isMouseOver, mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, children, getFocusedPath, hoveredElement, keyPressed, keyReleased, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
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
Lfhy;a:Lfkc;
-
dragging
private 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 b
Lfhy;b: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>
Lfie;<init>(IIIILwy;)V
-
-
Method Details
-
isDragging
public final boolean isDragging()- Specified by:
isDragging
in interfaceParentElement
- 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 aI_
Lfkb;aI_()Z
-
setDragging
public final void setDragging(boolean dragging) - Specified by:
setDragging
in interfaceParentElement
- 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_
Lfkb;b_(Z)V
-
getFocused
- Specified by:
getFocused
in interfaceParentElement
- 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 aJ_
Lfkb;aJ_()Lfkc;
-
setFocused
- Specified by:
setFocused
in interfaceParentElement
- 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
Lfkb;a(Lfkc;)V
-
mouseClicked
public 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 inGLFW
class.- Specified by:
mouseClicked
in interfaceElement
- Specified by:
mouseClicked
in interfaceParentElement
- Overrides:
mouseClicked
in classClickableWidget
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to 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
Lfkc;a(DDI)Z
-
mouseReleased
public 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 inGLFW
class.- Specified by:
mouseReleased
in interfaceElement
- Specified by:
mouseReleased
in interfaceParentElement
- Overrides:
mouseReleased
in classClickableWidget
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to 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
Lfkc;b(DDI)Z
-
mouseDragged
public 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 inGLFW
class.- Specified by:
mouseDragged
in interfaceElement
- Specified by:
mouseDragged
in interfaceParentElement
- Overrides:
mouseDragged
in classClickableWidget
- Parameters:
mouseX
- the current X coordinate of the mousemouseY
- the current Y coordinate of the mousebutton
- the mouse button numberdeltaX
- the difference of the current X with the previous X coordinatedeltaY
- the difference of the current Y with the previous Y coordinate- Returns:
true
to 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
Lfkc;a(DDIDD)Z
-
isFocused
public boolean isFocused()- Specified by:
isFocused
in interfaceElement
- Specified by:
isFocused
in interfaceParentElement
- Overrides:
isFocused
in classClickableWidget
- 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 aK_
Lfkc;aK_()Z
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocused
in interfaceElement
- Specified by:
setFocused
in interfaceParentElement
- Overrides:
setFocused
in classClickableWidget
- 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
Lfkc;a(Z)V
-