Package com.hazebyte.crate.api.event
Class CrateInteractEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.hazebyte.crate.api.event.CrateInteractEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CrateInteractEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Called when a player interacts with a crate.
-
-
Field Summary
Fields Modifier and Type Field Description protected CrateAction
action
protected Crate
crate
protected org.bukkit.Location
location
protected org.bukkit.entity.Player
player
protected org.bukkit.event.block.Action
rootAction
-
Constructor Summary
Constructors Constructor Description CrateInteractEvent(Crate crate, org.bukkit.entity.Player player, CrateAction action, org.bukkit.event.block.Action rootAction)
CrateInteractEvent(Crate crate, org.bukkit.entity.Player player, org.bukkit.Location location, CrateAction action, org.bukkit.event.block.Action rootAction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CrateAction
getAction()
Crate
getCrate()
static org.bukkit.event.HandlerList
getHandlerList()
org.bukkit.event.HandlerList
getHandlers()
org.bukkit.Location
getLocation()
org.bukkit.entity.Player
getPlayer()
org.bukkit.event.block.Action
getRootAction()
boolean
isCancelled()
void
setCancelled(boolean cancelled)
-
-
-
Field Detail
-
player
protected org.bukkit.entity.Player player
-
crate
protected Crate crate
-
location
protected org.bukkit.Location location
-
action
protected CrateAction action
-
rootAction
protected org.bukkit.event.block.Action rootAction
-
-
Constructor Detail
-
CrateInteractEvent
public CrateInteractEvent(Crate crate, org.bukkit.entity.Player player, CrateAction action, org.bukkit.event.block.Action rootAction)
-
CrateInteractEvent
public CrateInteractEvent(Crate crate, org.bukkit.entity.Player player, org.bukkit.Location location, CrateAction action, org.bukkit.event.block.Action rootAction)
-
-
Method Detail
-
getPlayer
public org.bukkit.entity.Player getPlayer()
-
getCrate
public Crate getCrate()
-
getLocation
public org.bukkit.Location getLocation()
-
getAction
public CrateAction getAction()
-
getRootAction
public org.bukkit.event.block.Action getRootAction()
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
-