Class SpellcastingIllagerEntity.CastSpellGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.mob.SpellcastingIllagerEntity.CastSpellGoal
Direct Known Subclasses:
EvokerEntity.ConjureFangsGoal, EvokerEntity.SummonVexGoal, EvokerEntity.WololoGoal, IllusionerEntity.BlindTargetGoal, IllusionerEntity.GiveInvisibilityGoal
Enclosing class:
SpellcastingIllagerEntity

public abstract class SpellcastingIllagerEntity.CastSpellGoal
extends Goal
  • Field Details

    • spellCooldown

      protected int spellCooldown
    • startTime

      protected int startTime
  • Constructor Details

    • CastSpellGoal

      protected CastSpellGoal()
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal
    • castSpell

      protected abstract void castSpell()
    • getInitialCooldown

      protected int getInitialCooldown()
    • getSpellTicks

      protected abstract int getSpellTicks()
    • startTimeDelay

      protected abstract int startTimeDelay()
    • getSoundPrepare

      @Nullable protected abstract SoundEvent getSoundPrepare()
    • getSpell

      protected abstract SpellcastingIllagerEntity.Spell getSpell()