mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
@@ -1,5 +1,7 @@
|
|||||||
package org.bukkit.inventory.meta;
|
package org.bukkit.inventory.meta;
|
||||||
|
|
||||||
|
import org.bukkit.Color;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a map that can be scalable.
|
* Represents a map that can be scalable.
|
||||||
*/
|
*/
|
||||||
@@ -37,11 +39,38 @@ public interface MapMeta extends ItemMeta {
|
|||||||
String getLocationName();
|
String getLocationName();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the location name.
|
* Sets the location name. A custom map color will alter the display of the
|
||||||
|
* map in an inventory slot.
|
||||||
*
|
*
|
||||||
* @param name the name to set
|
* @param name the name to set
|
||||||
*/
|
*/
|
||||||
void setLocationName(String name);
|
void setLocationName(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks for existence of a map color.
|
||||||
|
*
|
||||||
|
* @return true if this has a custom map color
|
||||||
|
*/
|
||||||
|
boolean hasColor();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the map color that is set. A custom map color will alter the display
|
||||||
|
* of the map in an inventory slot.
|
||||||
|
* <p>
|
||||||
|
* Plugins should check that hasColor() returns <code>true</code> before
|
||||||
|
* calling this method.
|
||||||
|
*
|
||||||
|
* @return the map color that is set
|
||||||
|
*/
|
||||||
|
Color getColor();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the map color. A custom map color will alter the display of the map
|
||||||
|
* in an inventory slot.
|
||||||
|
*
|
||||||
|
* @param color the color to set
|
||||||
|
*/
|
||||||
|
void setColor(Color color);
|
||||||
|
|
||||||
MapMeta clone();
|
MapMeta clone();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user