Class PhysicalCrateOpenEvent


  • public class PhysicalCrateOpenEvent
    extends CrateOpenEvent
    Event called after a physical crate is opened.
    • Constructor Detail

      • PhysicalCrateOpenEvent

        public PhysicalCrateOpenEvent​(org.bukkit.entity.Player who,
                                      org.bukkit.inventory.EquipmentSlot hand,
                                      org.bukkit.block.Block block,
                                      Crate crate,
                                      List<Reward> rewards)
    • 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