Package net.minestom.server.event.player
Class PlayerEntityInteractEvent
java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.player.PlayerEntityInteractEvent
public class PlayerEntityInteractEvent extends Event
-
Constructor Summary
Constructors Constructor Description PlayerEntityInteractEvent(Player player, Entity entityTarget, Player.Hand hand)
-
Method Summary
Modifier and Type Method Description Player.Hand
getHand()
Gets with which hand the player interacted with the entity.Player
getPlayer()
Gets thePlayer
who is interacting.Entity
getTarget()
Gets theEntity
with whogetPlayer()
is interacting.
-
Constructor Details
-
PlayerEntityInteractEvent
public PlayerEntityInteractEvent(@NotNull Player player, @NotNull Entity entityTarget, @NotNull Player.Hand hand)
-
-
Method Details