程序包 org.bukkit

枚举 Art

所有已实现的接口:
Serializable, Comparable<Art>, java.lang.constant.Constable, Keyed

public enum Art extends Enum<Art> implements Keyed
代表画.
  • 枚举常量详细资料

    • KEBAB

      public static final Art KEBAB
    • AZTEC

      public static final Art AZTEC
    • ALBAN

      public static final Art ALBAN
    • AZTEC2

      public static final Art AZTEC2
    • BOMB

      public static final Art BOMB
    • PLANT

      public static final Art PLANT
    • WASTELAND

      public static final Art WASTELAND
    • POOL

      public static final Art POOL
    • COURBET

      public static final Art COURBET
    • SEA

      public static final Art SEA
    • SUNSET

      public static final Art SUNSET
    • CREEBET

      public static final Art CREEBET
    • WANDERER

      public static final Art WANDERER
    • GRAHAM

      public static final Art GRAHAM
    • MATCH

      public static final Art MATCH
    • BUST

      public static final Art BUST
    • STAGE

      public static final Art STAGE
    • VOID

      public static final Art VOID
    • SKULL_AND_ROSES

      public static final Art SKULL_AND_ROSES
    • WITHER

      public static final Art WITHER
    • FIGHTERS

      public static final Art FIGHTERS
    • POINTER

      public static final Art POINTER
    • PIGSCENE

      public static final Art PIGSCENE
    • BURNING_SKULL

      public static final Art BURNING_SKULL
    • SKELETON

      public static final Art SKELETON
    • DONKEY_KONG

      public static final Art DONKEY_KONG
    • EARTH

      public static final Art EARTH
    • WIND

      public static final Art WIND
    • WATER

      public static final Art WATER
    • FIRE

      public static final Art FIRE
  • 方法详细资料

    • values

      public static Art[] values()
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static Art valueOf(String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getBlockWidth

      public int getBlockWidth()
      得到这幅画的宽度,单位:块

      原文:Gets the width of the painting, in blocks

      返回:
      这幅画的宽度,以块为单位.
    • getBlockHeight

      public int getBlockHeight()
      得到这幅画的高度,单位:块

      原文:Gets the height of the painting, in blocks

      返回:
      这幅画的高度,以块为单位.
    • getId

      @Deprecated public int getId()
      已过时。
      Magic value
      得到这幅画的ID.

      原文:Get the ID of this painting.

      返回:
      这幅画的ID
    • getKey

      @NotNull public @NotNull NamespacedKey getKey()
      从接口复制的说明: Keyed
      返回用于此对象的命名空间标识符.

      原文:Return the namespaced identifier for this object.

      指定者:
      getKey 在接口中 Keyed
      返回:
      标识此对象的 key
    • getById

      @Deprecated @Nullable public static @Nullable Art getById(int id)
      已过时。
      Magic value
      通过ID获得一幅画.

      原文:Get a painting by its numeric ID

      参数:
      id - 画的ID
      返回:
    • getByName

      @Nullable public static @Nullable Art getByName(@NotNull @NotNull String name)
      通过一幅画的唯一名称来获取这幅画,忽略大小写和下划线。

      原文:Get a painting by its unique name.This ignores underscores and capitalization.

      参数:
      name - 画的唯一名称
      返回: