Class BlockFromDomainEvent

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

    public final class BlockFromDomainEvent
    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
      BlockFromDomainEvent​(org.bukkit.block.Block sourceBlock, org.bukkit.block.Block block)
      BlockFromDomainEvent This event is called when water or lava flows from a Domain field
    • Constructor Detail

      • BlockFromDomainEvent

        public BlockFromDomainEvent​(org.bukkit.block.Block sourceBlock,
                                    org.bukkit.block.Block block)
        BlockFromDomainEvent This event is called when water or lava flows from a Domain field
        Parameters:
        sourceBlock - The source block (from)
        block - The destination block (to)
    • 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