public interface Banner extends TileState
Modifier and Type | Method and Description |
---|---|
void |
addPattern(@NotNull Pattern pattern)
Adds a new pattern on top of the existing
patterns
|
@NotNull DyeColor |
getBaseColor()
Returns the base color for this banner
|
@NotNull Pattern |
getPattern(int i)
Returns the pattern at the specified index
|
@NotNull List<Pattern> |
getPatterns()
Returns a list of patterns on this banner
|
int |
numberOfPatterns()
Returns the number of patterns on this
banner
|
@NotNull Pattern |
removePattern(int i)
Removes the pattern at the specified index
|
void |
setBaseColor(@NotNull DyeColor color)
Sets the base color for this banner.
|
void |
setPattern(int i,
@NotNull Pattern pattern)
Sets the pattern at the specified index
|
void |
setPatterns(@NotNull List<Pattern> patterns)
Sets the patterns used on this banner
|
getPersistentDataContainer
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
@NotNull @NotNull DyeColor getBaseColor()
void setBaseColor(@NotNull @NotNull DyeColor color)
color
- the base color@NotNull @NotNull List<Pattern> getPatterns()
void setPatterns(@NotNull @NotNull List<Pattern> patterns)
patterns
- the new list of patternsvoid addPattern(@NotNull @NotNull Pattern pattern)
pattern
- the new pattern to add@NotNull @NotNull Pattern getPattern(int i)
i
- the index@NotNull @NotNull Pattern removePattern(int i)
i
- the indexvoid setPattern(int i, @NotNull @NotNull Pattern pattern)
i
- the indexpattern
- the new patternint numberOfPatterns()
Copyright © 2021. All rights reserved.