Class MinionSpell<T extends net.minecraft.world.entity.Mob>

java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.MinionSpell<T>
Direct Known Subclasses:
SummonIceGiant, SummonSkeleton, SummonSkeletonLegion, SummonWitherSkeleton, SummonZombie

public class MinionSpell<T extends net.minecraft.world.entity.Mob> extends Spell
  • Field Details

    • minionFactory

      protected final Function<net.minecraft.world.level.Level,T extends net.minecraft.world.entity.Mob> minionFactory
    • flying

      protected boolean flying
    • shouldFollowOwner

      protected boolean shouldFollowOwner
    • shouldDeleteBaseGoals

      protected boolean shouldDeleteBaseGoals
  • Constructor Details

    • MinionSpell

      public MinionSpell(Function<net.minecraft.world.level.Level,T> minionFactory)
  • Method Details

    • setShouldFollowOwner

      public MinionSpell<T> setShouldFollowOwner(boolean shouldFollowOwner)
    • setShouldDeleteGoals

      public MinionSpell<T> setShouldDeleteGoals(boolean shouldDeleteGoals)
    • setSearchNearbyTargets

      public MinionSpell<T> setSearchNearbyTargets(boolean searchNearbyTargets)
    • flying

      public MinionSpell<T> flying(boolean flying)
    • canCastByLocation

      public boolean canCastByLocation()
      Overrides:
      canCastByLocation in class Spell
    • canCastByEntity

      public boolean canCastByEntity()
      Overrides:
      canCastByEntity in class Spell
    • cast

      public boolean cast(PlayerCastContext ctx)
      Specified by:
      cast in class Spell
    • cast

      public boolean cast(EntityCastContext ctx)
      Overrides:
      cast in class Spell
    • cast

      public boolean cast(LocationCastContext ctx)
      Overrides:
      cast in class Spell
    • spawnMinions

      protected boolean spawnMinions(CastContext ctx)
    • setLifetime

      protected void setLifetime(T minion, int lifetime)
    • createMinion

      protected T createMinion(net.minecraft.world.level.Level world, @Nullable @Nullable net.minecraft.world.entity.LivingEntity caster, SpellModifiers modifiers)
    • addMinionExtras

      protected void addMinionExtras(T minion, CastContext ctx, int alreadySpawned)
    • extraConditions

      protected boolean extraConditions(CastContext ctx, net.minecraft.core.BlockPos containing)
    • requiresPacket

      public boolean requiresPacket()
      Overrides:
      requiresPacket in class Spell
    • properties

      @NotNull protected @NotNull SpellProperties properties()
      Specified by:
      properties in class Spell