Class AreaEffectSpell

java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.AreaEffectSpell
Direct Known Subclasses:
BlindingFlash, Enrage, Firestorm, FontOfMana, ForestsCurse, GroupHeal, IceAge, InvigoratingPresence, PlagueOfDarkness

public abstract class AreaEffectSpell extends Spell
  • Field Details

    • targetAllies

      protected boolean targetAllies
    • alwaysSucceed

      protected boolean alwaysSucceed
    • particleDensity

      protected float particleDensity
  • Constructor Details

    • AreaEffectSpell

      public AreaEffectSpell()
  • Method Details

    • targetAllies

      public AreaEffectSpell targetAllies(boolean targetAllies)
    • alwaysSucceed

      public AreaEffectSpell alwaysSucceed(boolean alwaysSucceed)
    • particleDensity

      public AreaEffectSpell particleDensity(float particleDensity)
    • canCastByEntity

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

      public boolean canCastByLocation()
      Overrides:
      canCastByLocation 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
    • findAndAffectEntities

      protected boolean findAndAffectEntities(CastContext ctx, net.minecraft.world.phys.Vec3 origin)
    • affectEntity

      protected abstract boolean affectEntity(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.entity.LivingEntity target, int targetCount)
    • spawnParticleEffect

      protected void spawnParticleEffect(CastContext ctx, net.minecraft.world.phys.Vec3 origin, double radius)
    • spawnParticle

      protected void spawnParticle(net.minecraft.world.level.Level world, double x, double y, double z)