Interface HudElement


public interface HudElement
One HUD element, positioned in GUI-scaled pixels.
  • Method Details

    • module

      GuiModule module()
    • x

      double x()
    • y

      double y()
    • width

      double width()
    • height

      double height()
    • isEnabled

      boolean isEnabled()
    • isDragging

      boolean isDragging()
    • anchorX

      default double anchorX()
      Returns:
      Where along its width the element is held to the screen: 0 for its left edge, 0.5 for its center and 1 for its right edge
    • anchorY

      default double anchorY()
      Returns:
      Where along its height the element is held to the screen: 0 for its top edge, 0.5 for its center and 1 for its bottom edge
    • link

      default HudLink link()
      Returns:
      The element's attachment to another element, or null if it has none. While dragging, the attachment dropping it now would make.