Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolderpublic interface BannerMeta extends ItemMeta
| Modifier and Type | Method | Description | 
|---|---|---|
| void | addPattern(@NotNull Pattern pattern) | Adds a new pattern on top of the existing
 patterns | 
| @Nullable DyeColor | getBaseColor() | Deprecated. 
 banner color is now stored as the data value, not meta. | 
| @NotNull Pattern | getPattern(int i) | Returns the pattern at the specified index | 
| @NotNull List<Pattern> | getPatterns() | Returns a list of patterns on this banner | 
| int | numberOfPatterns() | Returns the number of patterns on this
 banner | 
| @NotNull Pattern | removePattern(int i) | Removes the pattern at the specified index | 
| void | setBaseColor(@Nullable DyeColor color) | Deprecated. 
 banner color is now stored as the data value, not meta. | 
| void | setPattern(int i,
          @NotNull Pattern pattern) | Sets the pattern at the specified index | 
| void | setPatterns(@NotNull List<Pattern> patterns) | Sets the patterns used on this banner | 
serializeaddAttributeModifier, addEnchant, addItemFlags, clone, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersiongetPersistentDataContainer@Deprecated @Nullable @Nullable DyeColor getBaseColor()
@Deprecated void setBaseColor(@Nullable @Nullable DyeColor color)
color - the base color@NotNull @NotNull List<Pattern> getPatterns()
void setPatterns(@NotNull
                 @NotNull List<Pattern> patterns)
patterns - the new list of patternsvoid addPattern(@NotNull
                @NotNull Pattern pattern)
pattern - the new pattern to add@NotNull @NotNull Pattern getPattern(int i)
i - the indexIndexOutOfBoundsException - when index is not in [0, numberOfPatterns()) range@NotNull @NotNull Pattern removePattern(int i)
i - the indexIndexOutOfBoundsException - when index is not in [0, numberOfPatterns()) rangevoid setPattern(int i,
                @NotNull
                @NotNull Pattern pattern)
i - the indexpattern - the new patternIndexOutOfBoundsException - when index is not in [0, numberOfPatterns()) rangeint numberOfPatterns()
Copyright © 2020. All rights reserved.