Class SNUFFLIFORS

All Implemented Interfaces:
org.bukkit.event.Listener

public class SNUFFLIFORS extends ItemToEntityTransfiguration
The Snufflifors Spell (Snufflifors) is a spell used to transfigure books into mice.

Baby foxes are used as the MC approximation of mice (since rabbits, which are probably closer, have their own spell already - lapifors).

See Also:
  • Constructor Details

    • SNUFFLIFORS

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

      public SNUFFLIFORS(@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

    • getTargetBlock

      @Nullable public @Nullable org.bukkit.block.Block getTargetBlock()
      Get the block at the current projectile location. Normally block transfiguration projectiles continue until they hit a solif block but in this case we want to transfigure a non-solid (Item) block.
      Overrides:
      getTargetBlock in class O2Spell
      Returns:
      the block at the current projectile location