mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
Deprecated momentum on player (remove tomorrow), added velocity
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
bb755bb9a2
commit
0ebd910f1b
@ -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…
Reference in New Issue
Block a user