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; } }