public interface IContainingElement extends IInteractionElement
| Modifier and Type | Method and Description |
|---|---|
default void |
addHelpElements(java.util.List<ElementHelpInfo.HelpPosition> elements) |
default void |
addToolTips(java.util.List<ToolTip> tooltips)
Called to add tooltips to the list of existing tool tips.
|
default void |
calculateSizes()
Called after
getChildElements() is added to, possibly last (so it might not be called after every
addition). |
default IGuiPosition |
getChildElementPosition() |
java.util.List<IGuiElement> |
getChildElements() |
default java.util.List<IGuiElement> |
getThisAndChildrenAt(double x,
double y) |
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!
|
drawBackground, drawForeground, getDebugInfo, 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, getYjava.util.List<IGuiElement> getChildElements()
default IGuiPosition getChildElementPosition()
default void calculateSizes()
getChildElements() is added to, possibly last (so it might not be called after every
addition).default void addToolTips(java.util.List<ToolTip> tooltips)
IGuiElementThis is called EVEN IF the mouse is not inside your width and height!
addToolTips in interface IGuiElementaddToolTips in interface ITooltipElementdefault void addHelpElements(java.util.List<ElementHelpInfo.HelpPosition> elements)
addHelpElements in interface IGuiElementaddHelpElements in interface IHelpElementdefault java.util.List<IGuiElement> getThisAndChildrenAt(double x, double y)
getThisAndChildrenAt in interface IGuiElementdefault void onMouseClicked(int button)
IInteractionElementonMouseClicked in interface IInteractionElementdefault void onMouseReleased(int button)
IInteractionElementonMouseReleased in interface IInteractionElementdefault void onMouseDragged(int button,
long ticksSinceClick)
IInteractionElementonMouseDragged in interface IInteractionElementdefault boolean onKeyPress(char typedChar,
int keyCode)
IInteractionElementonKeyPress in interface IInteractionElementescape and
this returns true then the gui won't be closed). It is highly recommended that you close something
if escape is pressed.