Class AbstractNecromancer.SpellcasterUseSpellGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
com.idark.valoria.registries.entity.living.AbstractNecromancer.SpellcasterUseSpellGoal
Direct Known Subclasses:
NecromancerEntity.HealSelfSpellGoal, NecromancerEntity.HealTargetSpellGoal, NecromancerEntity.WololoHorseSpellGoal, NecromancerEntity.WololoSpellGoal
Enclosing class:
AbstractNecromancer

protected abstract class AbstractNecromancer.SpellcasterUseSpellGoal extends net.minecraft.world.entity.ai.goal.Goal
  • Field Details

    • attackWarmupDelay

      protected int attackWarmupDelay
    • nextAttackTickCount

      protected int nextAttackTickCount
  • Constructor Details

    • SpellcasterUseSpellGoal

      protected SpellcasterUseSpellGoal()
  • Method Details

    • canUse

      public boolean canUse()
      Returns whether execution should begin. You can also read and cache any state necessary for execution in this method as well.
      Specified by:
      canUse in class net.minecraft.world.entity.ai.goal.Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Returns whether an in-progress EntityAIBase should continue executing
      Overrides:
      canContinueToUse in class net.minecraft.world.entity.ai.goal.Goal
    • start

      public void start()
      Execute a one shot task or start executing a continuous task
      Overrides:
      start in class net.minecraft.world.entity.ai.goal.Goal
    • tick

      public void tick()
      Keep ticking a continuous task that has already been started
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.Goal
    • performSpellCasting

      protected abstract void performSpellCasting()
    • getCastWarmupTime

      protected int getCastWarmupTime()
    • getCastingTime

      protected abstract int getCastingTime()
    • getCastingInterval

      protected abstract int getCastingInterval()
    • getSpellPrepareSound

      @Nullable protected abstract net.minecraft.sounds.SoundEvent getSpellPrepareSound()
    • getSpell

      protected abstract AbstractNecromancer.necromancerSpell getSpell()