Class SpellcasterIllager.SpellcasterUseSpellGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.monster.SpellcasterIllager.SpellcasterUseSpellGoal
Direct Known Subclasses:
Evoker.EvokerAttackSpellGoal, Evoker.EvokerSummonSpellGoal, Evoker.EvokerWololoSpellGoal, Illusioner.IllusionerBlindnessSpellGoal, Illusioner.IllusionerMirrorSpellGoal
Enclosing class:
SpellcasterIllager

protected abstract class SpellcasterIllager.SpellcasterUseSpellGoal extends Goal
  • Field Details

    • attackWarmupDelay

      protected int attackWarmupDelay
    • nextAttackTickCount

      protected int nextAttackTickCount
  • Constructor Details

    • SpellcasterUseSpellGoal

      protected SpellcasterUseSpellGoal()
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

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

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

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

      protected abstract void performSpellCasting()
    • getCastWarmupTime

      protected int getCastWarmupTime()
    • getCastingTime

      protected abstract int getCastingTime()
    • getCastingInterval

      protected abstract int getCastingInterval()
    • getSpellPrepareSound

      @Nullable protected abstract SoundEvent getSpellPrepareSound()
    • getSpell

      protected abstract SpellcasterIllager.IllagerSpell getSpell()