Package org.bukkit.block
Interface Banner
- All Superinterfaces:
- BlockState,- Metadatable,- Nameable,- PersistentDataHolder,- TileState
Represents a captured state of a banner.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPattern(@NotNull Pattern pattern) Adds a new pattern on top of the existing patternsReturns the base color for this bannergetPattern(int i) Returns the pattern at the specified indexReturns a list of patterns on this bannerintReturns the number of patterns on this bannerremovePattern(int i) Removes the pattern at the specified indexvoidsetBaseColor(@NotNull DyeColor color) Sets the base color for this banner.voidsetPattern(int i, @NotNull Pattern pattern) Sets the pattern at the specified indexvoidsetPatterns(@NotNull List<Pattern> patterns) Sets the patterns used on this bannerMethods inherited from interface org.bukkit.block.BlockStatecopy, copy, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablecustomName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.block.TileStategetPersistentDataContainer, isSnapshot
- 
Method Details- 
getBaseColorReturns the base color for this banner- Returns:
- the base color
 
- 
setBaseColorSets the base color for this banner. Only valid for shield pseudo banners, otherwise base depends on block type- Parameters:
- color- the base color
 
- 
getPatternsReturns a list of patterns on this banner- Returns:
- the patterns
 
- 
setPatternsSets the patterns used on this banner- Parameters:
- patterns- the new list of patterns
 
- 
addPatternAdds a new pattern on top of the existing patterns- Parameters:
- pattern- the new pattern to add
 
- 
getPatternReturns the pattern at the specified index- Parameters:
- i- the index
- Returns:
- the pattern
 
- 
removePatternRemoves the pattern at the specified index- Parameters:
- i- the index
- Returns:
- the removed pattern
 
- 
setPatternSets the pattern at the specified index- Parameters:
- i- the index
- pattern- the new pattern
 
- 
numberOfPatternsint numberOfPatterns()Returns the number of patterns on this banner- Returns:
- the number of patterns
 
 
-