Class NexoFurniturePlaceEvent

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

    
    public final class NexoFurniturePlaceEvent
    extends Event implements Cancellable
                        
    • Constructor Detail

      • NexoFurniturePlaceEvent

        NexoFurniturePlaceEvent(FurnitureMechanic mechanic, Block block, ItemDisplay baseEntity, Player player, ItemStack itemInHand, EquipmentSlot hand)
    • Method Detail

      • getBlock

         final Block getBlock()
        Returns:

        The block this furniture was placed at

      • getBaseEntity

         final ItemDisplay getBaseEntity()
        Returns:

        The item frame for this furniture

      • getPlayer

         final Player getPlayer()
        Returns:

        The player who placed this furniture

      • 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 hand used to place the furniture