public abstract class SpellcastingIllagerEntity.UseSpellGoal extends Goal
修飾子とタイプ | フィールドと説明 |
---|---|
protected int |
spellCooldown |
protected int |
spellWarmup |
コンストラクタと説明 |
---|
UseSpellGoal() |
修飾子とタイプ | メソッドと説明 |
---|---|
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()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether execution should begin.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
tick()
Keep ticking a continuous task that has already been started
|
getMutexFlags, isPreemptible, resetTask, setMutexFlags, toString
public boolean shouldExecute()
shouldExecute
クラス内 Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
クラス内 Goal
public void startExecuting()
startExecuting
クラス内 Goal
public void tick()
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()