Package org.bukkit.inventory.meta
Interface BannerMeta
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPattern(@NotNull Pattern pattern) Adds a new pattern on top of the existing patternsDeprecated.banner color is now stored as the data value, not meta.getPattern(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 indexvoidsetBaseColor(@Nullable DyeColor color) Deprecated.banner color is now stored as the data value, not meta.voidsetPattern(int i, @NotNull Pattern pattern) Sets the pattern at the specified indexvoidsetPatterns(@NotNull 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, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
getBaseColorDeprecated.banner color is now stored as the data value, not meta.Returns the base color for this banner- Returns:
- the base color
 
- 
setBaseColorDeprecated.banner color is now stored as the data value, not meta.Sets the base color for this banner- Parameters:
- color- the base color
 
- 
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
 
 
-