Uses of Class
net.risingworld.api.ui.UIElement
Package
Description
-
Uses of UIElement in net.risingworld.api
Modifier and TypeMethodDescriptionstatic void
Internals.addUIElementToPlayer
(Player player, UIElement element, String target) Same asPlayer.addUIElement(net.risingworld.api.ui.UIElement)
, but allows you to set an arbitrary UI target (defined by the UI element path). -
Uses of UIElement in net.risingworld.api.events.player.ui
Modifier and TypeMethodDescriptionPlayerUIElementClickEvent.getUIElement()
Gets the UI element that was clicked. -
Uses of UIElement in net.risingworld.api.objects
Modifier and TypeMethodDescriptionvoid
Player.addUIElement
(UIElement element) Attaches a UI element to the player's HUD.void
Player.addUIElement
(UIElement element, UITarget target) Attaches a UI element to the player's screen (to a specific target, e.g HUD, inventory etc).void
Player.removeUIElement
(UIElement element) Removes a UI element from the player's screen. -
Uses of UIElement in net.risingworld.api.ui
Modifier and TypeClassDescriptionclass
Represents a label.class
Represents a UI mesh.class
A simplified version of theUIMesh
element.class
Represents a text field, i.e an element where the player can enter text.Modifier and TypeMethodDescriptionUIElement.getParent()
Gets the current parent UI element, or null if this element has no parent.Modifier and TypeMethodDescriptionUIElement.getChilds()
Gets an unmodifiable list of all children of this element.Modifier and TypeMethodDescriptionvoid
Attaches an UIElement as "child" to this element.void
UIElement.removeChild
(UIElement child) Removes a child from this element.