Class PlayerPickEntityEvent
java.lang.Object
net.minestom.server.event.player.PlayerPickEntityEvent
- All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, PlayerEvent, PlayerInstanceEvent
Called when a player tries to pick an entity (middle-click).
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerPickEntityEvent(Player player, @Nullable Entity entityTarget, boolean includeData) -
Method Summary
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
-
PlayerPickEntityEvent
-
-
Method Details
-
getTarget
-
isIncludeData
public boolean isIncludeData()Get if the entity data should be included in the result (control middle-click).- Returns:
- if the entity data should be included.
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-