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 Summary
Modifier and TypeMethodDescriptionelements()guides()doublemargin()booleanmouseClicked(GuiMouseEvent event) Passes a press to the enabled element under the mouse.voidmouseReleased(GuiMouseEvent event) Ends any drag.
-
Method Details
-
elements
List<HudElement> elements()- Returns:
- Every HUD element, enabled or not
-
mouseClicked
Passes a press to the enabled element under the mouse.- Returns:
- Whether an element took it
-
mouseReleased
Ends any drag. -
margin
double margin()- Returns:
- Space HUD elements keep from the screen edges, in GUI-scaled pixels
-
guides
-