Package com.hazebyte.crate.api.event
Class CrateRewardEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.hazebyte.crate.api.event.CrateRewardEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CrateRewardEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Called when a player opens a crate.
-
-
Constructor Summary
Constructors Constructor Description CrateRewardEvent(Crate crate, org.bukkit.entity.Player player, org.bukkit.Location location, List<Reward> rewards)
-
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()
org.bukkit.entity.Player
getPlayer()
List<Reward>
getRewards()
boolean
isCancelled()
void
setCancelled(boolean cancelled)
-
-
-
Method Detail
-
getPlayer
public org.bukkit.entity.Player getPlayer()
-
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 cancelled)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
-