Package com.hazebyte.crate.api.event
Class CratePlaceEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.hazebyte.crate.api.event.CratePlaceEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CratePlaceEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Called when a player places a Supply Crate.CrateType.SUPPLY
-
-
Constructor Summary
Constructors Constructor Description CratePlaceEvent(Crate crate, org.bukkit.entity.Player player, org.bukkit.block.Block block)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bukkit.block.Block
getBlock()
Crate
getCrate()
static org.bukkit.event.HandlerList
getHandlerList()
org.bukkit.event.HandlerList
getHandlers()
org.bukkit.entity.Player
getPlayer()
boolean
isCancelled()
void
setCancelled(boolean cancel)
-
-
-
Constructor Detail
-
CratePlaceEvent
public CratePlaceEvent(Crate crate, org.bukkit.entity.Player player, org.bukkit.block.Block block)
-
-
Method Detail
-
getCrate
public Crate getCrate()
-
getPlayer
public org.bukkit.entity.Player getPlayer()
-
getBlock
public org.bukkit.block.Block getBlock()
-
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
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-
-