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
public abstract class SpellcastingIllagerEntity.UseSpellGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description protected int
attackWarmupDelay
protected int
nextAttackTickCount
-
Constructor Summary
Constructors Modifier Constructor Description protected
UseSpellGoal()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
protected abstract int
getCastingInterval()
protected abstract int
getCastingTime()
protected int
getCastWarmupTime()
protected abstract SpellcastingIllagerEntity.SpellType
getSpell()
protected abstract SoundEvent
getSpellPrepareSound()
protected abstract void
performSpellCasting()
void
start()
void
tick()
-
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
performSpellCasting
protected abstract void performSpellCasting()
-
getCastWarmupTime
protected int getCastWarmupTime()
-
getCastingTime
protected abstract int getCastingTime()
-
getCastingInterval
protected abstract int getCastingInterval()
-
getSpellPrepareSound
@Nullable protected abstract SoundEvent getSpellPrepareSound()
-
getSpell
protected abstract SpellcastingIllagerEntity.SpellType getSpell()
-
-