Package net.minecraft.client.gui
Class AbstractParentElement
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
- All Implemented Interfaces:
Element
,ParentElement
- Direct Known Subclasses:
EntryListWidget
,Screen
@Environment(CLIENT) public abstract class AbstractParentElement extends DrawableHelper implements ParentElement
-
Field Summary
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description AbstractParentElement()
-
Method Summary
Modifier and Type Method Description Element
getFocused()
boolean
isDragging()
void
setDragging(boolean dragging)
void
setFocused(Element focused)
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
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.Element
isMouseOver, mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, children, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
focused
-
dragging
private boolean dragging
-
-
Constructor Details
-
AbstractParentElement
public AbstractParentElement()
-
-
Method Details
-
isDragging
public final boolean isDragging()- Specified by:
isDragging
in interfaceParentElement
-
setDragging
public final void setDragging(boolean dragging)- Specified by:
setDragging
in interfaceParentElement
-
getFocused
- Specified by:
getFocused
in interfaceParentElement
-
setFocused
- Specified by:
setFocused
in interfaceParentElement
-