summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Ardill <andrew.ardill@gmail.com>2011-03-10 05:36:41 +1100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-03-09 19:12:10 +0000
commite8d72030c863b7625fd0e1827896fdd2e30111d0 (patch)
treed5d193c48486bcd48876a8b030073ca4ae671b6b /src
parentd733a32f7c2c48b872f9674bf12129b5b14079eb (diff)
downloadbukkit-e8d72030c863b7625fd0e1827896fdd2e30111d0.tar
bukkit-e8d72030c863b7625fd0e1827896fdd2e30111d0.tar.gz
bukkit-e8d72030c863b7625fd0e1827896fdd2e30111d0.tar.lz
bukkit-e8d72030c863b7625fd0e1827896fdd2e30111d0.tar.xz
bukkit-e8d72030c863b7625fd0e1827896fdd2e30111d0.zip
Added LivingEntity.getEyeLocation() for getting the eyes location.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/LivingEntity.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
index 97cd6281..f9b221ee 100644
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
@@ -3,6 +3,8 @@ package org.bukkit.entity;
import java.util.HashSet;
import java.util.List;
+
+import org.bukkit.Location;
import org.bukkit.block.Block;
/**
@@ -39,6 +41,13 @@ public interface LivingEntity extends Entity {
public double getEyeHeight(boolean ignoreSneaking);
/**
+ * Get a Location detailing the current eye position of the LivingEntity.
+ *
+ * @return a Location at the eyes of the LivingEntity.
+ */
+ public Location getEyeLocation();
+
+ /**
* Gets all blocks along the player's line of sight
* List iterates from player's position to target inclusive
*