summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/Entity.java18
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