Klasse PlayerMouseButtonEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.PlayerMouseButtonEvent
Called when a player presses or releases a mouse button. To receive this event,
make sure to enable mouse input for the player first (see
Example: Listen for mouse button input
Player.setListenForMouseInput(boolean)
)
- Siehe auch:
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the mouse button that is actuated.boolean
Gets whether the mouse button was pressed or released.Von Klasse geerbte Methoden net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Methodendetails
-
getButton
Gets the mouse button that is actuated.- Gibt zurück:
- the mouse button.
- Siehe auch:
-
isPressed
public boolean isPressed()Gets whether the mouse button was pressed or released.- Gibt zurück:
- true if the mouse button was pressed, false if it was released.
-