Class PistonExtendDomainEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- work.torp.domain.api.events.block.BaseBlock
-
- work.torp.domain.api.events.block.PistonExtendDomainEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class PistonExtendDomainEvent extends BaseBlock implements org.bukkit.event.Cancellable
-
-
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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCancelReason()
boolean
isCancelled()
void
setCancelled(boolean cancel)
void
setCancelReason(java.lang.String cancelReason)
-
Methods inherited from class work.torp.domain.api.events.block.BaseBlock
getBlock, getHandlerList, getHandlers, logBaseValues
-
-
-
-
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 eventblocksMoved
- 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 interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
-