Class PORTUS


public final class PORTUS extends ItemEnchant
Creates a port key.

PORTUS

See Also:
  • Constructor Details

    • PORTUS

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

      public PORTUS(@NotNull @NotNull Ollivanders2 plugin, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Double rightWand)
      Constructor. This is here just in case some reflection tries to create this spell.
      Parameters:
      plugin - a callback to the MC plugin
      player - the player who cast this spell
      rightWand - which wand the player was using
  • Method Details

    • canBeEnchanted

      protected boolean canBeEnchanted(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack)
      Can this item be enchanted by this spell? Make sure this location is not protected by apparate limits
      Overrides:
      canBeEnchanted in class ItemEnchant
      Parameters:
      itemStack - the item to check
      Returns:
      true if it can be enchanted, false otherwise