Class PistonExtendDomainEvent

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

    public final class PistonExtendDomainEvent
    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
      PistonExtendDomainEvent​(org.bukkit.block.BlockFace blockFace, java.util.List<org.bukkit.block.Block> blocksMoved)
      PistonExtendDomainEvent This event is called when a piston extends
    • Constructor Detail

      • PistonExtendDomainEvent

        public PistonExtendDomainEvent​(org.bukkit.block.BlockFace blockFace,
                                       java.util.List<org.bukkit.block.Block> blocksMoved)
        PistonExtendDomainEvent This event is called when a piston extends
        Parameters:
        blockFace - The block face that fired the event
        blocksMoved - The blocks being moved
    • 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