public interface IInteractionElement extends IGuiElement
| Modifier and Type | Method and Description |
|---|---|
default boolean |
onKeyPress(char typedChar,
int keyCode)
This is called EVEN IF the mouse is not inside your width and height!
|
default void |
onMouseClicked(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
default void |
onMouseDragged(int button,
long ticksSinceClick)
This is called EVEN IF the mouse is not inside your width and height!
|
default void |
onMouseReleased(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
addHelpElements, addToolTips, drawBackground, drawForeground, getDebugInfo, getThisAndChildrenAt, tickasImmutable, contains, contains, contains, create, create, create, expand, expand, expand, expand, getCenter, getCenterTop, getCenterX, getCenterY, getEnd, getEndX, getEndY, getHeight, getPosition, getWidth, offset, offset, offset, offset, offset, offsetToOrigin, rectangleToString, resize, resizegetX, getYdefault void onMouseClicked(int button)
default void onMouseDragged(int button,
long ticksSinceClick)
default void onMouseReleased(int button)
default boolean onKeyPress(char typedChar,
int keyCode)
escape and
this returns true then the gui won't be closed). It is highly recommended that you close something
if escape is pressed.