001 package net.minecraft.src; 002 003 public class EntityJumpHelper 004 { 005 private EntityLiving entity; 006 private boolean isJumping = false; 007 008 public EntityJumpHelper(EntityLiving par1EntityLiving) 009 { 010 this.entity = par1EntityLiving; 011 } 012 013 public void setJumping() 014 { 015 this.isJumping = true; 016 } 017 018 /** 019 * Called to actually make the entity jump if isJumping is true. 020 */ 021 public void doJump() 022 { 023 this.entity.setJumping(this.isJumping); 024 this.isJumping = false; 025 } 026 }