@Override public boolean shouldExecute() { if (replicator.hunger < replicator.hungerToCanibal) return false; return super.shouldExecute(); } }
/** * Returns whether the EntityAIBase should begin execution. */ public boolean shouldExecute() { return super.shouldExecute(); } }
@Override public boolean shouldExecute() { return ZooConfig.attackCreepers.get() ? super.shouldExecute() : false; } });
/** * Returns whether the EntityAIBase should begin execution. */ public boolean shouldExecute() { float f = this.taskOwner.getBrightness(); return !(f >= 0.5F) && super.shouldExecute(); } }
@Override public boolean shouldExecute() { return taskOwner.getAttackTarget() instanceof EntityPlayer && super.shouldExecute(); } }
@Override public boolean shouldExecute() { boolean supe = super.shouldExecute(); if(targetEntity != null && bird.getVictor() != null && bird.getVictor().getUniqueID().equals(targetEntity.getUniqueID())){ return false; } return supe && this.targetEntity != null && !this.targetEntity.getClass().equals(this.bird.getClass()); }
@Override public boolean shouldExecute() { boolean ret = super.shouldExecute(); if (!ret && taskOwner.getAttackTarget() != null && taskOwner.getAttackTarget().isDead) { taskOwner.setAttackTarget(null); } return ret; }
@Override public boolean shouldExecute() { if (this.taskOwner.getRNG().nextInt(20) != 0) { return false; } if (super.shouldExecute() && this.targetEntity != null && !this.targetEntity.getClass().equals(this.cockatrice.getClass())) { if (this.targetEntity instanceof EntityPlayer && !cockatrice.isOwner(this.targetEntity)) { return !cockatrice.isTamed(); } else { if (!cockatrice.isOwner(this.targetEntity) && cockatrice.canMove()) { return true; } } } return false; } }
@Override public boolean shouldExecute() { if (super.shouldExecute() && this.targetEntity != null && !this.targetEntity.getClass().equals(this.deathworm.getClass())) { if (this.targetEntity instanceof EntityPlayer && !deathworm.isOwner(this.targetEntity)) { return !deathworm.isTamed(); } else { if (!deathworm.isOwner(this.targetEntity)) { return true; } if (this.targetEntity instanceof EntityMob && deathworm.getWormAge() > 2) { if(this.targetEntity instanceof EntityCreeper){ return deathworm.getWormAge() > 3; } return true; } } } return false; }
@Override public boolean shouldExecute() { if (this.taskOwner.getRNG().nextInt(20) != 0) { return false; } if (super.shouldExecute() && this.targetEntity != null && !this.targetEntity.getClass().equals(this.hippogryph.getClass())) { if (this.hippogryph.width >= this.targetEntity.width) { if (this.targetEntity instanceof EntityPlayer) { return !hippogryph.isTamed(); } else { if (!hippogryph.isOwner(this.targetEntity) && hippogryph.canMove() && this.targetEntity instanceof EntityAnimal) { if(hippogryph.isTamed()){ return DragonUtils.canTameDragonAttack(hippogryph, this.targetEntity); }else{ return true; } } } } } return false; } }
@Override public boolean shouldExecute() { if (super.shouldExecute() && this.targetEntity != null && !this.targetEntity.getClass().equals(this.dragon.getClass())) { float dragonSize = Math.max(this.dragon.width, this.dragon.width * (dragon.getRenderSize() / 3)); if (dragonSize >= this.targetEntity.width) { if(this.targetEntity instanceof EntityDragonBase){ EntityDragonBase dragon = (EntityDragonBase)this.targetEntity; if(dragon.getOwner() != null && this.dragon.getOwner() != null && this.dragon.isOwner(dragon.getOwner())){ return false; } return !dragon.isModelDead(); } if (this.targetEntity instanceof EntityPlayer && dragon.isTamed()) { return false; } else { if (!dragon.isOwner(this.targetEntity) && FoodUtils.getFoodPoints(this.targetEntity) > 0 && dragon.canMove() && (dragon.getHunger() < 90 || !dragon.isTamed() && this.targetEntity instanceof EntityPlayer)) { if(dragon.isTamed()){ return DragonUtils.canTameDragonAttack(dragon, this.targetEntity); }else{ return true; } } } } } return false; }