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.CancellableThis 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 CrategetCrate()static org.bukkit.event.HandlerListgetHandlerList()org.bukkit.event.HandlerListgetHandlers()org.bukkit.LocationgetLocation()booleanisCancelled()voidsetCancelled(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:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
-