程序包 org.bukkit.map

枚举 MapCursor.Type

java.lang.Object
java.lang.Enum<MapCursor.Type>
org.bukkit.map.MapCursor.Type
所有已实现的接口:
Serializable, Comparable<MapCursor.Type>, java.lang.constant.Constable
封闭类:
MapCursor

public static enum MapCursor.Type extends Enum<MapCursor.Type>
表示地图光标的标准类型。可能有更多被资源包(原材质包)提供的类型,这个数值被客户端当做minecraft.jar里的'./misc/mapicons.png'文件的索引或一个材质包中的索引使用.

原文: Represents the standard types of map cursors. More may be made available by resource packs - the value is used by the client as an index in the file './misc/mapicons.png' from minecraft.jar or from a resource pack.

  • 枚举常量详细资料

  • 方法详细资料

    • values

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

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

      @Deprecated public byte getValue()
      已过时。
      不安全的参数
      获取光标的内部数值.

      原文:Gets the internal value of the cursor.

      返回:
      数值
    • byValue

      @Deprecated @Nullable public static @Nullable MapCursor.Type byValue(byte value)
      已过时。
      不安全的参数
      通过内部数值获取对应光标类型.

      Get a cursor by its internal value.

      参数:
      value - 数值
      返回:
      匹配类型