Class NexoBlockPlaceEvent

  • All Implemented Interfaces:
    org.bukkit.event.Cancellable

    
    public class NexoBlockPlaceEvent
    extends Event implements Cancellable
                        
    • Constructor Detail

      • NexoBlockPlaceEvent

        NexoBlockPlaceEvent(CustomBlockMechanic mechanic, Block block, Player player, ItemStack itemInHand, EquipmentSlot hand)
    • Method Detail

      • getBlock

         final Block getBlock()
        Returns:

        The block that was broken

      • getPlayer

         final Player getPlayer()
        Returns:

        The player who broke this block

      • getItemInHand

         final ItemStack getItemInHand()

        Gets the item in the player's hand when they placed the furniture.

        Returns:

        The ItemStack for the item in the player's hand when they placed the furniture

      • getHand

         final EquipmentSlot getHand()

        Gets the hand used to place the furniture.

        Returns:

        The EquipmentSlot for the hand used to place the furniture