java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.RaySpell
Direct Known Subclasses:
Arc, ArcaneLockSpell, Banish, Bubble, Cobwebs, Containment, CurseOfEnfeeblement, CurseOfSoulbinding, CurseOfUndeath, Detonate, Entrapment, FireBreath, FlameRay, Freeze, FrostRay, HealAlly, Ignite, LifeDrain, Meteor, Permafrost, PlayerHand, Poison, RayOfPurification, Reversal, Telekinesis, TrapSlime, Whirlwind, Wither, WizardHand

public abstract class RaySpell extends Spell
  • Field Details

    • Y_OFFSET

      protected static final double Y_OFFSET
      See Also:
    • particleSpacing

      protected double particleSpacing
    • particleJitter

      protected double particleJitter
    • particleVelocity

      protected double particleVelocity
    • ignoreLivingEntities

      protected boolean ignoreLivingEntities
    • hitLiquids

      protected boolean hitLiquids
    • ignoreUncollidables

      protected boolean ignoreUncollidables
    • aimAssist

      protected float aimAssist
  • Constructor Details

    • RaySpell

      public RaySpell()
  • Method Details

    • particleSpacing

      public Spell particleSpacing(double particleSpacing)
    • particleJitter

      public Spell particleJitter(double particleJitter)
    • particleVelocity

      public Spell particleVelocity(double particleVelocity)
    • ignoreLivingEntities

      public Spell ignoreLivingEntities(boolean ignoreLivingEntities)
    • hitLiquids

      public Spell hitLiquids(boolean hitLiquids)
    • ignoreUncollidables

      public Spell ignoreUncollidables(boolean ignoreUncollidables)
    • aimAssist

      public Spell aimAssist(float aimAssist)
    • 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
    • onEntityHit

      protected abstract boolean onEntityHit(CastContext ctx, net.minecraft.world.phys.EntityHitResult entityHit, net.minecraft.world.phys.Vec3 origin)
    • onBlockHit

      protected abstract boolean onBlockHit(CastContext ctx, net.minecraft.world.phys.BlockHitResult blockHit, net.minecraft.world.phys.Vec3 origin)
    • onMiss

      protected abstract boolean onMiss(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction)
    • shootSpell

      protected boolean shootSpell(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction)
    • spawnParticleRay

      protected void spawnParticleRay(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction, double distance)
    • spawnParticle

      protected void spawnParticle(CastContext ctx, double x, double y, double z, double vx, double vy, double vz)