Class BlockSpreadDomainEvent

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

    public final class BlockSpreadDomainEvent
    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
      BlockSpreadDomainEvent​(org.bukkit.block.Block sourceBlock, org.bukkit.block.Block block)
      BlockSpreadDomainEvent This event is called when a block spreads
    • Constructor Detail

      • BlockSpreadDomainEvent

        public BlockSpreadDomainEvent​(org.bukkit.block.Block sourceBlock,
                                      org.bukkit.block.Block block)
        BlockSpreadDomainEvent This event is called when a block spreads
        Parameters:
        sourceBlock - The source block that is being spread
        block - The block that is spreading
    • Method Detail

      • 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