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, isStickyblockpublic PistonExtendEvent(Block block, BlockDirection direction, List<Block> influenced)
public boolean isIgnored()
isIgnored in interface CancellableisIgnored in class BlockPistonEventpublic void cancel(boolean cancelled)
cancel in interface Cancellablecancel in class BlockPistonEventcancelled - set the cancellation state of the eventpublic List<Block> blocksInfluenced()
Copyright © 2016. All rights reserved.