Package org.bukkit.inventory.meta
Interface BannerMeta
- All Superinterfaces:
java.lang.Cloneable,ConfigurationSerializable,ItemMeta
public interface BannerMeta extends ItemMeta
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.meta.ItemMeta
ItemMeta.Spigot -
Method Summary
Modifier and Type Method Description voidaddPattern(Pattern pattern)Adds a new pattern on top of the existing patternsDyeColorgetBaseColor()Returns the base color for this bannerPatterngetPattern(int i)Returns the pattern at the specified indexjava.util.List<Pattern>getPatterns()Returns a list of patterns on this bannerintnumberOfPatterns()Returns the number of patterns on this bannerPatternremovePattern(int i)Removes the pattern at the specified indexvoidsetBaseColor(DyeColor color)Sets the base color for this bannervoidsetPattern(int i, Pattern pattern)Sets the pattern at the specified indexvoidsetPatterns(java.util.List<Pattern> patterns)Sets the patterns used on this bannerMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serializeMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
addEnchant, addItemFlags, clone, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLore, removeEnchant, removeItemFlags, setDisplayName, setLore, spigot
-
Method Details
-
getBaseColor
DyeColor getBaseColor()Returns the base color for this banner- Returns:
- the base color
-
setBaseColor
Sets the base color for this banner- Parameters:
color- the base color
-
getPatterns
java.util.List<Pattern> getPatterns()Returns a list of patterns on this banner- Returns:
- the patterns
-
setPatterns
Sets the patterns used on this banner- Parameters:
patterns- the new list of patterns
-
addPattern
Adds a new pattern on top of the existing patterns- Parameters:
pattern- the new pattern to add
-
getPattern
Returns the pattern at the specified index- Parameters:
i- the index- Returns:
- the pattern
-
removePattern
Removes the pattern at the specified index- Parameters:
i- the index- Returns:
- the removed pattern
-
setPattern
Sets the pattern at the specified index- Parameters:
i- the indexpattern- the new pattern
-
numberOfPatterns
int numberOfPatterns()Returns the number of patterns on this banner- Returns:
- the number of patterns
-