Class NexoChorusBlockDamageEvent

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

    
    public final class NexoChorusBlockDamageEvent
    extends NexoBlockDamageEvent
                        

    Event fired right before a player damages a NoteBlock. If cancelled, the block will not be damaged.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ChorusBlockMechanic getMechanic()
      • Methods inherited from class com.nexomc.nexo.api.events.custom_block.NexoBlockDamageEvent

        getBlock, getHandlers, getPlayer, isCancelled, setCancelled
      • Methods inherited from class org.bukkit.event.Event

        callEvent, getEventName, isAsynchronous
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NexoChorusBlockDamageEvent

        NexoChorusBlockDamageEvent(ChorusBlockMechanic mechanic, Block block, Player player)
        Parameters:
        mechanic - The CustomBlockMechanic of this block
        block - The block that was damaged
        player - The player who damaged this block