Package com.yottabyte.crates.api.event
Class PhysicalCrateOpenEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- org.bukkit.event.player.PlayerEvent
-
- com.yottabyte.crates.api.event.CrateOpenEvent
-
- com.yottabyte.crates.api.event.PhysicalCrateOpenEvent
-
public class PhysicalCrateOpenEvent extends CrateOpenEvent
Event called after a physical crate is opened.
-
-
Constructor Summary
Constructors Constructor Description PhysicalCrateOpenEvent(org.bukkit.entity.Player who, org.bukkit.inventory.EquipmentSlot hand, org.bukkit.block.Block block, Crate crate, List<Reward> rewards)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull org.bukkit.inventory.EquipmentSlot
getHand()
Gets the hand of the player used to open the crate.@NotNull org.bukkit.inventory.ItemStack
getItemInHand()
Gets the crate key item used to open the crate.-
Methods inherited from class com.yottabyte.crates.api.event.CrateOpenEvent
getBlock, getCrate, getHandlerList, getHandlers, getRewards
-
-
-
-
Method Detail
-
getHand
@NotNull public @NotNull org.bukkit.inventory.EquipmentSlot getHand()
Gets the hand of the player used to open the crate.- Returns:
- the hand of the player used to open the crate
-
getItemInHand
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItemInHand()
Gets the crate key item used to open the crate.- Returns:
- the crate key item used to open the crate
-
-