Class EnchantmentBookApplyEvent

  • All Implemented Interfaces:
    Cancellable

    public class EnchantmentBookApplyEvent
    extends Event
    implements Cancellable
    An event that's fired every time a player tries to apply an enchantment book to an item
    • Method Detail

      • getEnchantment

        public ActiveEnchantment getEnchantment()
        Returns the enchantment about to be applied
        Returns:
        the enchantment about to be applied
      • getHolder

        public EnchantmentHolder getHolder()
        Returns the holder that the active enchantment is about to be added to
        Returns:
        the holder that the active enchantment is about to be added to
      • setCancelled

        public void setCancelled​(boolean cancelled)
        Specified by:
        setCancelled in interface Cancellable