public final 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 ItemStack |
item |
protected com.nukkitx.math.vector.Vector3f |
touchVector |
| Constructor and Description |
|---|
PlayerInteractEvent(Player player,
ItemStack item,
Block block,
Direction face,
PlayerInteractEvent.Action action) |
PlayerInteractEvent(Player player,
ItemStack 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() |
ItemStack |
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 ItemStack item
protected final PlayerInteractEvent.Action action
public PlayerInteractEvent(Player player, ItemStack item, Block block, Direction face, PlayerInteractEvent.Action action)
public PlayerInteractEvent(Player player, ItemStack item, com.nukkitx.math.vector.Vector3f touchVector, Direction face, PlayerInteractEvent.Action action)
public PlayerInteractEvent.Action getAction()
public ItemStack getItem()
public Block getBlock()
public com.nukkitx.math.vector.Vector3f getTouchVector()
public Direction getFace()
Copyright © 2021. All rights reserved.