public interface BannerMeta extends ItemMeta
Modifier and Type | Method and Description |
---|---|
void |
addPattern(Pattern pattern)
Adds a new pattern on top of the existing
patterns
|
DyeColor |
getBaseColor()
Returns the base color for this banner
|
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)
Sets the base color for this banner
|
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
|
addEnchant, clone, getDisplayName, getEnchantLevel, getEnchants, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasLore, removeEnchant, setDisplayName, setLore
serialize
DyeColor getBaseColor()
void setBaseColor(DyeColor color)
color
- the base colorList<Pattern> getPatterns()
void setPatterns(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 © 2015. All rights reserved.