public class BlockFlowEvent extends BlockEvent implements Cancellable
Constructor and Description |
---|
BlockFlowEvent(Block from,
Block to) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(boolean cancelled) |
Block |
from()
Return where the liquid is flowing from
|
boolean |
isIgnored() |
Block |
to()
Return where the block is flowing too
|
block
public BlockFlowEvent(Block from, Block to)
from
- Block where the liquid is flowing fromto
- Block where the liquid is flowing toopublic Block to()
public Block from()
public boolean isIgnored()
isIgnored
in interface Cancellable
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancelled
- set the cancellation state of the eventCopyright © 2016. All rights reserved.