Package org.bukkit.inventory.meta
Interface BannerMeta
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder
- All Known Subinterfaces:
- ShieldMeta
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPattern(Pattern pattern) Adds a new pattern on top of the existing patternsgetPattern(int i) Returns the pattern at the specified indexReturns a list of patterns on this bannerintReturns the number of patterns on this bannerremovePattern(int i) Removes the pattern at the specified indexvoidsetPattern(int i, Pattern pattern) Sets the pattern at the specified indexvoidsetPatterns(List<Pattern> patterns) Sets the patterns used on this bannerMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, clone, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getConsumable, getCustomModelData, getCustomModelDataComponent, getCustomTagContainer, getDamageResistant, getDisplayName, getEnchantable, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getEquippable, getFood, getItemFlags, getItemModel, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getMaxStackSize, getRarity, getTool, getTooltipStyle, getUseCooldown, getUseRemainder, hasAttributeModifiers, hasConflictingEnchant, hasConsumable, hasCustomModelData, hasDamageResistant, hasDisplayName, hasEnchant, hasEnchantable, hasEnchantmentGlintOverride, hasEnchants, hasEquippable, hasFood, hasItemFlag, hasItemModel, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, hasTooltipStyle, hasUseCooldown, hasUseRemainder, isFireResistant, isGlider, isHideTooltip, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setConsumable, setCustomModelData, setCustomModelDataComponent, setDamageResistant, setDisplayName, setEnchantable, setEnchantmentGlintOverride, setEquippable, setFireResistant, setFood, setGlider, setHideTooltip, setItemModel, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setTooltipStyle, setUnbreakable, setUseCooldown, setUseRemainder, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
getPatternsReturns a list of patterns on this banner- Returns:
- the patterns
 
- 
setPatternsSets the patterns used on this banner- Parameters:
- patterns- the new list of patterns
 
- 
addPatternAdds a new pattern on top of the existing patterns- Parameters:
- pattern- the new pattern to add
 
- 
getPatternReturns the pattern at the specified index- Parameters:
- i- the index
- Returns:
- the pattern
- Throws:
- IndexOutOfBoundsException- when index is not in [0, numberOfPatterns()) range
 
- 
removePatternRemoves the pattern at the specified index- Parameters:
- i- the index
- Returns:
- the removed pattern
- Throws:
- IndexOutOfBoundsException- when index is not in [0, numberOfPatterns()) range
 
- 
setPatternSets the pattern at the specified index- Parameters:
- i- the index
- pattern- the new pattern
- Throws:
- IndexOutOfBoundsException- when index is not in [0, numberOfPatterns()) range
 
- 
numberOfPatternsint numberOfPatterns()Returns the number of patterns on this banner- Returns:
- the number of patterns
 
 
-