public interface MapMeta extends ItemMeta
限定符和类型 | 方法和说明 |
---|---|
MapMeta |
clone() |
Color |
getColor()
Gets the map color that is set.
|
java.lang.String |
getLocationName()
Gets the location name that is set.
|
boolean |
hasColor()
Checks for existence of a map color.
|
boolean |
hasLocationName()
Checks for existence of a location name.
|
boolean |
isScaling()
检测这个地图是否有缩放比例.
|
void |
setColor(Color color)
Sets the map color.
|
void |
setLocationName(java.lang.String name)
Sets the location name.
|
void |
setScaling(boolean value)
设置这个地图是否有缩放比例.
|
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable
serialize
boolean isScaling()
原文:Checks to see if this map is scaling.
void setScaling(boolean value)
原文:Sets if this map is scaling or not.
value
- true表示可缩放boolean hasLocationName()
java.lang.String getLocationName()
Plugins should check that hasLocationName() returns true
before calling this method.
void setLocationName(java.lang.String name)
name
- the name to setboolean hasColor()
Color getColor()
Plugins should check that hasColor() returns true
before
calling this method.
void setColor(Color color)
color
- the color to set