/FileExtraction/Java_unseen/Wind-Development_WindSpigot/WindSpigot-API/src/main/java/org/bukkit/event/player/PlayerInteractAtEntityEvent.java
package org.bukkit.event.player;

import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.bukkit.util.Vector;

/**
 * Represents an event that is called when a player right clicks an entity with
 * a location on the entity the was clicked.
 */
public class PlayerInteractAtEntityEvent extends PlayerInteractEntityEvent {
	private static final HandlerList handlers = new HandlerList();
	private final Vector position;

	public PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position) {
		super(who, clickedEntity);
		this.position = position;
	}

	public Vector getClickedPosition() {
		return position.clone();
	}

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}

	public static HandlerList getHandlerList() {
		return handlers;
	}
}
