Interface OminousBottleMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder, PersistentDataViewHolder

public interface OminousBottleMeta extends ItemMeta
Represents an ominous bottle with an amplifier of the bad omen effect.
  • Method Details

    • hasAmplifier

      boolean hasAmplifier()
      Checks for the presence of an amplifier.
      Returns:
      true if a customer amplifier is applied
    • getAmplifier

      int getAmplifier()
      Gets the amplifier amount for an Ominous Bottle's bad omen effect.

      Plugins should check that hasAmplifier() returns true before calling this method.

      Returns:
      amplifier
    • setAmplifier

      void setAmplifier(int amplifier)
      Sets the amplifier amount for an Ominous Bottle's bad omen effect.
      Parameters:
      amplifier - between 0 and 4
    • clone

      Specified by:
      clone in interface ItemMeta