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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
protected abstract int
protected abstract int
protected int
protected abstract SpellcasterIllager.IllagerSpell
getSpell()
protected abstract SoundEvent
protected abstract void
void
start()
void
tick()
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, stop, toString
-
Field Details
-
attackWarmupDelay
protected int attackWarmupDelay -
nextAttackTickCount
protected int nextAttackTickCount
-
-
Constructor Details
-
SpellcasterUseSpellGoal
protected SpellcasterUseSpellGoal()
-
-
Method Details
-
canUse
public boolean canUse() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
start
public void start() -
tick
public void tick() -
performSpellCasting
protected abstract void performSpellCasting() -
getCastWarmupTime
protected int getCastWarmupTime() -
getCastingTime
protected abstract int getCastingTime() -
getCastingInterval
protected abstract int getCastingInterval() -
getSpellPrepareSound
-
getSpell
-