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 booleanfinal voidsetDragging(boolean pDragging) Sets if the GUI element is dragging or not.voidsetFocused(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, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, children, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMovedMethods 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:
isDraggingin interfaceContainerEventHandler
-
setDragging
public final void setDragging(boolean pDragging) Sets if the GUI element is dragging or not.- Specified by:
setDraggingin interfaceContainerEventHandler- Parameters:
pDragging- the dragging state of the GUI element.
-
getFocused
- Specified by:
getFocusedin interfaceContainerEventHandler
-
setFocused
Sets the focus state of the GUI element.- Specified by:
setFocusedin interfaceContainerEventHandler- Parameters:
pListener- the focused GUI element.
-