java.lang.Object
org.cloudburstmc.api.event.Event
org.cloudburstmc.api.event.player.PlayerEvent
org.cloudburstmc.api.event.player.PlayerInteractEvent
- All Implemented Interfaces:
Cancellable
author: MagicDroidX
Nukkit Project
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PlayerInteractEvent.Actionprotected Blockprotected Directionprotected ItemStackprotected com.nukkitx.math.vector.Vector3f -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInteractEvent(Player player, ItemStack item, com.nukkitx.math.vector.Vector3f touchVector, Direction face, PlayerInteractEvent.Action action)PlayerInteractEvent(Player player, ItemStack item, Block block, Direction face, PlayerInteractEvent.Action action) -
Method Summary
Methods inherited from class org.cloudburstmc.api.event.player.PlayerEvent
getPlayerMethods inherited from class org.cloudburstmc.api.event.Event
isCancelled, setCancelled, setCancelledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.event.Cancellable
isCancelled, setCancelled, setCancelled
-
Field Details
-
blockTouched
-
touchVector
protected final com.nukkitx.math.vector.Vector3f touchVector -
direction
-
item
-
action
-
-
Constructor Details
-
PlayerInteractEvent
public PlayerInteractEvent(Player player, ItemStack item, Block block, Direction face, PlayerInteractEvent.Action action) -
PlayerInteractEvent
public PlayerInteractEvent(Player player, ItemStack item, com.nukkitx.math.vector.Vector3f touchVector, Direction face, PlayerInteractEvent.Action action)
-
-
Method Details
-
getAction
-
getItem
-
getBlock
-
getTouchVector
public com.nukkitx.math.vector.Vector3f getTouchVector() -
getFace
-