Deprecated momentum on player (remove tomorrow), added velocity

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2011-03-05 18:48:32 +00:00
parent bb755bb9a2
commit 0ebd910f1b

View File

@ -21,16 +21,34 @@ public interface Entity {
* Gets this entity's current momentum * Gets this entity's current momentum
* *
* @return Current travelling momentum of this entity * @return Current travelling momentum of this entity
* @deprecated See {@link #getVelocity()}
*/ */
@Deprecated
public Vector getMomentum(); public Vector getMomentum();
/** /**
* Sets this entity's momentum * Sets this entity's momentum
* *
* @param vector New momentum to travel with * @param vector New momentum to travel with
* @deprecated See {@link #setVelocity(org.bukkit.util.Vector)}
*/ */
@Deprecated
public void setMomentum(Vector vector); 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 * Gets the current world this entity resides in
* *