Package cn.nukkit.event.player
Class PlayerInteractEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.player.PlayerEvent
cn.nukkit.event.player.PlayerInteractEvent
- All Implemented Interfaces:
Cancellable
- Author:
- MagicDroidX (Nukkit Project)
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PlayerInteractEvent.Action
protected final BlockFace
protected final Block
protected final Item
protected final Vector3
Fields inherited from class cn.nukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerInteractEvent
(Player player, Item item, Vector3 block, BlockFace face) PlayerInteractEvent
(Player player, Item item, Vector3 block, BlockFace face, PlayerInteractEvent.Action action) -
Method Summary
Methods inherited from class cn.nukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class cn.nukkit.event.Event
getEventName, isCancelled, setCancelled, setCancelled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Field Details
-
blockTouched
-
touchVector
-
blockFace
-
item
-
action
-
-
Constructor Details
-
PlayerInteractEvent
-
PlayerInteractEvent
public PlayerInteractEvent(Player player, @Nullable Item item, Vector3 block, @Nullable BlockFace face, PlayerInteractEvent.Action action)
-
-
Method Details
-
getHandlers
-
getAction
-
getItem
-
getBlock
-
getTouchVector
-
getFace
-