diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-05 18:48:32 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-05 18:48:32 +0000 |
commit | ac7c3699664ac9967db4130c3c706bb7a4aa9cd3 (patch) | |
tree | 504e0655103fdbfaa9865984ffd89609ca07876a /src | |
parent | aa0614d7851eb0ffbfdaacbba4bc35d22eb37614 (diff) | |
download | bukkit-ac7c3699664ac9967db4130c3c706bb7a4aa9cd3.tar bukkit-ac7c3699664ac9967db4130c3c706bb7a4aa9cd3.tar.gz bukkit-ac7c3699664ac9967db4130c3c706bb7a4aa9cd3.tar.lz bukkit-ac7c3699664ac9967db4130c3c706bb7a4aa9cd3.tar.xz bukkit-ac7c3699664ac9967db4130c3c706bb7a4aa9cd3.zip |
Deprecated momentum on player (remove tomorrow), added velocity
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/Entity.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index 8b5d9e8a..4696e697 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/src/main/java/org/bukkit/entity/Entity.java @@ -21,17 +21,35 @@ public interface Entity { * Gets this entity's current momentum * * @return Current travelling momentum of this entity + * @deprecated See {@link #getVelocity()} */ + @Deprecated public Vector getMomentum(); /** * Sets this entity's momentum * * @param vector New momentum to travel with + * @deprecated See {@link #setVelocity(org.bukkit.util.Vector)} */ + @Deprecated public void setMomentum(Vector vector); /** + * Sets this entity's velocity + * + * @param velocity New velocity to travel with + */ + public void setVelocity(Vector velocity); + + /** + * Gets this entity's current velocity + * + * @return Current travelling velocity of this entity + */ + public Vector getVelocity(); + + /** * Gets the current world this entity resides in * * @return World |