Class 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)
)
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the mouse button that is actuated.boolean
Gets whether the mouse button was pressed or released.Methods inherited from class net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Method Details
-
getButton
Gets the mouse button that is actuated.- Returns:
- the mouse button.
- See Also:
-
isPressed
public boolean isPressed()Gets whether the mouse button was pressed or released.- Returns:
- true if the mouse button was pressed, false if it was released.
-