@Environment(value=CLIENT) public abstract class AbstractParentElement extends DrawableHelper implements ParentElement
Modifier and Type | Field and Description |
---|---|
private boolean |
dragging |
private Element |
focused |
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
AbstractParentElement() |
Modifier and Type | Method and Description |
---|---|
Element |
getFocused() |
boolean |
isDragging() |
void |
setDragging(boolean dragging) |
void |
setFocused(Element focused) |
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, children, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
isMouseOver, mouseMoved
public final boolean isDragging()
isDragging
in interface ParentElement
public final void setDragging(boolean dragging)
setDragging
in interface ParentElement
@Nullable public Element getFocused()
getFocused
in interface ParentElement
public void setFocused(@Nullable Element focused)
setFocused
in interface ParentElement