Class ACCIO


public final class ACCIO extends Knockback
Summoning Charm that pulls items toward the caster.

When the projectile hits an item, the spell pulls it toward the caster based on the caster's skill level. The strength and distance of the pull are determined by the caster's experience with the spell.

See Also:
  • Field Details

    • minDistanceConfig

      public static int minDistanceConfig
      The min distance
    • maxDistanceConfig

      public static int maxDistanceConfig
      The max distance
    • strengthReducerConfig

      public static int strengthReducerConfig
      The divisor for usesModifier to determine spell strength
  • Constructor Details

    • ACCIO

      public ACCIO(Ollivanders2 plugin)
      Default constructor for use in generating spell text. Do not use to cast the spell.
      Parameters:
      plugin - the Ollivanders2 plugin
    • ACCIO

      public ACCIO(@NotNull @NotNull Ollivanders2 plugin, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Double rightWand)
      Constructor.
      Parameters:
      plugin - a callback to the MC plugin
      player - the player who cast this spell
      rightWand - which wand the player was using