Search in sources :

Example 1 with BossAISpiderWebshot

use of team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderWebshot in project ChocolateQuestRepoured by TeamChocoQuest.

the class EntityCQRGiantSpider method registerGoals.

@Override
protected void registerGoals() {
    this.spellHandler = this.createSpellHandler();
    this.goalSelector.addGoal(0, new SwimGoal(this));
    this.goalSelector.addGoal(1, new BossAISpiderSummonMinions(this));
    this.goalSelector.addGoal(2, new BossAISpiderWebshot(this));
    this.goalSelector.addGoal(3, new BossAISpiderHook(this));
    this.goalSelector.addGoal(12, new BossAISpiderLeapAttack(this, 1.2F));
    this.goalSelector.addGoal(14, new EntityAIAttack(this));
    this.goalSelector.addGoal(20, new EntityAIFollowAttackTarget(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(11, this.spellHandler);
    this.spellHandler.addSpell(0, new EntityAIShootPoisonProjectiles(this, 80, 20) {

        @Override
        protected SoundEvent getStartChargingSound() {
            return SoundEvents.SPIDER_HURT;
        }

        @Override
        protected SoundEvent getStartCastingSound() {
            return SoundEvents.SPIDER_AMBIENT;
        }
    });
    this.goalSelector.addGoal(0, new EntityAICQRNearestAttackTarget(this));
    this.goalSelector.addGoal(1, new EntityAIHurtByTarget(this));
}
Also used : EntityAIFollowPath(team.cqr.cqrepoured.entity.ai.EntityAIFollowPath) EntityAIAttack(team.cqr.cqrepoured.entity.ai.attack.EntityAIAttack) BossAISpiderHook(team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderHook) EntityAIMoveToHome(team.cqr.cqrepoured.entity.ai.EntityAIMoveToHome) EntityAIHurtByTarget(team.cqr.cqrepoured.entity.ai.target.EntityAIHurtByTarget) EntityAIMoveToLeader(team.cqr.cqrepoured.entity.ai.EntityAIMoveToLeader) BossAISpiderSummonMinions(team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderSummonMinions) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal) SoundEvent(net.minecraft.util.SoundEvent) BossAISpiderWebshot(team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderWebshot) BossAISpiderLeapAttack(team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderLeapAttack) EntityAIShootPoisonProjectiles(team.cqr.cqrepoured.entity.ai.spells.EntityAIShootPoisonProjectiles) EntityAICQRNearestAttackTarget(team.cqr.cqrepoured.entity.ai.target.EntityAICQRNearestAttackTarget) EntityAIFollowAttackTarget(team.cqr.cqrepoured.entity.ai.EntityAIFollowAttackTarget)

Aggregations

SwimGoal (net.minecraft.entity.ai.goal.SwimGoal)1 SoundEvent (net.minecraft.util.SoundEvent)1 EntityAIFollowAttackTarget (team.cqr.cqrepoured.entity.ai.EntityAIFollowAttackTarget)1 EntityAIFollowPath (team.cqr.cqrepoured.entity.ai.EntityAIFollowPath)1 EntityAIMoveToHome (team.cqr.cqrepoured.entity.ai.EntityAIMoveToHome)1 EntityAIMoveToLeader (team.cqr.cqrepoured.entity.ai.EntityAIMoveToLeader)1 EntityAIAttack (team.cqr.cqrepoured.entity.ai.attack.EntityAIAttack)1 BossAISpiderHook (team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderHook)1 BossAISpiderLeapAttack (team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderLeapAttack)1 BossAISpiderSummonMinions (team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderSummonMinions)1 BossAISpiderWebshot (team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderWebshot)1 EntityAIShootPoisonProjectiles (team.cqr.cqrepoured.entity.ai.spells.EntityAIShootPoisonProjectiles)1 EntityAICQRNearestAttackTarget (team.cqr.cqrepoured.entity.ai.target.EntityAICQRNearestAttackTarget)1 EntityAIHurtByTarget (team.cqr.cqrepoured.entity.ai.target.EntityAIHurtByTarget)1