Class SummonSkeleton

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.SummonSkeleton

public class SummonSkeleton extends MinionSpell<net.minecraft.world.entity.monster.AbstractSkeleton>
  • Constructor Details

    • SummonSkeleton

      public SummonSkeleton()
  • 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: MinionSpell
      Creates 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:
      createMinion in class MinionSpell<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: MinionSpell
      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. This is called for each minion that is spawned, and allows you to apply spell-specific behavior or effects to the minions.
      Overrides:
      addMinionExtras in class MinionSpell<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.