Class PlayerEntityInteractEvent
java.lang.Object
net.minestom.server.event.player.PlayerEntityInteractEvent
- All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, PlayerEvent, PlayerInstanceEvent
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerEntityInteractEvent(Player player, Entity entityTarget, PlayerHand hand, Point interactPosition) -
Method Summary
Modifier and TypeMethodDescriptiongetHand()Gets with which hand the player interacted with the entity.Gets the position at which the entity was interactedGets the player.Gets theEntitywith whogetPlayer()is interacting.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityInstanceEvent
getInstanceMethods inherited from interface PlayerEvent
getEntity
-
Constructor Details
-
PlayerEntityInteractEvent
public PlayerEntityInteractEvent(Player player, Entity entityTarget, PlayerHand hand, Point interactPosition)
-
-
Method Details
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-
getTarget
-
getHand
Gets with which hand the player interacted with the entity.- Returns:
- the hand
-
getInteractPosition
Gets the position at which the entity was interacted- Returns:
- the interaction position
- See Also:
-