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
FieldsModifier and TypeFieldDescriptionprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanUse()protected abstract intprotected abstract intprotected intprotected abstract SpellcastingIllagerEntity.SpellTypegetSpell()protected abstract SoundEventprotected abstract voidvoidstart()voidtick()
-
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:
canContinueToUsein 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
-