public class CommonMapUUIDStore extends Object
Modifier and Type | Field and Description |
---|---|
static org.bukkit.Material |
FILLED_MAP_TYPE
Material for a filled map, the type given out when creating map display items
|
Constructor and Description |
---|
CommonMapUUIDStore() |
Modifier and Type | Method and Description |
---|---|
static UUID |
generateDynamicMapUUID()
Generates a new Map UUID for uniquely identifying a map item instance
|
static int |
getItemMapId(org.bukkit.inventory.ItemStack item)
Gets the Map Id stored inside a Map Item
|
static UUID |
getMapUUID(org.bukkit.inventory.ItemStack item)
Internal use only! Obtains the unique Id of a map item.
|
static int |
getStaticMapId(UUID uuid)
Internal use only! If the UUID is that of a static map UUID, returns
the static Map Id.
|
static UUID |
getStaticMapUUID(int mapId)
Internal use only! Obtains a UUID from a map id value.
|
static boolean |
isMap(org.bukkit.inventory.ItemStack item)
Gets whether an ItemStack contains a Map item
|
static void |
setItemMapId(org.bukkit.inventory.ItemStack item,
int mapId)
Sets the Map Id stored inside a Map Item
|
public static final org.bukkit.Material FILLED_MAP_TYPE
public static boolean isMap(org.bukkit.inventory.ItemStack item)
item
- public static int getItemMapId(org.bukkit.inventory.ItemStack item)
item
- to get it for (must be a CraftItemStack, can not be null)public static void setItemMapId(org.bukkit.inventory.ItemStack item, int mapId)
item
- to set it for (must be a CraftItemStack, can not be null)mapId
- to set topublic static UUID getMapUUID(org.bukkit.inventory.ItemStack item)
item
- to get the Map Id for (must be a CraftItemStack)public static UUID getStaticMapUUID(int mapId)
mapId
- to turn into a UUIDpublic static int getStaticMapId(UUID uuid)
uuid
- public static UUID generateDynamicMapUUID()
Copyright © 2019. All rights reserved.