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

    Modifier and Type
    Method
    Description
    double
    getHeight(boolean total)
     
    double
     
    default boolean
    isHovered(double mouseX, double mouseY)
     
    boolean
    isHovered(double mouseX, double mouseY, boolean includeSubItems)
    default boolean
     

    Methods inherited from interface org.rusherhack.core.interfaces.IClickable

    mouseClicked, mouseReleased

    Methods inherited from interface org.rusherhack.client.api.render.IRenderable2D

    getFontRenderer, getRenderer, render, render

    Methods 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)
      Parameters:
      mouseX - mouse x position
      mouseY - mouse y position
      includeSubItems - 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:
      isHovered in interface org.rusherhack.core.interfaces.IHoverable
    • isVisible

      default boolean isVisible()