Commits
md_5 authored cef79e55153
1 1 | package org.bukkit.event.player; |
2 2 | |
3 3 | import org.bukkit.entity.Entity; |
4 4 | import org.bukkit.entity.Player; |
5 5 | import org.bukkit.event.HandlerList; |
6 6 | import org.bukkit.inventory.EquipmentSlot; |
7 7 | import org.bukkit.util.Vector; |
8 8 | |
9 9 | /** |
10 10 | * Represents an event that is called when a player right clicks an entity that |
11 11 | * also contains the location where the entity was clicked. |
12 + | * <br> |
13 + | * Note that the client may sometimes spuriously send this packet in addition to {@link PlayerInteractEntityEvent}. |
14 + | * Users are advised to listen to this (parent) class unless specifically required. |
12 15 | */ |
13 16 | public class PlayerInteractAtEntityEvent extends PlayerInteractEntityEvent { |
14 17 | private static final HandlerList handlers = new HandlerList(); |
15 18 | private final Vector position; |
16 19 | |
17 20 | public PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position) { |
18 21 | this(who, clickedEntity, position, EquipmentSlot.HAND); |
19 22 | } |
20 23 | |
21 24 | public PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position, EquipmentSlot hand) { |