Search in sources :

Example 1 with EntityAISearchMount

use of team.cqr.cqrepoured.entity.ai.EntityAISearchMount in project ChocolateQuestRepoured by TeamChocoQuest.

the class AbstractEntityCQR method registerGoals.

@Override
protected void registerGoals() {
    if (CQRConfig.advanced.debugAI) {
    // TODO: AI Selectors are final now, change this or not?
    // this.goalSelector = new EntityAITasksProfiled((IProfiler) this.level.getProfiler(), this.level);
    // this.targetSelector = new EntityAITasksProfiled((IProfiler) this.level.getProfiler(), this.level);
    }
    this.spellHandler = this.createSpellHandler();
    this.goalSelector.addGoal(0, new SwimGoal(this));
    this.goalSelector.addGoal(1, new EntityAIOpenCloseDoor(this));
    if (this.canMountEntity()) {
        this.horseAI = new EntityAIRideHorse<>(this, 1.5);
        this.goalSelector.addGoal(8, this.horseAI);
    }
    this.goalSelector.addGoal(9, new EntityAIHealingPotion(this));
    this.goalSelector.addGoal(11, this.spellHandler);
    this.goalSelector.addGoal(12, new EntityAIAttackSpecial(this));
    this.goalSelector.addGoal(13, new EntityAIAttackRanged<>(this));
    this.goalSelector.addGoal(14, new EntityAIPotionThrower(this));
    this.goalSelector.addGoal(15, new EntityAIFireball(this));
    this.goalSelector.addGoal(16, new EntityAIHooker(this));
    this.goalSelector.addGoal(17, new EntityAIBackstab(this));
    this.goalSelector.addGoal(18, new EntityAIAttack(this));
    this.goalSelector.addGoal(19, new EntityAICursedBoneSummoner(this));
    this.goalSelector.addGoal(20, new EntityAIFollowAttackTarget(this));
    this.goalSelector.addGoal(22, new EntityAIFireFighter(this));
    this.goalSelector.addGoal(23, new EntityAITorchIgniter(this));
    this.goalSelector.addGoal(24, new EntityAILooter(this));
    this.goalSelector.addGoal(25, new EntityAITameAndLeashPet(this));
    this.goalSelector.addGoal(26, new EntityAISearchMount(this));
    this.goalSelector.addGoal(30, new EntityAIMoveToLeader(this));
    this.goalSelector.addGoal(31, new EntityAIFollowPath(this));
    this.goalSelector.addGoal(32, new EntityAIMoveToHome(this));
    this.goalSelector.addGoal(33, new EntityAIIdleSit(this));
    // Electrocution stuff
    // this.tasks.addTask(10, new EntityAIPanicElectrocute(this, 2.0D));
    // this.tasks.addTask(10, new EntityAIPanicFire(this, 2.0D));
    // this.tasks.addTask(3, new EntityAIAvoidEntity<EntityLivingBase>(this, EntityLivingBase.class,
    // TargetUtil.PREDICATE_IS_ELECTROCUTED, 8.0F, 1.5D, 2.0D));
    // this.tasks.addTask(2, new EntityAIAvoidEntity<EntityElectricField>(this, EntityElectricField.class, 1.0F, 1.5D,
    // 1.5D));
    this.targetSelector.addGoal(0, new EntityAICQRNearestAttackTarget(this));
    this.targetSelector.addGoal(1, new EntityAIHurtByTarget(this));
}
Also used : EntityAIFollowPath(team.cqr.cqrepoured.entity.ai.EntityAIFollowPath) EntityAIPotionThrower(team.cqr.cqrepoured.entity.ai.item.EntityAIPotionThrower) EntityAIAttack(team.cqr.cqrepoured.entity.ai.attack.EntityAIAttack) EntityAICursedBoneSummoner(team.cqr.cqrepoured.entity.ai.item.EntityAICursedBoneSummoner) EntityAIMoveToHome(team.cqr.cqrepoured.entity.ai.EntityAIMoveToHome) EntityAIHealingPotion(team.cqr.cqrepoured.entity.ai.item.EntityAIHealingPotion) EntityAIHurtByTarget(team.cqr.cqrepoured.entity.ai.target.EntityAIHurtByTarget) EntityAITameAndLeashPet(team.cqr.cqrepoured.entity.ai.EntityAITameAndLeashPet) EntityAIMoveToLeader(team.cqr.cqrepoured.entity.ai.EntityAIMoveToLeader) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal) EntityAITorchIgniter(team.cqr.cqrepoured.entity.ai.EntityAITorchIgniter) EntityAILooter(team.cqr.cqrepoured.entity.ai.attack.special.EntityAILooter) EntityAIOpenCloseDoor(team.cqr.cqrepoured.entity.ai.EntityAIOpenCloseDoor) EntityAIFireFighter(team.cqr.cqrepoured.entity.ai.EntityAIFireFighter) EntityAICQRNearestAttackTarget(team.cqr.cqrepoured.entity.ai.target.EntityAICQRNearestAttackTarget) EntityAIIdleSit(team.cqr.cqrepoured.entity.ai.EntityAIIdleSit) EntityAIAttackSpecial(team.cqr.cqrepoured.entity.ai.attack.special.EntityAIAttackSpecial) EntityAIHooker(team.cqr.cqrepoured.entity.ai.attack.special.EntityAIHooker) EntityAIFollowAttackTarget(team.cqr.cqrepoured.entity.ai.EntityAIFollowAttackTarget) EntityAIFireball(team.cqr.cqrepoured.entity.ai.item.EntityAIFireball) EntityAIBackstab(team.cqr.cqrepoured.entity.ai.attack.EntityAIBackstab) EntityAISearchMount(team.cqr.cqrepoured.entity.ai.EntityAISearchMount) IHasTextureOverride(team.cqr.cqrepoured.customtextures.IHasTextureOverride)

Aggregations

SwimGoal (net.minecraft.entity.ai.goal.SwimGoal)1 IHasTextureOverride (team.cqr.cqrepoured.customtextures.IHasTextureOverride)1 EntityAIFireFighter (team.cqr.cqrepoured.entity.ai.EntityAIFireFighter)1 EntityAIFollowAttackTarget (team.cqr.cqrepoured.entity.ai.EntityAIFollowAttackTarget)1 EntityAIFollowPath (team.cqr.cqrepoured.entity.ai.EntityAIFollowPath)1 EntityAIIdleSit (team.cqr.cqrepoured.entity.ai.EntityAIIdleSit)1 EntityAIMoveToHome (team.cqr.cqrepoured.entity.ai.EntityAIMoveToHome)1 EntityAIMoveToLeader (team.cqr.cqrepoured.entity.ai.EntityAIMoveToLeader)1 EntityAIOpenCloseDoor (team.cqr.cqrepoured.entity.ai.EntityAIOpenCloseDoor)1 EntityAISearchMount (team.cqr.cqrepoured.entity.ai.EntityAISearchMount)1 EntityAITameAndLeashPet (team.cqr.cqrepoured.entity.ai.EntityAITameAndLeashPet)1 EntityAITorchIgniter (team.cqr.cqrepoured.entity.ai.EntityAITorchIgniter)1 EntityAIAttack (team.cqr.cqrepoured.entity.ai.attack.EntityAIAttack)1 EntityAIBackstab (team.cqr.cqrepoured.entity.ai.attack.EntityAIBackstab)1 EntityAIAttackSpecial (team.cqr.cqrepoured.entity.ai.attack.special.EntityAIAttackSpecial)1 EntityAIHooker (team.cqr.cqrepoured.entity.ai.attack.special.EntityAIHooker)1 EntityAILooter (team.cqr.cqrepoured.entity.ai.attack.special.EntityAILooter)1 EntityAICursedBoneSummoner (team.cqr.cqrepoured.entity.ai.item.EntityAICursedBoneSummoner)1 EntityAIFireball (team.cqr.cqrepoured.entity.ai.item.EntityAIFireball)1 EntityAIHealingPotion (team.cqr.cqrepoured.entity.ai.item.EntityAIHealingPotion)1