/// <summary> /// Returns whether an in-progress EntityAIBase should continue executing /// </summary> public override bool ContinueExecuting() { if (!ParentAnimal.IsEntityAlive()) { return(false); } double d = ChildAnimal.GetDistanceSqToEntity(ParentAnimal); return(d >= 9D && d <= 256D); }
/// <summary> /// Returns whether an in-progress EntityAIBase should continue executing /// </summary> public override bool ContinueExecuting() { return(TargetMate.IsEntityAlive() && TargetMate.IsInLove() && Field_48261_b < 60); }