Interface HudEditor


public interface HudEditor
The HUD elements while the HUD editor is open. The HUD draws them beneath the editor's view, and dragged elements follow the mouse on their own, snapping to the screen and to other elements. A left click on an element starts dragging it and a right click turns it off.
  • Method Details

    • elements

      List<HudElement> elements()
      Returns:
      Every HUD element, enabled or not
    • mouseClicked

      boolean mouseClicked(GuiMouseEvent event)
      Passes a press to the enabled element under the mouse.
      Returns:
      Whether an element took it
    • mouseReleased

      void mouseReleased(GuiMouseEvent event)
      Ends any drag.
    • margin

      double margin()
      Returns:
      Space HUD elements keep from the screen edges, in GUI-scaled pixels
    • guides

      default List<HudGuide> guides()
      Returns:
      What the element being dragged has snapped to right now