程序包 org.bukkit.map
类 MapCursor
java.lang.Object
org.bukkit.map.MapCursor
表示一个地图上的光标.
 
原文: Represents a cursor on a map.
- 
嵌套类概要嵌套类
- 
构造器概要构造器构造器说明MapCursor(byte x, byte y, byte direction, byte type, boolean visible) 已过时。不安全的参数已过时。MapCursor(byte x, byte y, byte direction, @NotNull MapCursor.Type type, boolean visible) 初始化地图光标.MapCursor(byte x, byte y, byte direction, @NotNull MapCursor.Type type, boolean visible, @Nullable String caption) 初始化地图光标.
- 
方法概要修饰符和类型方法说明Gets the caption on this cursor.byte获取这个光标的朝向.byte已过时。不安全的参数getType()获取这个光标的类型.bytegetX()获取这个光标的X坐标.bytegetY()获取这个光标的Y坐标.boolean获取这个光标的可见情况.voidsetCaption(@Nullable String caption) Sets the caption on this cursor.voidsetDirection(byte direction) 设置这个光标的方向.voidsetRawType(byte type) 已过时。不安全的参数voidsetType(@NotNull MapCursor.Type type) 设置这个光标的类型.voidsetVisible(boolean visible) 设置这个光标的可见情况.voidsetX(byte x) 设置这个光标的X坐标.voidsetY(byte y) 设置这个光标的Y坐标.
- 
构造器详细资料- 
MapCursor@Deprecated(since="1.6.2") public MapCursor(byte x, byte y, byte direction, byte type, boolean visible) 已过时。不安全的参数初始化地图光标.原文:Initialize the map cursor. - 参数:
- x- x坐标,范围为-128到127
- y- y坐标,范围为-128到127
- direction- 光标的朝向,范围为0到15
- type- 地图光标的类型(颜色、风格)
- visible- 光标在默认情况下是否可见
 
- 
MapCursorpublic MapCursor(byte x, byte y, byte direction, @NotNull @NotNull MapCursor.Type type, boolean visible) 初始化地图光标.原文:Initialize the map cursor. - 参数:
- x- x坐标,范围为-128到127
- y- y坐标,范围为-128到127
- direction- 光标的朝向,范围为0到15
- type- 地图光标的类型(颜色、风格)
- visible- 光标在默认情况下是否可见
 
- 
MapCursor@Deprecated(since="1.13") public MapCursor(byte x, byte y, byte direction, byte type, boolean visible, @Nullable @Nullable String caption) 已过时。初始化地图光标.原文:Initialize the map cursor. - 参数:
- x- x坐标,范围为-128到127
- y- y坐标,范围为-128到127
- direction- 光标的朝向,范围为0到15
- type- 地图光标的类型(颜色、风格)
- visible- 光标在默认情况下是否可见
- caption- 光标标题
 
- 
MapCursorpublic MapCursor(byte x, byte y, byte direction, @NotNull @NotNull MapCursor.Type type, boolean visible, @Nullable @Nullable String caption) 初始化地图光标.原文:Initialize the map cursor. - 参数:
- x- x坐标,范围为-128到127
- y- y坐标,范围为-128到127
- direction- 光标的朝向,范围为0到15
- type- 地图光标的类型(颜色、风格)
- visible- 光标在默认情况下是否可见
- caption- 光标标题
 
 
- 
- 
方法详细资料- 
getXpublic byte getX()获取这个光标的X坐标.原文: Get the X position of this cursor. - 返回:
- X坐标
 
- 
getYpublic byte getY()获取这个光标的Y坐标.原文: Get the Y position of this cursor. - 返回:
- Y坐标
 
- 
getDirectionpublic byte getDirection()获取这个光标的朝向.原文: Get the direction of this cursor. - 返回:
- 光标的朝向,范围为0到15
 
- 
getType获取这个光标的类型.原文: Get the type of this cursor. - 返回:
- 地图光标的类型(颜色、风格)
 
- 
getRawType已过时。不安全的参数获取这个光标的类型.原文: Get the type of this cursor. - 返回:
- 地图光标的类型(颜色、风格)
 
- 
isVisiblepublic boolean isVisible()获取这个光标的可见情况.原文: Get the visibility status of this cursor. - 返回:
- 可见则返回true,否则返回false
 
- 
setXpublic void setX(byte x) 设置这个光标的X坐标.原文: Set the X position of this cursor. - 参数:
- x- X坐标
 
- 
setYpublic void setY(byte y) 设置这个光标的Y坐标.原文: Set the Y position of this cursor. - 参数:
- y- Y坐标
 
- 
setDirectionpublic void setDirection(byte direction) 设置这个光标的方向.原文: Set the direction of this cursor. - 参数:
- direction- 这个光标的朝向,范围为0到15
 
- 
setType设置这个光标的类型.原文: Set the type of this cursor. - 参数:
- type- 地图光标的类型(颜色、风格)
 
- 
setRawType已过时。不安全的参数设置这个光标的类型.原文: Set the type of this cursor. - 参数:
- type- 地图光标的类型(颜色、风格)
 
- 
setVisiblepublic void setVisible(boolean visible) 设置这个光标的可见情况.原文: Set the visibility status of this cursor. - 参数:
- visible- 可见则为true
 
- 
getCaptionGets the caption on this cursor.- 返回:
- caption
 
- 
setCaptionSets the caption on this cursor.- 参数:
- caption- new caption
 
 
-