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 int
spellCooldown
protected int
startTime
-
Constructor Summary
Constructors Modifier Constructor Description protected
CastSpellGoal()
-
Method Summary
Modifier and Type Method Description boolean
canStart()
protected abstract void
castSpell()
protected int
getInitialCooldown()
protected abstract SoundEvent
getSoundPrepare()
protected abstract SpellcastingIllagerEntity.Spell
getSpell()
protected abstract int
getSpellTicks()
boolean
shouldContinue()
void
start()
protected abstract int
startTimeDelay()
void
tick()
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:
shouldContinue
in 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
-