接口 MapMeta
- 所有超级接口:
Cloneable
,ConfigurationSerializable
,ItemMeta
代表可被伸缩的地图.
-
方法概要
修饰符和类型方法说明clone()
getColor()
Gets the map color that is set.Gets the location name that is set.boolean
hasColor()
Checks for existence of a map color.boolean
Checks for existence of a location name.boolean
检测这个地图是否有缩放比例.void
Sets the map color.void
setLocationName
(String name) Sets the location name.void
setScaling
(boolean value) 设置这个地图是否有缩放比例.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
从接口继承的方法 org.bukkit.inventory.meta.ItemMeta
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable
-
方法详细资料
-
isScaling
boolean isScaling()检测这个地图是否有缩放比例.原文:Checks to see if this map is scaling.
- 返回:
- true表地图有缩放比例
-
setScaling
void setScaling(boolean value) 设置这个地图是否有缩放比例.原文:Sets if this map is scaling or not.
- 参数:
value
- true表示可缩放
-
hasLocationName
boolean hasLocationName()Checks for existence of a location name.- 返回:
- true if this has a location name
-
getLocationName
String getLocationName()Gets the location name that is set.Plugins should check that hasLocationName() returns
true
before calling this method.- 返回:
- the location name that is set
-
setLocationName
Sets the location name. A custom map color will alter the display of the map in an inventory slot.- 参数:
name
- the name to set
-
hasColor
boolean hasColor()Checks for existence of a map color.- 返回:
- true if this has a custom map color
-
getColor
Color getColor()Gets the map color that is set. A custom map color will alter the display of the map in an inventory slot.Plugins should check that hasColor() returns
true
before calling this method.- 返回:
- the map color that is set
-
setColor
Sets the map color. A custom map color will alter the display of the map in an inventory slot.- 参数:
color
- the color to set
-
clone
MapMeta clone()
-