Translations:Map Display/API/19/en
Jump to navigation
Jump to search
To include additional metadata for use in the display (properties field) you can also use the MapDisplayProperties class to build the item:
MapDisplayProperties prop = MapDisplayProperties.createNew(MyCustomDisplay.class); prop.set("creator", player.getName()); prop.set("background", "https://url/to/some/image.png"); ItemStack item = prop.getMapItem(); // Rest is the same