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
|
blockpublic 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 Cancellablepublic void cancel(boolean cancelled)
cancel in interface Cancellablecancelled - set the cancellation state of the eventCopyright © 2016. All rights reserved.