public interface BannerMeta extends ItemMeta
ItemMeta.Spigot| Modifier and Type | Method and Description |
|---|---|
void |
addPattern(Pattern pattern)
Adds a new pattern on top of the existing
patterns
|
DyeColor |
getBaseColor()
Deprecated.
banner color is now stored as the data value, not meta.
|
Pattern |
getPattern(int i)
Returns the pattern at the specified index
|
List<Pattern> |
getPatterns()
Returns a list of patterns on this banner
|
int |
numberOfPatterns()
Returns the number of patterns on this
banner
|
Pattern |
removePattern(int i)
Removes the pattern at the specified index
|
void |
setBaseColor(DyeColor color)
Deprecated.
banner color is now stored as the data value, not meta.
|
void |
setPattern(int i,
Pattern pattern)
Sets the pattern at the specified index
|
void |
setPatterns(List<Pattern> patterns)
Sets the patterns used on this banner
|
addAttributeModifier, 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, setVersion, spigotserializegetPersistentDataContainer@Deprecated @Nullable DyeColor getBaseColor()
@Deprecated void setBaseColor(@Nullable DyeColor color)
color - the base color@NotNull List<Pattern> getPatterns()
void setPatterns(@NotNull
List<Pattern> patterns)
patterns - the new list of patternsvoid addPattern(@NotNull
Pattern pattern)
pattern - the new pattern to add@NotNull Pattern getPattern(int i)
i - the indexIndexOutOfBoundsException - when index is not in [0, numberOfPatterns()) range@NotNull Pattern removePattern(int i)
i - the indexIndexOutOfBoundsException - when index is not in [0, numberOfPatterns()) rangevoid setPattern(int i,
@NotNull
Pattern pattern)
i - the indexpattern - the new patternIndexOutOfBoundsException - when index is not in [0, numberOfPatterns()) rangeint numberOfPatterns()
Copyright © 2022. All rights reserved.