Package dev.cerus.maps.api.event
Class PlayerClickScreenEvent
java.lang.Object
org.bukkit.event.Event
dev.cerus.maps.api.event.PlayerClickScreenEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PlayerClickScreenEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Called when a player clicks a map screen
Note: This is only called if the maps plugin is installed and click listening is enabled.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerClickScreenEvent(org.bukkit.entity.Player who, boolean async, MapScreen clickedScreen, Vec2 clickPos, boolean rightClick)
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
boolean
boolean
boolean
void
setCancelled(boolean cancel)
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerClickScreenEvent
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getPlayer
public org.bukkit.entity.Player getPlayer() -
getClickedScreen
-
getClickPos
-
isRightClick
public boolean isRightClick() -
isLeftClick
public boolean isLeftClick() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-