java.lang.Cloneable
, ConfigurationSerializable
, ItemMeta
public 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
|
java.util.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(java.util.List<Pattern> patterns) |
Sets the patterns used on this banner
|
serialize
addEnchant, addItemFlags, clone, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot
@Deprecated DyeColor getBaseColor()
@Deprecated void setBaseColor(DyeColor color)
color
- the base colorjava.util.List<Pattern> getPatterns()
void setPatterns(java.util.List<Pattern> patterns)
patterns
- the new list of patternsvoid addPattern(Pattern pattern)
pattern
- the new pattern to addPattern getPattern(int i)
i
- the indexPattern removePattern(int i)
i
- the indexvoid setPattern(int i, Pattern pattern)
i
- the indexpattern
- the new patternint numberOfPatterns()
Copyright © 2018. All rights reserved.