public abstract class SpellcastingIllagerEntity.CastSpellGoal extends Goal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
protected int |
spellCooldown |
protected int |
startTime |
| Modifier | Constructor and Description |
|---|---|
protected |
CastSpellGoal() |
| Modifier and Type | Method and 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() |
canStop, getControls, setControls, stop, toStringpublic boolean shouldContinue()
shouldContinue in class Goalprotected abstract void castSpell()
protected int getInitialCooldown()
protected abstract int getSpellTicks()
protected abstract int startTimeDelay()
@Nullable protected abstract SoundEvent getSoundPrepare()
protected abstract SpellcastingIllagerEntity.Spell getSpell()