public class PlayerMapClickEvent extends PlayerEvent
| Constructor and Description |
|---|
PlayerMapClickEvent(Player player,
int mouseButton,
boolean doubleClick,
float worldpositionx,
float worldpositionz) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMouseButton()
Gets the mouse button.
|
float |
getWorldPositionX()
Gets the world position (x) of the clicked position on the map.
|
float |
getWorldPositionZ()
Gets the world position (z) of the clicked position on the map.
|
boolean |
isDoubleClick()
Gets whether or not the player double clicked the map.
|
getPlayerpublic PlayerMapClickEvent(Player player, int mouseButton, boolean doubleClick, float worldpositionx, float worldpositionz)
public float getWorldPositionX()
public float getWorldPositionZ()
public boolean isDoubleClick()
public int getMouseButton()