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