Class CELATUM
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:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.item.enchantment.Enchantment
args, common, enchantmentType, lore, magnitude, p -
Constructor Summary
ConstructorsConstructorDescriptionCELATUM(@NotNull Ollivanders2 plugin, int mag, @Nullable String args, @Nullable String itemLore) Constructor for creating a CELATUM enchantment instance. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoEntityPickupItem(@NotNull org.bukkit.event.entity.EntityPickupItemEvent event) No special handling for player item pickup events.voiddoInventoryPickupItem(@NotNull org.bukkit.event.inventory.InventoryPickupItemEvent event) Prevent hoppers and block inventories from picking up celatum-enchanted items.voiddoItemDrop(@NotNull org.bukkit.event.player.PlayerDropItemEvent event) No special handling for item drop events.voiddoItemHeld(@NotNull org.bukkit.event.player.PlayerItemHeldEvent event) No special handling for item held events.Methods inherited from class net.pottercraft.ollivanders2.item.enchantment.Enchantment
doItemDespawn, getArgs, getMagnitude, getName, getType, isHoldingEnchantedItem
-
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 instancemag- the magnitude (power level) of this enchantmentargs- optional configuration arguments specific to this enchantment instanceitemLore- 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:
doEntityPickupItemin classEnchantment- 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:
doInventoryPickupItemin classEnchantment- 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:
doItemHeldin classEnchantment- 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:
doItemDropin classEnchantment- Parameters:
event- the player drop item event (not used)
-