mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 01:47:54 +01:00
Removed terminal velocity
This commit is contained in:
parent
13779aabde
commit
796d296f0d
@ -107,7 +107,6 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, Da
|
|||||||
* Unit: blocks/tick
|
* Unit: blocks/tick
|
||||||
*/
|
*/
|
||||||
protected double gravityAcceleration;
|
protected double gravityAcceleration;
|
||||||
protected double gravityTerminalVelocity;
|
|
||||||
protected int gravityTickCount; // Number of tick where gravity tick was applied
|
protected int gravityTickCount; // Number of tick where gravity tick was applied
|
||||||
|
|
||||||
private boolean autoViewable;
|
private boolean autoViewable;
|
||||||
@ -997,15 +996,6 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, Da
|
|||||||
return gravityAcceleration;
|
return gravityAcceleration;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the maximum gravity velocity.
|
|
||||||
*
|
|
||||||
* @return the maximum gravity velocity in block
|
|
||||||
*/
|
|
||||||
public double getGravityTerminalVelocity() {
|
|
||||||
return gravityTerminalVelocity;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the number of tick this entity has been applied gravity.
|
* Gets the number of tick this entity has been applied gravity.
|
||||||
*
|
*
|
||||||
@ -1020,13 +1010,11 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, Da
|
|||||||
*
|
*
|
||||||
* @param gravityDragPerTick the gravity drag per tick in block
|
* @param gravityDragPerTick the gravity drag per tick in block
|
||||||
* @param gravityAcceleration the gravity acceleration in block
|
* @param gravityAcceleration the gravity acceleration in block
|
||||||
* @param gravityTerminalVelocity the gravity terminal velocity (maximum) in block
|
|
||||||
* @see <a href="https://minecraft.gamepedia.com/Entity#Motion_of_entities">Entities motion</a>
|
* @see <a href="https://minecraft.gamepedia.com/Entity#Motion_of_entities">Entities motion</a>
|
||||||
*/
|
*/
|
||||||
public void setGravity(double gravityDragPerTick, double gravityAcceleration, double gravityTerminalVelocity) {
|
public void setGravity(double gravityDragPerTick, double gravityAcceleration) {
|
||||||
this.gravityDragPerTick = gravityDragPerTick;
|
this.gravityDragPerTick = gravityDragPerTick;
|
||||||
this.gravityAcceleration = gravityAcceleration;
|
this.gravityAcceleration = gravityAcceleration;
|
||||||
this.gravityTerminalVelocity = gravityTerminalVelocity;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user