Class TBlankElement
java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.TElement
io.github.thecsdev.tcdcommons.api.client.gui.other.TBlankElement
- All Implemented Interfaces:
TParentElement
,ITooltipProvider
,IEnableStateProvider
- Direct Known Subclasses:
TEntityRendererElement
,TFillColorElement
,TLabelElement
,TTextureElement
A
TElement
that is typically used for purely-visual purposes,
and has no functionality in terms of handling user input.-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
TElement.TElementEvent_ChildAR, TElement.TElementEvent_ContextMenu, TElement.TElementEvent_Moved, TElement.TElementEvent_ParentChanged, TElement.TElementEvent_Resized
-
Field Summary
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
alpha, eChildAdded, eChildRemoved, eContextMenu, eMoved, eParentChanged, eResized, height, SP_ALL, SP_INVOKE_EVENT, SP_MOVE_CHILDREN, SP_RELATIVE, SP_UPDATE_TOPMOST, SS_ALL, SS_INVOKE_EVENT, SS_UPDATE_TOPMOST, tooltip, tooltipPositioner, width, x, y, zOffset
Fields inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
MAX_CHILD_NESTING_DEPTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
input
(TInputContext inputContext) An input handler that handles inputs on theTInputContext.InputDiscoveryPhase.MAIN
input phase.boolean
input
(TInputContext inputContext, TInputContext.InputDiscoveryPhase inputPhase) An input handler that handles inputs on all possibleTInputContext.InputDiscoveryPhase
s.boolean
boolean
void
render
(TDrawContext pencil) Renders this GUI element on the screen.Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
canBeAddedTo, createContextMenu, getAlpha, getChildren, getEnabled, getHeight, getItemRenderer, getParent, getParentTElement, getParentTScreen, getTextRenderer, getTooltip, getTooltipPositioner, getWidth, getX, getY, getZIndex, getZOffset, isDragging, isEnabled, isEnabledAndVisible, isFocused, isFocusedOrHovered, isHovered, isVisible, move, moveChildren, next, postRender, previous, setAlpha, setPosition, setPosition, setSize, setSize, setTooltip, setZOffset, tick, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
addChild, addChild, clearChildren, findChild, findLastChild, findParent, findParentTElement, forEachChild, getEndX, getEndY, removeChild, removeChild
-
Constructor Details
-
TBlankElement
public TBlankElement(int x, int y, int width, int height)
-
-
Method Details
-
isHoverable
public boolean isHoverable()- Overrides:
isHoverable
in classTElement
-
isFocusable
public boolean isFocusable()- Overrides:
isFocusable
in classTElement
-
render
Description copied from interface:TParentElement
Renders this GUI element on the screen.- Specified by:
render
in interfaceTParentElement
- Specified by:
render
in classTElement
- Parameters:
pencil
- TheTDrawContext
.
-
input
Description copied from interface:TParentElement
An input handler that handles inputs on all possibleTInputContext.InputDiscoveryPhase
s.- Parameters:
inputContext
- TheTInputContext
containing information about a given input.inputPhase
- The currentTInputContext.InputDiscoveryPhase
.- See Also:
-
input
Description copied from interface:TParentElement
An input handler that handles inputs on theTInputContext.InputDiscoveryPhase.MAIN
input phase.- Specified by:
input
in interfaceTParentElement
- Overrides:
input
in classTElement
- Parameters:
inputContext
- TheTInputContext
containing information about a given input.- See Also:
-