Package com.hazebyte.crate.api.event
Class CrateSetEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.hazebyte.crate.api.event.CrateSetEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CrateSetEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
This represents when a crate has been set to a location. This may be triggered via the API or through a user command.
-
-
Constructor Summary
Constructors Constructor Description CrateSetEvent(Crate crate, org.bukkit.Location location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Crate
getCrate()
static org.bukkit.event.HandlerList
getHandlerList()
org.bukkit.event.HandlerList
getHandlers()
org.bukkit.Location
getLocation()
boolean
isCancelled()
void
setCancelled(boolean cancel)
-
-
-
Constructor Detail
-
CrateSetEvent
public CrateSetEvent(Crate crate, org.bukkit.Location location)
-
-
Method Detail
-
getCrate
public Crate getCrate()
-
getLocation
public org.bukkit.Location getLocation()
-
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 cancel)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
-