Class CELATUM


public final class CELATUM extends ItemEnchant
The concealment charm - used to hide secret messages in books

CELATUM

Since:
2.21
See Also:
  • Field Details

    • pageDelimiter

      public static String pageDelimiter
      The page delimiter used when the books pages get compressed to one string
  • Constructor Details

    • CELATUM

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

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

    • initEnchantmentArgs

      protected void initEnchantmentArgs(org.bukkit.inventory.ItemStack bookItem)
      Set the enchantment arg string to be the text of the book
      Overrides:
      initEnchantmentArgs in class ItemEnchant
      Parameters:
      bookItem - the item to enchant
    • alterItem

      protected org.bukkit.entity.Item alterItem(org.bukkit.entity.Item item)
      Delete the pages in the book so it is blank
      Overrides:
      alterItem in class ItemEnchant
      Parameters:
      item - the item to affect
      Returns:
      the altered item