Package | Description |
---|---|
net.risingworld.api.events.player.gui | |
net.risingworld.api.gui | |
net.risingworld.api.objects |
Modifier and Type | Method and Description |
---|---|
GuiElement |
PlayerGuiElementClickEvent.getGuiElement()
Gets the gui element the player has clicked.
|
GuiElement |
PlayerGuiInputEvent.getGuiElement()
Gets the gui element.
|
Constructor and Description |
---|
PlayerGuiElementClickEvent(Player player,
GuiElement guiElement,
boolean doubleClick,
int mouseButton,
float mouseXAbs,
float mouseYAbs,
float mouseXRel,
float mouseYRel) |
PlayerGuiInputEvent(Player player,
GuiElement guiElement,
java.lang.String text) |
Modifier and Type | Class and Description |
---|---|
class |
GuiFileBrowser
A file browser gui element which enables the player to browse his files.
|
class |
GuiImage
An image gui element (which can display custom images).
|
class |
GuiLabel
A gui label / text element.
|
class |
GuiPaintable
Deprecated.
DO NOT USE THIS CLASS
|
class |
GuiPanel |
class |
GuiTextField
A text field gui element, which allows the player to enter some text.
|
Modifier and Type | Method and Description |
---|---|
GuiElement |
GuiElement.getParent()
Gets the parent of this element.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<GuiElement> |
GuiElement.getChildren()
Returns a list of all children which were added to this element.
|
Modifier and Type | Method and Description |
---|---|
void |
GuiElement.addChild(GuiElement child)
Attaches another gui element as "child" to this element.
|
void |
GuiElement.removeChild(GuiElement child)
Removes, i.e. detaches a child element.
|
Modifier and Type | Method and Description |
---|---|
void |
Player.addGuiElement(GuiElement guiElement)
Attaches a GUI element to the player's hud.
|
void |
Player.addGuiElement(GuiElement guiElement,
java.lang.String parent)
Attaches a GUI element to the player's screen.
|
void |
Player.removeGuiElement(GuiElement guiElement)
Removes a GUI element from the player's hud.
|
void |
Player.setGuiElementVisible(GuiElement element,
boolean visible)
Changes the visibility of the GUI element only for this player.
|