mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-21 14:39:01 +01:00
Deprecated momentum on player (remove tomorrow), added velocity
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
bb755bb9a2
commit
0ebd910f1b
1 changed files with 18 additions and 0 deletions
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue