@Override public boolean shouldContinueExecuting() { if (this.entityPathNavigate.noPath()) { this.entity.attackStateMachine = 0; return false; } return this.entity.attackStateMachine == 2; }
@Override public boolean shouldContinueExecuting() { return !entity.getNavigator().noPath(); }
@Override public boolean shouldContinueExecuting() { return !entity.getNavigator().noPath(); }
/** * Returns whether an in-progress EntityAIBase should continue executing */ public boolean shouldContinueExecuting() { return !this.creature.getNavigator().noPath(); }
@Override public boolean shouldContinueExecuting() { return !this.entity.getNavigator().noPath(); } }
@Override public boolean shouldContinueExecuting() { return !theEntityCreature.getNavigator().noPath(); }
/** * Returns whether an in-progress EntityAIBase should continue executing */ public boolean continueExecuting() { return !this.entity.getNavigator().noPath(); }
/** * Returns whether an in-progress EntityAIBase should continue executing */ public boolean continueExecuting() { return !this.petPathfinder.noPath() && this.thePet.getDistanceSq(this.theOwner) > (double) (this.maxDist * this.maxDist) && !this.thePet.isStationary(); }
@Override public boolean shouldContinueExecuting() { return shouldExecute() || !entityHost.getNavigator().noPath(); }
@Override public boolean shouldContinueExecuting() { return shouldExecute() || !getNavigator().noPath(); }
/** * Returns whether an in-progress EntityAIBase should continue executing */ @Override public boolean shouldContinueExecuting() { return (this.shouldExecute() || !this.entity.getNavigator().noPath()) && this.isBowInMainhand(); }
@Override public boolean shouldContinueExecuting() { if (!npc.getIsAIEnabled() || npc.shouldBeAtHome()) { return false; } return !npc.getNavigator().noPath(); }
/** * Returns whether an in-progress EntityAIBase should continue executing */ public boolean continueExecuting() { return (this.shouldExecute() || !this.entity.getNavigator().noPath()) && this.isBowInMainhand(); }
@Override public boolean shouldContinueExecuting() { EntityLivingBase owner = owned.getOwner(); if (owner == null || !owner.isEntityAlive()) { return false; } return !owned.asEntity().getNavigator().noPath(); }
/** * Returns whether an in-progress EntityAIBase should continue executing */ @Override public boolean shouldContinueExecuting() { EntityLivingBase entitylivingbase = attacker.getAttackTarget(); return entitylivingbase == null ? false : (!entitylivingbase.isEntityAlive() ? false : (!longMemory ? !attacker.getNavigator().noPath() : attacker instanceof EntityCreature ? ((EntityCreature) attacker).isWithinHomeDistanceCurrentPosition() : true)); }
/** * Returns whether an in-progress EntityAIBase should continue executing */ public boolean continueExecuting() { EntityLivingBase entitylivingbase = attacker.getAttackTarget(); return entitylivingbase == null ? false : (!entitylivingbase.isEntityAlive() ? false : (!longMemory ? !getNavigator().noPath() : attacker.isWithinHomeDistanceCurrentPosition())); }
@Override public boolean shouldContinueExecuting() { EntityLivingBase entitylivingbase = attacker.getAttackTarget(); return entitylivingbase == null ? false : !entitylivingbase.isEntityAlive() ? false : !longMemory ? !attacker.getNavigator().noPath() : attacker.isWithinHomeDistanceCurrentPosition(); }
private boolean isRunningAway() { if (runningAwayTo == null) { return false; } if (getNavigator().noPath()) { runningAwayTo = null; return false; } final Path path = getNavigator().getPath(); PathPoint dest = path != null ? path.getFinalPathPoint() : null; return dest != null && dest.equals(runningAwayTo); }
@Override public boolean shouldContinueExecuting() { EntityLivingBase target = attacker.getAttackTarget(); if (target == null || !target.isEntityAlive()) { return false; } return !longMemory ? !attacker.getNavigator().noPath() : attacker.isWithinHomeDistanceFromPosition(new BlockPos(target)); }
@Override public boolean shouldExecute() { if (this.entity.getNavigator().noPath() && this.entity.getOrder() == DinosaurEntity.Order.FOLLOW) { UUID ownerId = this.entity.getOwner(); if (ownerId != null) { EntityPlayer owner = this.entity.world.getPlayerEntityByUUID(ownerId); return owner != null && this.isOwnerFar(owner) && this.entity.getAttackTarget() == null; } } return false; }