接口 BannerMeta

所有超级接口:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

public interface BannerMeta extends ItemMeta
  • 方法详细资料

    • getBaseColor

      已过时。
      旗帜底色现以数据值的形式存储,而不是元数据.
      返回这个旗帜的底色.

      原文:Returns the base color for this banner

      返回:
      底色
    • setBaseColor

      @Deprecated void setBaseColor(@Nullable @Nullable DyeColor color)
      已过时。
      旗帜底色现以数据值的形式存储,而不是元数据.
      设置这个旗帜的底色.

      原文:Sets the base color for this banner

      参数:
      color - 底色
    • getPatterns

      @NotNull @NotNull List<Pattern> getPatterns()
      返回这个旗帜的图案的列表.

      原文:Returns a list of patterns on this banner

      返回:
      图案列表
    • setPatterns

      void setPatterns(@NotNull @NotNull List<Pattern> patterns)
      设置这个旗帜的图案.

      原文:Sets the patterns used on this banner

      参数:
      patterns - 新的图案的列表
    • addPattern

      void addPattern(@NotNull @NotNull Pattern pattern)
      在现有的图案顶上新增图案.

      原文:Adds a new pattern on top of the existing patterns

      参数:
      pattern - 要新增的图案
    • getPattern

      @NotNull @NotNull Pattern getPattern(int i)
      返回在指定索引处的图案.

      原文:Returns the pattern at the specified index

      参数:
      i - 索引
      返回:
      图案
      抛出:
      IndexOutOfBoundsException - 当索引值不在"[0, numberOfPatterns())"区间内
    • removePattern

      @NotNull @NotNull Pattern removePattern(int i)
      在指定索引处移除图案.

      原文:Removes the pattern at the specified index

      参数:
      i - 索引
      返回:
      移除的图案
      抛出:
      IndexOutOfBoundsException - 当索引值不在"[0, numberOfPatterns())"区间内
    • setPattern

      void setPattern(int i, @NotNull @NotNull Pattern pattern)
      在指定的索引处设置图案.

      原文:Sets the pattern at the specified index

      参数:
      i - 索引
      pattern - 新的图案
      抛出:
      IndexOutOfBoundsException - 当索引值不在"[0, numberOfPatterns())"区间内
    • numberOfPatterns

      int numberOfPatterns()
      返回在这个旗帜的图案数量.

      原文:Returns the number of patterns on this banner

      返回:
      图案数量