Package org.bukkit.inventory.meta
Interface BannerMeta
-
- All Superinterfaces:
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addPattern(Pattern pattern)
Adds a new pattern on top of the existing patternsDyeColor
getBaseColor()
Deprecated.banner color is now stored as the data value, not meta.Pattern
getPattern(int i)
Returns the pattern at the specified indexList<Pattern>
getPatterns()
Returns a list of patterns on this bannerint
numberOfPatterns()
Returns the number of patterns on this bannerPattern
removePattern(int i)
Removes the pattern at the specified indexvoid
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 indexvoid
setPatterns(List<Pattern> patterns)
Sets the patterns used on this banner-
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, clone, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot
-
-
-
-
Method Detail
-
getBaseColor
@Deprecated DyeColor getBaseColor()
Deprecated.banner color is now stored as the data value, not meta.Returns the base color for this banner- Returns:
- the base color
-
setBaseColor
@Deprecated void setBaseColor(DyeColor color)
Deprecated.banner color is now stored as the data value, not meta.Sets the base color for this banner- Parameters:
color
- the base color
-
getPatterns
List<Pattern> getPatterns()
Returns a list of patterns on this banner- Returns:
- the patterns
-
setPatterns
void setPatterns(List<Pattern> patterns)
Sets the patterns used on this banner- Parameters:
patterns
- the new list of patterns
-
addPattern
void addPattern(Pattern pattern)
Adds a new pattern on top of the existing patterns- Parameters:
pattern
- the new pattern to add
-
getPattern
Pattern getPattern(int i)
Returns the pattern at the specified index- Parameters:
i
- the index- Returns:
- the pattern
-
removePattern
Pattern removePattern(int i)
Removes the pattern at the specified index- Parameters:
i
- the index- Returns:
- the removed pattern
-
setPattern
void setPattern(int i, Pattern pattern)
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
-
-