Class SpellcastingIllagerEntity.UseSpellGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.monster.SpellcastingIllagerEntity.UseSpellGoal
Direct Known Subclasses:
EvokerEntity.AttackSpellGoal, EvokerEntity.SummonSpellGoal, EvokerEntity.WololoSpellGoal, IllusionerEntity.BlindnessSpellGoal, IllusionerEntity.MirrorSpellGoal
Enclosing class:
SpellcastingIllagerEntity

public abstract class SpellcastingIllagerEntity.UseSpellGoal extends Goal
  • Field Details

    • attackWarmupDelay

      protected int attackWarmupDelay
    • nextAttackTickCount

      protected int nextAttackTickCount
  • Constructor Details

    • UseSpellGoal

      protected UseSpellGoal()
  • 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 SpellcastingIllagerEntity.SpellType getSpell()