From 0ebd910f1b8c14d27d742358c8748774ce23fc4b Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 5 Mar 2011 18:48:32 +0000 Subject: [PATCH] Deprecated momentum on player (remove tomorrow), added velocity By: Dinnerbone --- .../main/java/org/bukkit/entity/Entity.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index 8b5d9e8ad6..4696e69710 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -21,16 +21,34 @@ 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 *