Class GaleatiSuper

java.lang.Object
net.pottercraft.ollivanders2.spell.O2Spell
net.pottercraft.ollivanders2.spell.GaleatiSuper
Direct Known Subclasses:
HERBIFORS, MELOFORS

public abstract class GaleatiSuper extends O2Spell
Sets a player's helmet to a specific block type.

In HP, these would be Transfiguration spells but for code purposes they behave like charm projectiles, so we extend Charms then override the spell type.

  • Constructor Details

    • GaleatiSuper

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

      public GaleatiSuper(@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
  • Method Details

    • doCheckEffect

      protected void doCheckEffect()
      Targets a player in radius of the projectile and changes their helmet.
      Specified by:
      doCheckEffect in class O2Spell