java.lang.Object
net.pottercraft.ollivanders2.item.enchantment.Enchantment
net.pottercraft.ollivanders2.item.enchantment.CELATUM

public class CELATUM extends Enchantment
The concealment charm - used to hide secret messages in books.

Enchantment behavior:

  • Player pickup: no special behavior, players can pick up celatum items normally
  • Hopper pickup: blocked, hoppers cannot collect celatum-enchanted items
  • Drop events: no special behavior, items can be dropped normally
  • Slot switching: no special behavior, celatum status is independent of player actions
See Also:
  • Constructor Details

    • CELATUM

      public CELATUM(@NotNull @NotNull Ollivanders2 plugin, int mag, @Nullable @Nullable String args, @Nullable @Nullable String itemLore)
      Constructor for creating a CELATUM enchantment instance.
      Parameters:
      plugin - the Ollivanders2 plugin instance
      mag - the magnitude (power level) of this enchantment
      args - optional configuration arguments specific to this enchantment instance
      itemLore - optional custom lore to display on the enchanted item
  • Method Details

    • doEntityPickupItem

      public void doEntityPickupItem(@NotNull @NotNull org.bukkit.event.entity.EntityPickupItemEvent event)
      No special handling for player item pickup events.

      CELATUM enchantments do not respond to players picking up items. Players can freely pick up celatum-enchanted items without any restrictions or special effects. The enchantment only affects whether hoppers and other block inventories can collect the items.

      Specified by:
      doEntityPickupItem in class Enchantment
      Parameters:
      event - the entity item pickup event (not used)
    • doInventoryPickupItem

      public void doInventoryPickupItem(@NotNull @NotNull org.bukkit.event.inventory.InventoryPickupItemEvent event)
      Prevent hoppers and block inventories from picking up celatum-enchanted items.

      Celatum-enchanted items cannot be picked up by hoppers or other automated inventory systems. This prevents the items from being automatically collected, allowing them to persist in specific world locations without being moved into storage systems.

      Specified by:
      doInventoryPickupItem in class Enchantment
      Parameters:
      event - the inventory pickup item event
    • doItemHeld

      public void doItemHeld(@NotNull @NotNull org.bukkit.event.player.PlayerItemHeldEvent event)
      No special handling for item held events.

      CELATUM enchantments do not respond to players switching between hotbar slots. The enchantment's concealment behavior is independent of what the player is currently holding and applies to the item at all times.

      Specified by:
      doItemHeld in class Enchantment
      Parameters:
      event - the player item held event (not used)
    • doItemDrop

      public void doItemDrop(@NotNull @NotNull org.bukkit.event.player.PlayerDropItemEvent event)
      No special handling for item drop events.

      CELATUM enchantments do not respond to players dropping items. The enchantment's concealment behavior applies to the item whether it's in a player's inventory or dropped in the world. Items can be dropped freely without any restrictions.

      Specified by:
      doItemDrop in class Enchantment
      Parameters:
      event - the player drop item event (not used)