Class SpellcasterIllager.SpellcasterUseSpellGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.monster.illager.SpellcasterIllager.SpellcasterUseSpellGoal
- Direct Known Subclasses:
Evoker.EvokerAttackSpellGoal, Evoker.EvokerSummonSpellGoal, Evoker.EvokerWololoSpellGoal, Illusioner.IllusionerBlindnessSpellGoal, Illusioner.IllusionerMirrorSpellGoal
- Enclosing class:
SpellcasterIllager
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanUse()protected abstract intprotected abstract intprotected intprotected abstract SpellcasterIllager.IllagerSpellgetSpell()protected abstract @Nullable SoundEventprotected abstract voidvoidstart()voidtick()Methods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, stop, toString
-
Field Details
-
attackWarmupDelay
protected int attackWarmupDelay -
nextAttackTickCount
protected int nextAttackTickCount
-
-
Constructor Details
-
SpellcasterUseSpellGoal
protected SpellcasterUseSpellGoal()
-
-
Method Details
-
canUse
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classGoal
-
start
-
tick
-
performSpellCasting
protected abstract void performSpellCasting() -
getCastWarmupTime
protected int getCastWarmupTime() -
getCastingTime
protected abstract int getCastingTime() -
getCastingInterval
protected abstract int getCastingInterval() -
getSpellPrepareSound
-
getSpell
-