/** Called to actually make the entity jump if isJumping is true. */ public void doJump() { entity.setJumping(isJumping); isJumping = false; }