Class AbstractNecromancer.SpellcasterUseSpellGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
com.idark.valoria.registries.entity.living.AbstractNecromancer.SpellcasterUseSpellGoal
- Direct Known Subclasses:
NecromancerEntity.HealSelfSpellGoal
,NecromancerEntity.HealTargetSpellGoal
,NecromancerEntity.WololoHorseSpellGoal
,NecromancerEntity.WololoSpellGoal
- Enclosing class:
- AbstractNecromancer
protected abstract class AbstractNecromancer.SpellcasterUseSpellGoal
extends net.minecraft.world.entity.ai.goal.Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether an in-progress EntityAIBase should continue executingboolean
canUse()
Returns whether execution should begin.protected abstract int
protected abstract int
protected int
protected abstract AbstractNecromancer.necromancerSpell
getSpell()
protected abstract net.minecraft.sounds.SoundEvent
protected abstract void
void
start()
Execute a one shot task or start executing a continuous taskvoid
tick()
Keep ticking a continuous task that has already been startedMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, stop, toString
-
Field Details
-
attackWarmupDelay
protected int attackWarmupDelay -
nextAttackTickCount
protected int nextAttackTickCount
-
-
Constructor Details
-
SpellcasterUseSpellGoal
protected SpellcasterUseSpellGoal()
-
-
Method Details
-
canUse
public boolean canUse()Returns whether execution should begin. You can also read and cache any state necessary for execution in this method as well.- Specified by:
canUse
in classnet.minecraft.world.entity.ai.goal.Goal
-
canContinueToUse
public boolean canContinueToUse()Returns whether an in-progress EntityAIBase should continue executing- Overrides:
canContinueToUse
in classnet.minecraft.world.entity.ai.goal.Goal
-
start
public void start()Execute a one shot task or start executing a continuous task- Overrides:
start
in classnet.minecraft.world.entity.ai.goal.Goal
-
tick
public void tick()Keep ticking a continuous task that has already been started- Overrides:
tick
in classnet.minecraft.world.entity.ai.goal.Goal
-
performSpellCasting
protected abstract void performSpellCasting() -
getCastWarmupTime
protected int getCastWarmupTime() -
getCastingTime
protected abstract int getCastingTime() -
getCastingInterval
protected abstract int getCastingInterval() -
getSpellPrepareSound
@Nullable protected abstract net.minecraft.sounds.SoundEvent getSpellPrepareSound() -
getSpell
-