Package org.bukkit.inventory.meta
Interface BannerMeta
- All Superinterfaces:
Cloneable
,ConfigurationSerializable
,ItemMeta
,PersistentDataHolder
- All Known Subinterfaces:
ShieldMeta
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPattern
(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 bannerint
Returns the number of patterns on this bannerremovePattern
(int i) Removes the pattern at the specified indexvoid
setPattern
(int i, Pattern pattern) Sets the pattern at the specified indexvoid
setPatterns
(List<Pattern> patterns) Sets the patterns used on this bannerMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, clone, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, 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, 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, setCustomModelData, setCustomModelDataComponent, setDamageResistant, setDisplayName, setEnchantable, setEnchantmentGlintOverride, setEquippable, setFireResistant, setFood, setGlider, setHideTooltip, setItemModel, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setTooltipStyle, setUnbreakable, setUseCooldown, setUseRemainder, setVersion
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Method Details
-
getPatterns
Returns a list of patterns on this banner- Returns:
- the patterns
-
setPatterns
Sets the patterns used on this banner- Parameters:
patterns
- the new list of patterns
-
addPattern
Adds a new pattern on top of the existing patterns- Parameters:
pattern
- the new pattern to add
-
getPattern
Returns the pattern at the specified index- Parameters:
i
- the index- Returns:
- the pattern
- Throws:
IndexOutOfBoundsException
- when index is not in [0, numberOfPatterns()) range
-
removePattern
Removes the pattern at the specified index- Parameters:
i
- the index- Returns:
- the removed pattern
- Throws:
IndexOutOfBoundsException
- when index is not in [0, numberOfPatterns()) range
-
setPattern
Sets the pattern at the specified index- Parameters:
i
- the indexpattern
- the new pattern- Throws:
IndexOutOfBoundsException
- when index is not in [0, numberOfPatterns()) range
-
numberOfPatterns
int numberOfPatterns()Returns the number of patterns on this banner- Returns:
- the number of patterns
-