Update to Minecraft 1.8
For more information please see http://www.spigotmc.org/ By: md_5 <git@md-5.net>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package org.bukkit.event.player;
|
||||
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
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 final Vector position;
|
||||
|
||||
public PlayerInteractAtEntityEvent(Player who, Entity clickedEntity, Vector position) {
|
||||
super(who, clickedEntity);
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
public Vector getClickedPosition() {
|
||||
return position.clone();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user