Class SummonSkeletonLegion
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.MinionSpell<net.minecraft.world.entity.monster.AbstractSkeleton>
com.binaris.wizardry.content.spell.necromancy.SummonSkeletonLegion
public class SummonSkeletonLegion
extends MinionSpell<net.minecraft.world.entity.monster.AbstractSkeleton>
-
Field Summary
Fields inherited from class com.binaris.wizardry.content.spell.abstr.MinionSpell
flying, HEALTH_MODIFIER, minionFactory, POTENCY_ATTRIBUTE_MODIFIER, shouldDeleteBaseGoals, shouldFollowOwnerFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMinionExtras(net.minecraft.world.entity.monster.AbstractSkeleton minion, CastContext ctx, int alreadySpawned) Applies additional effects or modifications to the minion after it has been created and its lifetime has been set, but before it is added to the world.protected net.minecraft.world.entity.monster.AbstractSkeletoncreateMinion(net.minecraft.world.level.Level world, @Nullable net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) Creates the minion entity.protected @NotNull SpellPropertiesThis method is where you should set the default properties for your spell when creating a new spell class.Methods inherited from class com.binaris.wizardry.content.spell.abstr.MinionSpell
canCastByEntity, canCastByLocation, cast, cast, cast, extraConditions, flying, requiresPacket, setLifetime, setSearchNearbyTargets, setShouldDeleteGoals, setShouldFollowOwner, spawnMinionsMethods inherited from class com.binaris.wizardry.api.content.spell.Spell
assignProperties, endCast, equals, getAction, getChargeUp, getCooldown, getCost, getDesc, getDescriptionFormatted, getDescriptionId, getElement, getIcon, getLocation, getLoopSounds, getOrCreateDescriptionId, getOrCreateLocation, getPitch, getPitchVariation, getProperties, getTier, getType, getVolume, isEnabled, isInstantCast, onCharge, playSound, playSound, playSound, playSoundLoop, playSoundLoop, property, soundValues, toString
-
Constructor Details
-
SummonSkeletonLegion
public SummonSkeletonLegion()
-
-
Method Details
-
createMinion
protected net.minecraft.world.entity.monster.AbstractSkeleton createMinion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers) Description copied from class:MinionSpellCreates the minion entity. This is called during the casting process, and allows you to modify the minion before it is added to the world by applying modifiers or passing the caster as an argument. By default, this just calls the minion factory, but it can be overridden to provide more complex behavior.- Overrides:
createMinionin classMinionSpell<net.minecraft.world.entity.monster.AbstractSkeleton>- Parameters:
world- The world the minion is being created in.caster- The caster of the spell, if available. This may be null if the spell is being cast by a non-entity or if the caster is not available for some reason.modifiers- The spell modifiers that may affect the minion's attributes or behavior.- Returns:
- The created minion entity.
-
addMinionExtras
protected void addMinionExtras(net.minecraft.world.entity.monster.AbstractSkeleton minion, CastContext ctx, int alreadySpawned) Description copied from class:MinionSpellApplies additional effects or modifications to the minion after it has been created and its lifetime has been set, but before it is added to the world. This is called for each minion that is spawned, and allows you to apply spell-specific behavior or effects to the minions.- Overrides:
addMinionExtrasin classMinionSpell<net.minecraft.world.entity.monster.AbstractSkeleton>- Parameters:
minion- The minion entity that has been created and had its lifetime set, but has not yet been added to the world.ctx- The context of the spell cast, which may contain useful information for modifying the minion.alreadySpawned- The number of minions that have already been spawned by this spell cast. This can be used to apply different effects to different minions if multiple are spawned.
-
properties
Description copied from class:SpellThis method is where you should set the default properties for your spell when creating a new spell class. This method is called in the constructor of the Spell class, and the properties returned by this method are assigned to the spell's properties field.- Overrides:
propertiesin classMinionSpell<net.minecraft.world.entity.monster.AbstractSkeleton>- Returns:
- A SpellProperties object with the default properties for your spell.
-