minecraft-src/net/minecraft/world/entity/ai/control/JumpControl.java
2025-07-04 01:41:11 +03:00

24 lines
441 B
Java

package net.minecraft.world.entity.ai.control;
import net.minecraft.world.entity.Mob;
public class JumpControl implements Control {
private final Mob mob;
protected boolean jump;
public JumpControl(Mob mob) {
this.mob = mob;
}
public void jump() {
this.jump = true;
}
/**
* Called to actually make the entity jump if isJumping is true.
*/
public void tick() {
this.mob.setJumping(this.jump);
this.jump = false;
}
}