public class PlayerInteractEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerInteractEvent(Player player,
Block block)
TODO add action detection and blockface(?)
|
| Modifier and Type | Method and Description |
|---|---|
Block |
block() |
void |
cancel(boolean cancelled) |
boolean |
isIgnored() |
void |
setBlock(Block block) |
playerpublic PlayerInteractEvent(Player player, Block block)
player - the player associated with the eventblock - the block that was interacted with (null if none)public Block block()
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.