public class PistonExtendEvent extends BlockPistonEvent
Constructor and Description |
---|
PistonExtendEvent(Block block,
BlockDirection direction,
List<Block> influenced) |
Modifier and Type | Method and Description |
---|---|
List<Block> |
blocksInfluenced()
Returns an ImmutableList of the blocks that are being pushed by this piston, may be empty
|
void |
cancel(boolean cancelled) |
boolean |
isIgnored() |
direction, influencedBlock, isExtending, isRetracting, isSticky
block
public PistonExtendEvent(Block block, BlockDirection direction, List<Block> influenced)
public boolean isIgnored()
isIgnored
in interface Cancellable
isIgnored
in class BlockPistonEvent
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancel
in class BlockPistonEvent
cancelled
- set the cancellation state of the eventpublic List<Block> blocksInfluenced()
Copyright © 2016. All rights reserved.