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