mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
Add map ID API
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f126de4a5a
commit
3ada9f4de7
1 changed files with 25 additions and 0 deletions
|
@ -7,6 +7,31 @@ import org.bukkit.Color;
|
||||||
*/
|
*/
|
||||||
public interface MapMeta extends ItemMeta {
|
public interface MapMeta extends ItemMeta {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks for existence of a map ID number.
|
||||||
|
*
|
||||||
|
* @return true if this has a map ID number.
|
||||||
|
*/
|
||||||
|
boolean hasMapId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the map ID that is set. This is used to determine what map is
|
||||||
|
* displayed.
|
||||||
|
* <p>
|
||||||
|
* Plugins should check that hasMapId() returns <code>true</code> before
|
||||||
|
* calling this method.
|
||||||
|
*
|
||||||
|
* @return the map ID that is set
|
||||||
|
*/
|
||||||
|
int getMapId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the map ID. This is used to determine what map is displayed.
|
||||||
|
*
|
||||||
|
* @param id the map id to set
|
||||||
|
*/
|
||||||
|
void setMapId(int id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks to see if this map is scaling.
|
* Checks to see if this map is scaling.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue