Package com.hazebyte.crate.api.event
Class CrateGiveEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.hazebyte.crate.api.event.CrateGiveEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CrateGiveEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Represents an event that is called when a user gives a crate to a player.
-
-
Constructor Summary
Constructors Constructor Description CrateGiveEvent(org.bukkit.command.CommandSender sender, org.bukkit.OfflinePlayer player, Crate crate, int amount, boolean sendAll)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAmount()
Crate
getCrate()
static org.bukkit.event.HandlerList
getHandlerList()
org.bukkit.event.HandlerList
getHandlers()
org.bukkit.command.CommandSender
getSender()
org.bukkit.OfflinePlayer
getTarget()
boolean
isCancelled()
boolean
isSentToAll()
void
setCancelled(boolean cancelled)
-
-
-
Constructor Detail
-
CrateGiveEvent
public CrateGiveEvent(org.bukkit.command.CommandSender sender, org.bukkit.OfflinePlayer player, Crate crate, int amount, boolean sendAll)
-
-
Method Detail
-
getSender
public org.bukkit.command.CommandSender getSender()
-
getTarget
public org.bukkit.OfflinePlayer getTarget()
-
getCrate
public Crate getCrate()
-
getAmount
public int getAmount()
-
isSentToAll
public boolean isSentToAll()
-
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
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-
-