22 lines
458 B
Java
22 lines
458 B
Java
package net.citizensnpcs.nms.v1_19_R3.util;
|
|
|
|
import net.citizensnpcs.nms.v1_19_R3.entity.EntityHumanNPC;
|
|
|
|
public class PlayerControllerJump {
|
|
private boolean a;
|
|
private final EntityHumanNPC b;
|
|
|
|
public PlayerControllerJump(EntityHumanNPC entityinsentient) {
|
|
this.b = entityinsentient;
|
|
}
|
|
|
|
public void jump() {
|
|
this.a = true;
|
|
}
|
|
|
|
public void tick() {
|
|
this.b.setJumping(this.a);
|
|
this.a = false;
|
|
}
|
|
}
|