public interface MapMeta extends ItemMeta
ItemMeta.Spigot
Modifier and Type | Method and Description |
---|---|
MapMeta |
clone() |
Color |
getColor()
Gets the map color that is set.
|
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()
Checks to see if this map is scaling.
|
void |
setColor(Color color)
Sets the map color.
|
void |
setLocationName(String name)
Sets the location name.
|
void |
setScaling(boolean value)
Sets if this map is scaling or not.
|
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot
serialize
boolean isScaling()
void setScaling(boolean value)
value
- true to scaleboolean hasLocationName()
String getLocationName()
Plugins should check that hasLocationName() returns true
before calling this method.
void setLocationName(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 setCopyright © 2021. All rights reserved.