Cloneable, ConfigurationSerializable, ItemMetapublic interface BannerMeta extends ItemMeta
ItemMeta.Spigot| Modifier and Type | Method | 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
|
serializeaddAttributeModifier, addEnchant, addItemFlags, clone, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomTagContainer, getDestroyableKeys, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setDestroyableKeys, setDisplayName, setLocalizedName, setLore, setPlaceableKeys, setUnbreakable, spigot@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 © 2020. All rights reserved.