diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-04 14:24:09 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-04 14:24:09 +0000 |
commit | 97d2adb53626e6e0033f303352848f1fb0b6e5f9 (patch) | |
tree | f484339e01cbf17536bbd99c892435f80eefb8e1 /src/main/java | |
parent | 6f07fa7291b64e80a7f06f196454dc6eff54e1b0 (diff) | |
download | bukkit-97d2adb53626e6e0033f303352848f1fb0b6e5f9.tar bukkit-97d2adb53626e6e0033f303352848f1fb0b6e5f9.tar.gz bukkit-97d2adb53626e6e0033f303352848f1fb0b6e5f9.tar.lz bukkit-97d2adb53626e6e0033f303352848f1fb0b6e5f9.tar.xz bukkit-97d2adb53626e6e0033f303352848f1fb0b6e5f9.zip |
Added entity.get/setMomentum
Diffstat (limited to 'src/main/java')
-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 |