public interface BannerMeta extends ItemMeta
Modifier and Type | Method and 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
|
addAttributeModifier, addEnchant, addItemFlags, clone, displayName, displayName, 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, setVersion
serialize
getPersistentDataContainer
@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 © 2021. All rights reserved.