mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Added more general setMotion function with x y and z parameters.
This commit is contained in:
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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user