Package net.minecraft.client.gui
Class FocusableGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.FocusableGui
-
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
- Direct Known Subclasses:
AbstractList
,Screen
,ScrollPanel
public abstract class FocusableGui extends AbstractGui implements INestedGuiEventHandler
-
-
Field Summary
Fields Modifier and Type Field Description private IGuiEventListener
focused
private boolean
isDragging
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description FocusableGui()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IGuiEventListener
getFocused()
boolean
isDragging()
void
setDragging(boolean p_231037_1_)
void
setFocused(IGuiEventListener p_231035_1_)
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
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.IGuiEventListener
isMouseOver, mouseMoved
-
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, children, getChildAt, keyPressed, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
Field Detail
-
focused
@Nullable private IGuiEventListener focused
-
isDragging
private boolean isDragging
-
-
Method Detail
-
isDragging
public final boolean isDragging()
- Specified by:
isDragging
in interfaceINestedGuiEventHandler
-
setDragging
public final void setDragging(boolean p_231037_1_)
- Specified by:
setDragging
in interfaceINestedGuiEventHandler
-
getFocused
@Nullable public IGuiEventListener getFocused()
- Specified by:
getFocused
in interfaceINestedGuiEventHandler
-
setFocused
public void setFocused(@Nullable IGuiEventListener p_231035_1_)
- Specified by:
setFocused
in interfaceINestedGuiEventHandler
-
-