/// <summary> /// Returns whether the EntityAIBase should begin execution. /// </summary> public override bool ShouldExecute() { if (!TheEntity.IsTamed()) { return(false); } if (TheEntity.IsInWater()) { return(false); } if (!TheEntity.OnGround) { return(false); } EntityLiving entityliving = TheEntity.GetOwner(); if (entityliving == null) { return(true); } if (TheEntity.GetDistanceSqToEntity(entityliving) < 144D && entityliving.GetAITarget() != null) { return(false); } else { return(Field_48408_b); } }
/// <summary> /// Returns whether the EntityAIBase should begin execution. /// </summary> public override bool ShouldExecute() { if (!Field_48394_a.IsTamed()) { return(false); } EntityLiving entityliving = Field_48394_a.GetOwner(); if (entityliving == null) { return(false); } else { Field_48393_b = entityliving.GetAITarget(); return(Func_48376_a(Field_48393_b, false)); } }
/// <summary> /// Returns whether the EntityAIBase should begin execution. /// </summary> public override bool ShouldExecute() { if (!Field_48392_a.IsTamed()) { return(false); } EntityLiving entityliving = Field_48392_a.GetOwner(); if (entityliving == null) { return(false); } else { Field_48391_b = entityliving.GetLastAttackingEntity(); return(Func_48376_a(Field_48391_b, false)); } }
/// <summary> /// Returns whether the EntityAIBase should begin execution. /// </summary> public override bool ShouldExecute() { EntityLiving entityliving = ThePet.GetOwner(); if (entityliving == null) { return(false); } if (ThePet.IsSitting()) { return(false); } if (ThePet.GetDistanceSqToEntity(entityliving) < (double)(MinDist * MinDist)) { return(false); } else { TheOwner = entityliving; return(true); } }