Class ALIQUAM_FLOO

java.lang.Object
net.pottercraft.ollivanders2.spell.O2Spell
net.pottercraft.ollivanders2.spell.ALIQUAM_FLOO

public final class ALIQUAM_FLOO extends O2Spell
Spell that registers fireplaces with the Floo Network for magical transportation.

When cast at a fire or campfire with a sign above it, the spell reads the sign (4 lines) to get the fireplace name and registers it as a permanent Floo Network entry. Players can then use Floo Powder to travel to this fireplace. The fireplace name is checked for duplicates to prevent overwriting existing entries.

See Also:
  • Constructor Details

    • ALIQUAM_FLOO

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

      public ALIQUAM_FLOO(@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()
      Registers a fireplace with the Floo Network if the target is a fire/campfire with a sign above it.

      Checks that the projectile hit a fire or campfire block, reads the four-line sign above it for the fireplace name, verifies no duplicate names exist, and creates a permanent stationary spell to represent the registered fireplace on the network.

      Specified by:
      doCheckEffect in class O2Spell