Package net.minecraft.entity.mob
Class SpellcastingIllagerEntity.CastSpellGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.mob.SpellcastingIllagerEntity.CastSpellGoal
- Direct Known Subclasses:
EvokerEntity.ConjureFangsGoal,EvokerEntity.SummonVexGoal,EvokerEntity.WololoGoal,IllusionerEntity.BlindTargetGoal,IllusionerEntity.GiveInvisibilityGoal
- Enclosing class:
- SpellcastingIllagerEntity
public abstract class SpellcastingIllagerEntity.CastSpellGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields Modifier and Type Field Description protected intspellCooldownprotected intstartTime -
Constructor Summary
Constructors Modifier Constructor Description protectedCastSpellGoal() -
Method Summary
Modifier and Type Method Description booleancanStart()protected abstract voidcastSpell()protected intgetInitialCooldown()protected abstract SoundEventgetSoundPrepare()protected abstract SpellcastingIllagerEntity.SpellgetSpell()protected abstract intgetSpellTicks()booleanshouldContinue()voidstart()protected abstract intstartTimeDelay()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, stop, toString
-
Field Details
-
spellCooldown
protected int spellCooldown -
startTime
protected int startTime
-
-
Constructor Details
-
CastSpellGoal
protected CastSpellGoal()
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal
-
start
public void start() -
tick
public void tick() -
castSpell
protected abstract void castSpell() -
getInitialCooldown
protected int getInitialCooldown() -
getSpellTicks
protected abstract int getSpellTicks() -
startTimeDelay
protected abstract int startTimeDelay() -
getSoundPrepare
-
getSpell
-