Class NecromancerEntity.HealTargetSpellGoal
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.HealTargetSpellGoal
- Enclosing class:
- NecromancerEntity
public class NecromancerEntity.HealTargetSpellGoal
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
canUse()
Returns whether execution should begin.protected int
protected int
protected int
protected AbstractNecromancer.necromancerSpell
getSpell()
protected net.minecraft.sounds.SoundEvent
protected void
Methods inherited from class com.idark.valoria.registries.entity.living.AbstractNecromancer.SpellcasterUseSpellGoal
canContinueToUse, start, tick
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, stop, toString
-
Constructor Details
-
HealTargetSpellGoal
public HealTargetSpellGoal()
-
-
Method Details
-
canUse
public boolean canUse()Description copied from class:AbstractNecromancer.SpellcasterUseSpellGoal
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
-
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
-
performSpellCasting
protected void performSpellCasting()- Specified by:
performSpellCasting
in classAbstractNecromancer.SpellcasterUseSpellGoal
-
getSpellPrepareSound
protected net.minecraft.sounds.SoundEvent getSpellPrepareSound()- Specified by:
getSpellPrepareSound
in classAbstractNecromancer.SpellcasterUseSpellGoal
-
getSpell
- Specified by:
getSpell
in classAbstractNecromancer.SpellcasterUseSpellGoal
-