Class NecromancerEntity.WololoHorseSpellGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
com.idark.valoria.registries.entity.living.AbstractNecromancer.SpellcasterUseSpellGoal
com.idark.valoria.registries.entity.living.NecromancerEntity.WololoHorseSpellGoal
- Enclosing class:
- NecromancerEntity
public class NecromancerEntity.WololoHorseSpellGoal
extends AbstractNecromancer.SpellcasterUseSpellGoal
-
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
Fields inherited from class com.idark.valoria.registries.entity.living.AbstractNecromancer.SpellcasterUseSpellGoal
attackWarmupDelay, nextAttackTickCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether an in-progress EntityAIBase should continue executingboolean
canUse()
Returns whether execution should begin.protected int
protected int
protected int
protected AbstractNecromancer.necromancerSpell
getSpell()
protected net.minecraft.sounds.SoundEvent
protected void
void
stop()
Reset the task's internal state.Methods inherited from class com.idark.valoria.registries.entity.living.AbstractNecromancer.SpellcasterUseSpellGoal
start, tick
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Constructor Details
-
WololoHorseSpellGoal
public WololoHorseSpellGoal()
-
-
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.- Overrides:
canUse
in classAbstractNecromancer.SpellcasterUseSpellGoal
-
canContinueToUse
public boolean canContinueToUse()Returns whether an in-progress EntityAIBase should continue executing- Overrides:
canContinueToUse
in classAbstractNecromancer.SpellcasterUseSpellGoal
-
stop
public void stop()Reset the task's internal state. Called when this task is interrupted by another one- Overrides:
stop
in classnet.minecraft.world.entity.ai.goal.Goal
-
performSpellCasting
protected void performSpellCasting()- Specified by:
performSpellCasting
in classAbstractNecromancer.SpellcasterUseSpellGoal
-
getCastWarmupTime
protected int getCastWarmupTime()- Overrides:
getCastWarmupTime
in classAbstractNecromancer.SpellcasterUseSpellGoal
-
getCastingTime
protected int getCastingTime()- Specified by:
getCastingTime
in classAbstractNecromancer.SpellcasterUseSpellGoal
-
getCastingInterval
protected int getCastingInterval()- Specified by:
getCastingInterval
in classAbstractNecromancer.SpellcasterUseSpellGoal
-
getSpellPrepareSound
protected net.minecraft.sounds.SoundEvent getSpellPrepareSound()- Specified by:
getSpellPrepareSound
in classAbstractNecromancer.SpellcasterUseSpellGoal
-
getSpell
- Specified by:
getSpell
in classAbstractNecromancer.SpellcasterUseSpellGoal
-