Class BlockBreakDomainEvent

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

    public final class BlockBreakDomainEvent
    extends BaseBlock
    implements org.bukkit.event.Cancellable
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockBreakDomainEvent​(work.torp.domain.domainblock.DomainBlock domainBlock, org.bukkit.block.Block block, org.bukkit.entity.Player player)
      BlockBreakDomainEvent This event is called when a block is broken inside a Domain field
    • Constructor Detail

      • BlockBreakDomainEvent

        public BlockBreakDomainEvent​(work.torp.domain.domainblock.DomainBlock domainBlock,
                                     org.bukkit.block.Block block,
                                     org.bukkit.entity.Player player)
        BlockBreakDomainEvent This event is called when a block is broken inside a Domain field
        Parameters:
        domainBlock - The domain block where the block is being broken
        block - The block that is being broken
        player - The player that broke the block (null if not a player)
    • Method Detail

      • getDomainBlock

        public work.torp.domain.domainblock.DomainBlock getDomainBlock()
      • getPlayer

        public org.bukkit.entity.Player getPlayer()
      • getCancelReason

        public java.lang.String getCancelReason()
      • setCancelReason

        public void setCancelReason​(java.lang.String cancelReason)
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface org.bukkit.event.Cancellable
      • setCancelled

        public void setCancelled​(boolean cancel)
        Specified by:
        setCancelled in interface org.bukkit.event.Cancellable