public abstract class SpellcastingIllagerEntity.UseSpellGoal extends Goal
| Modifier and Type | Field and Description |
|---|---|
protected int |
spellCooldown |
protected int |
spellWarmup |
| Constructor and Description |
|---|
UseSpellGoal() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
castSpell() |
protected abstract int |
getCastingInterval() |
protected abstract int |
getCastingTime() |
protected int |
getCastWarmupTime() |
protected abstract SoundEvent |
getSpellPrepareSound() |
protected abstract SpellcastingIllagerEntity.SpellType |
getSpellType() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, resetTask, setMutexFlagspublic boolean shouldExecute()
shouldExecute in class Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic void startExecuting()
startExecuting in class Goalprotected abstract void castSpell()
protected int getCastWarmupTime()
protected abstract int getCastingTime()
protected abstract int getCastingInterval()
@Nullable protected abstract SoundEvent getSpellPrepareSound()
protected abstract SpellcastingIllagerEntity.SpellType getSpellType()