Class COLLOPORTUS


public final class COLLOPORTUS extends StationarySpell
Locks doors, trapdoors, and chests.
See Also:
  • Constructor Details

    • COLLOPORTUS

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

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

    • createStationarySpell

      @Nullable protected @Nullable O2StationarySpell createStationarySpell()
      Create the colloportus stationary spell at the location if the target block is a door, trapdoor, or chest
      Specified by:
      createStationarySpell in class StationarySpell
      Returns:
      the stationary spell created or null on failure