Interface IMap
- All Known Subinterfaces:
IFrame,IHoldableDisplay
public interface IMap
Abstract representation for vanilla filled maps, used for
IHoldableDisplay and
for multiple IFrame in IMapDisplay.
The main purpose of this is to provide the vanilla map ids per z level.
Note: Maps only exist on the network level, so the server doesn't know about this map id and content.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackitemStack(int z) Creates anItemStackwith the correct map id set for the given z level.
This should be used for giving e.g.intmapId(int z) Maps the z level to a map id.@Unmodifiable it.unimi.dsi.fastutil.ints.Int2IntMapmapIds()
-
Method Details
-
mapId
int mapId(int z) Maps the z level to a map id.- Parameters:
z- the z level- Returns:
- the map id
- See Also:
-
mapIds
@Unmodifiable it.unimi.dsi.fastutil.ints.Int2IntMap mapIds()- Returns:
- an unmodifiable map of all map ids
-
itemStack
org.bukkit.inventory.ItemStack itemStack(int z) Creates anItemStackwith the correct map id set for the given z level.
This should be used for giving e.g.Playerthis item into their inventory for viewing.- Parameters:
z- the z level- Returns:
- the configured map
ItemStack
-