Package org.bukkit.inventory.meta
Interface OminousBottleMeta
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder
@MinecraftExperimental(UPDATE_1_21)
@Experimental
public interface OminousBottleMeta
extends ItemMeta
Represents an ominous bottle with an amplifier of the bad omen effect.
- 
Method SummaryModifier and TypeMethodDescriptionclone()intGets the amplifier amount for an Ominous Bottle's bad omen effect.booleanChecks for the presence of an amplifier.voidsetAmplifier(int amplifier) Sets the amplifier amount for an Ominous Bottle's bad omen effect.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getLocalizedName, getLore, getLoreComponents, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setDisplayNameComponent, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setLocalizedName, setLore, setLoreComponents, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
hasAmplifierboolean hasAmplifier()Checks for the presence of an amplifier.- Returns:
- true if a customer amplifier is applied
 
- 
getAmplifierint 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
 
- 
setAmplifiervoid setAmplifier(int amplifier) Sets the amplifier amount for an Ominous Bottle's bad omen effect.- Parameters:
- amplifier- between 0 and 4
 
- 
clone
 
-