Added more general setMotion function with x y and z parameters.

This commit is contained in:
luisc committed 2022-01-31 23:59:15 -06:00
1 parent 1af875aea9
commit 9109c134c1
1 file changed
+6
@@ -179,6 +179,12 @@ public class ScriptEntity<T extends Entity> implements IEntity {
entity.velocityChanged = true;
}
public void setMotion(double x, double y, double z){
this.setMotionX(x);
this.setMotionY(y);
this.setMotionZ(z);
}
/**
* @return The block x position
*/