public interface Banner extends BlockState
限定符和类型 | 方法和说明 |
---|---|
void |
addPattern(Pattern pattern)
在现有的图案上添加一个图案.
|
DyeColor |
getBaseColor()
返回这个旗帜的底色.
|
Pattern |
getPattern(int i)
返回这个图案指定的索引处.
|
java.util.List<Pattern> |
getPatterns()
返回这个旗帜的图案.
|
int |
numberOfPatterns()
返回在这个旗帜上的图案的编号.
|
Pattern |
removePattern(int i)
以指定的索引处移除图案.
|
void |
setBaseColor(DyeColor color)
设置这个旗帜的底色.
|
void |
setPattern(int i,
Pattern pattern)
以指定的索引处设置图案.
|
void |
setPatterns(java.util.List<Pattern> patterns)
设置这个旗帜使用的图案.
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
DyeColor getBaseColor()
原文: Returns the base color for this banner
void setBaseColor(DyeColor color)
原文: Sets the base color for this banner
color
- 底色java.util.List<Pattern> getPatterns()
原文: Returns a list of patterns on this banner
void setPatterns(java.util.List<Pattern> patterns)
原文: Sets the patterns used on this banner
patterns
- 新的图案列表void addPattern(Pattern pattern)
原文: Adds a new pattern on top of the existing patterns
pattern
- 要添加的新的图案Pattern getPattern(int i)
原文: Returns the pattern at the specified index
i
- 索引Pattern removePattern(int i)
原文: Removes the pattern at the specified index
i
- 索引void setPattern(int i, Pattern pattern)
原文: Sets the pattern at the specified index
i
- 索引pattern
- 新的图案int numberOfPatterns()
原文: Returns the number of patterns on this banner