public interface BannerMeta extends ItemMeta
限定符和类型 | 方法和说明 |
---|---|
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)
设置这个旗帜的图案.
|
addEnchant, addItemFlags, clone, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable
serialize
@Deprecated DyeColor getBaseColor()
原文:Returns the base color for this banner
@Deprecated 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