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/ContainerWidgetintermediary net/minecraft/class_9017official fie
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier 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.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, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getNavigationFocus, isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, children, getFocusedPath, hoveredElement, keyPressed, keyReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
focusedElement
- Mappings:
Namespace Name Mixin selector named focusedElementLnet/minecraft/client/gui/widget/ContainerWidget;focusedElement:Lnet/minecraft/client/gui/Element;intermediary field_47551Lnet/minecraft/class_9017;field_47551:Lnet/minecraft/class_364;official aLfie;a:Lfki;
-
dragging
private boolean dragging- Mappings:
Namespace Name Mixin selector named draggingLnet/minecraft/client/gui/widget/ContainerWidget;dragging:Zintermediary field_47552Lnet/minecraft/class_9017;field_47552:Zofficial bLfie;b:Z
-
-
Constructor Details
-
ContainerWidget
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/widget/ClickableWidget;<init>(IIIILnet/minecraft/text/Text;)Vintermediary <init>Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)Vofficial <init>Lfik;<init>(IIIILwz;)V
-
-
Method Details
-
isDragging
public final boolean isDragging()- Specified by:
isDraggingin interfaceParentElement- Mappings:
Namespace Name Mixin selector named isDraggingLnet/minecraft/client/gui/ParentElement;isDragging()Zintermediary method_25397Lnet/minecraft/class_4069;method_25397()Zofficial aM_Lfkh;aM_()Z
-
setDragging
public final void setDragging(boolean dragging) - Specified by:
setDraggingin interfaceParentElement- Mappings:
Namespace Name Mixin selector named setDraggingLnet/minecraft/client/gui/ParentElement;setDragging(Z)Vintermediary method_25398Lnet/minecraft/class_4069;method_25398(Z)Vofficial b_Lfkh;b_(Z)V
-
getFocused
- Specified by:
getFocusedin interfaceParentElement- Mappings:
Namespace Name Mixin selector named getFocusedLnet/minecraft/client/gui/ParentElement;getFocused()Lnet/minecraft/client/gui/Element;intermediary method_25399Lnet/minecraft/class_4069;method_25399()Lnet/minecraft/class_364;official aN_Lfkh;aN_()Lfki;
-
setFocused
- Specified by:
setFocusedin interfaceParentElement- Mappings:
Namespace Name Mixin selector named setFocusedLnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)Vintermediary method_25395Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)Vofficial aLfkh;a(Lfki;)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 inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Specified by:
mouseClickedin interfaceParentElement- Overrides:
mouseClickedin classClickableWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfki;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 inGLFWclass.- Specified by:
mouseReleasedin interfaceElement- Specified by:
mouseReleasedin interfaceParentElement- Overrides:
mouseReleasedin classClickableWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseReleasedLnet/minecraft/client/gui/Element;mouseReleased(DDI)Zintermediary method_25406Lnet/minecraft/class_364;method_25406(DDI)Zofficial bLfki;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 inGLFWclass.- Specified by:
mouseDraggedin interfaceElement- Specified by:
mouseDraggedin interfaceParentElement- Overrides:
mouseDraggedin 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:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseDraggedLnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Zintermediary method_25403Lnet/minecraft/class_364;method_25403(DDIDD)Zofficial aLfki;a(DDIDD)Z
-
isFocused
public boolean isFocused()- Specified by:
isFocusedin interfaceElement- Specified by:
isFocusedin interfaceParentElement- Overrides:
isFocusedin classClickableWidget- Mappings:
Namespace Name Mixin selector named isFocusedLnet/minecraft/client/gui/Element;isFocused()Zintermediary method_25370Lnet/minecraft/class_364;method_25370()Zofficial aO_Lfki;aO_()Z
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocusedin interfaceElement- Specified by:
setFocusedin interfaceParentElement- Overrides:
setFocusedin classClickableWidget- Mappings:
Namespace Name Mixin selector named setFocusedLnet/minecraft/client/gui/Element;setFocused(Z)Vintermediary method_25365Lnet/minecraft/class_364;method_25365(Z)Vofficial aLfki;a(Z)V
-