Package net.minecraft.entity.monster
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
-
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 SpellcastingIllagerEntity.SpellType
getSpell()
protected abstract SoundEvent
protected abstract void
void
start()
void
tick()
-
Field Details
-
attackWarmupDelay
protected int attackWarmupDelay -
nextAttackTickCount
protected int nextAttackTickCount
-
-
Constructor Details
-
UseSpellGoal
protected UseSpellGoal()
-
-
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
-