Class ForceArrowSpell


public class ForceArrowSpell extends ArrowSpell<ForceArrow>
  • Constructor Details

    • ForceArrowSpell

      public ForceArrowSpell()
  • Method Details

    • addArrowExtras

      protected void addArrowExtras(CastContext ctx, ForceArrow arrow)
      Description copied from class: ArrowSpell
      Makes changes to arrows before it's spawned. Override this is subclasses to apply special effects
      Overrides:
      addArrowExtras in class ArrowSpell<ForceArrow>
      Parameters:
      ctx - The context of the spell cast, which may contain useful information for modifying the arrow.
      arrow - The arrow instance to modify.
    • properties

      @NotNull protected @NotNull SpellProperties properties()
      Description copied from class: Spell
      This 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:
      properties in class ArrowSpell<ForceArrow>
      Returns:
      A SpellProperties object with the default properties for your spell.