Class AbstractContainerWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractContainerWidget
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
- Direct Known Subclasses:
AbstractSelectionList
public abstract class AbstractContainerWidget
extends AbstractWidget
implements ContainerEventHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionAbstractContainerWidget
(int p_310492_, int p_309402_, int p_313085_, int p_312513_, Component p_310986_) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
boolean
boolean
mouseClicked
(double p_312130_, double p_311814_, int p_312053_) boolean
mouseDragged
(double p_310748_, double p_313111_, int p_309710_, double p_312859_, double p_310378_) boolean
mouseReleased
(double p_311513_, double p_312630_, int p_310317_) nextFocusPath
(FocusNavigationEvent p_311207_) final void
setDragging
(boolean p_311596_) void
setFocused
(boolean p_310891_) void
setFocused
(GuiEventListener p_312828_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, renderWidget, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, updateWidgetNarration, visitWidgets, wrapDefaultNarrationMessage
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, children, getChildAt, getCurrentFocusPath, keyPressed, keyReleased, magicalSpecialHackyFocus, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
focused
-
isDragging
private boolean isDragging
-
-
Constructor Details
-
AbstractContainerWidget
public AbstractContainerWidget(int p_310492_, int p_309402_, int p_313085_, int p_312513_, Component p_310986_)
-
-
Method Details
-
isDragging
public final boolean isDragging()- Specified by:
isDragging
in interfaceContainerEventHandler
-
setDragging
public final void setDragging(boolean p_311596_) - Specified by:
setDragging
in interfaceContainerEventHandler
-
getFocused
- Specified by:
getFocused
in interfaceContainerEventHandler
-
setFocused
- Specified by:
setFocused
in interfaceContainerEventHandler
-
mouseClicked
public boolean mouseClicked(double p_312130_, double p_311814_, int p_312053_) - Specified by:
mouseClicked
in interfaceContainerEventHandler
- Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classAbstractWidget
-
mouseReleased
public boolean mouseReleased(double p_311513_, double p_312630_, int p_310317_) - Specified by:
mouseReleased
in interfaceContainerEventHandler
- Specified by:
mouseReleased
in interfaceGuiEventListener
- Overrides:
mouseReleased
in classAbstractWidget
-
mouseDragged
public boolean mouseDragged(double p_310748_, double p_313111_, int p_309710_, double p_312859_, double p_310378_) - Specified by:
mouseDragged
in interfaceContainerEventHandler
- Specified by:
mouseDragged
in interfaceGuiEventListener
- Overrides:
mouseDragged
in classAbstractWidget
-
isFocused
public boolean isFocused()- Specified by:
isFocused
in interfaceContainerEventHandler
- Specified by:
isFocused
in interfaceGuiEventListener
- Overrides:
isFocused
in classAbstractWidget
-
setFocused
public void setFocused(boolean p_310891_) - Specified by:
setFocused
in interfaceContainerEventHandler
- Specified by:
setFocused
in interfaceGuiEventListener
- Overrides:
setFocused
in classAbstractWidget
-