diff options
-rw-r--r-- | src/main/java/org/bukkit/entity/Entity.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index 426b35f7..8b5d9e8a 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/src/main/java/org/bukkit/entity/Entity.java @@ -4,6 +4,7 @@ package org.bukkit.entity; import org.bukkit.Location; import org.bukkit.Server; import org.bukkit.World; +import org.bukkit.util.Vector; /** * Represents a base entity in the world @@ -17,6 +18,20 @@ public interface Entity { public Location getLocation(); /** + * Gets this entity's current momentum + * + * @return Current travelling momentum of this entity + */ + public Vector getMomentum(); + + /** + * Sets this entity's momentum + * + * @param vector New momentum to travel with + */ + public void setMomentum(Vector vector); + + /** * Gets the current world this entity resides in * * @return World |