Commits
1 1 | package org.bukkit.event.player; |
2 2 | |
3 3 | import org.bukkit.entity.Entity; |
4 4 | import org.bukkit.entity.Player; |
5 + | import org.bukkit.event.HandlerList; |
5 6 | import org.bukkit.util.Vector; |
6 7 | |
7 8 | /** |
8 9 | * Represents an event that is called when a player right clicks an entity |
9 10 | * with a location on the entity the was clicked. |
10 11 | */ |
11 12 | public class PlayerInteractAtEntityEvent extends PlayerInteractEntityEvent { |
13 + | private static final HandlerList handlers = new HandlerList(); |
12 14 | private final Vector position; |
13 15 | |
14 16 | public PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position) { |
15 17 | super(who, clickedEntity); |
16 18 | this.position = position; |
17 19 | } |
18 20 | |
19 21 | public Vector getClickedPosition() { |
20 22 | return position.clone(); |
21 23 | } |
24 + | |
25 + | |
26 + | public HandlerList getHandlers() { |
27 + | return handlers; |
28 + | } |
29 + | |
30 + | public static HandlerList getHandlerList() { |
31 + | return handlers; |
32 + | } |
22 33 | } |