Class AbstractContainerEventHandler
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,TabOrderedElement
- Direct Known Subclasses:
Screen
,ScrollPanel
,TabNavigationBar
-
Field Summary
FieldsFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final void
setDragging
(boolean pDragging) Sets if the GUI element is dragging or not.void
setFocused
(GuiEventListener pListener) Sets the focus state of the GUI element.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, isFocused, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
focused
-
isDragging
private boolean isDragging
-
-
Constructor Details
-
AbstractContainerEventHandler
public AbstractContainerEventHandler()
-
-
Method Details
-
isDragging
public final boolean isDragging()- Specified by:
isDragging
in interfaceContainerEventHandler
-
setDragging
public final void setDragging(boolean pDragging) Sets if the GUI element is dragging or not.- Specified by:
setDragging
in interfaceContainerEventHandler
- Parameters:
pDragging
- the dragging state of the GUI element.
-
getFocused
- Specified by:
getFocused
in interfaceContainerEventHandler
-
setFocused
Sets the focus state of the GUI element.- Specified by:
setFocused
in interfaceContainerEventHandler
- Parameters:
pListener
- the focused GUI element.
-