Interface IPanelItem
- All Superinterfaces:
org.rusherhack.core.interfaces.IClickable,org.rusherhack.core.interfaces.IHoverable,IRenderable2D,org.rusherhack.core.interfaces.ITypeable
- All Known Implementing Classes:
PanelItemBase
public interface IPanelItem
extends IRenderable2D, org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.ITypeable
-
Method Summary
Methods inherited from interface org.rusherhack.core.interfaces.IClickable
mouseClicked, mouseReleasedMethods inherited from interface org.rusherhack.client.api.render.IRenderable2D
getFontRenderer, getRenderer, render, renderMethods inherited from interface org.rusherhack.core.interfaces.ITypeable
charTyped, keyTyped
-
Method Details
-
getWidth
double getWidth() -
getHeight
double getHeight(boolean total) -
isHovered
boolean isHovered(double mouseX, double mouseY, boolean includeSubItems) Alternative forisHovered(double, double)- Parameters:
mouseX- mouse x positionmouseY- mouse y positionincludeSubItems- whether or not to include sub items in height calculation- Returns:
- whether or not the mouse is hovering over this item
-
isHovered
default boolean isHovered(double mouseX, double mouseY) - Specified by:
isHoveredin interfaceorg.rusherhack.core.interfaces.IHoverable
-
isVisible
default boolean isVisible()
-