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, setMutexFlags, toString
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal
protected abstract void castSpell()
protected int getCastWarmupTime()
protected abstract int getCastingTime()
protected abstract int getCastingInterval()
@Nullable protected abstract SoundEvent getSpellPrepareSound()
protected abstract SpellcastingIllagerEntity.SpellType getSpellType()