public class PlayerInteractEvent extends PlayerEvent implements Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
PlayerInteractEvent.Action |
| Modifier and Type | Field and Description |
|---|---|
protected PlayerInteractEvent.Action |
action |
protected Block |
blockTouched |
protected Direction |
direction |
protected Item |
item |
protected com.nukkitx.math.vector.Vector3f |
touchVector |
| Constructor and Description |
|---|
PlayerInteractEvent(Player player,
Item item,
Block block,
Direction face,
PlayerInteractEvent.Action action) |
PlayerInteractEvent(Player player,
Item item,
com.nukkitx.math.vector.Vector3f touchVector,
Direction face,
PlayerInteractEvent.Action action) |
| Modifier and Type | Method and Description |
|---|---|
PlayerInteractEvent.Action |
getAction() |
Block |
getBlock() |
Direction |
getFace() |
Item |
getItem() |
com.nukkitx.math.vector.Vector3f |
getTouchVector() |
getPlayerisCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledprotected final Block blockTouched
protected final com.nukkitx.math.vector.Vector3f touchVector
protected final Direction direction
protected final Item item
protected final PlayerInteractEvent.Action action
public PlayerInteractEvent(Player player, Item item, Block block, Direction face, PlayerInteractEvent.Action action)
public PlayerInteractEvent(Player player, Item item, com.nukkitx.math.vector.Vector3f touchVector, Direction face, PlayerInteractEvent.Action action)
public PlayerInteractEvent.Action getAction()
public Item getItem()
public Block getBlock()
public com.nukkitx.math.vector.Vector3f getTouchVector()
public Direction getFace()
Copyright © 2020. All rights reserved.