Translations:Map Display/API/17/en: Difference between revisions

From BergerHealer Wiki
Jump to navigation Jump to search
(Importing a new version from external source)
 
(No difference)

Latest revision as of 12:34, 3 September 2024

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Map Display/API)
Then to create an ItemStack that when given loads this display, use the following code:
<pre>
ItemStack item = MapDisplay.createMapItem(MyCustomDisplay.class);
ItemUtil.setDisplayName(item, "My Custom Display"); // Optional

Then to create an ItemStack that when given loads this display, use the following code:

ItemStack item = MapDisplay.createMapItem(MyCustomDisplay.class);
ItemUtil.setDisplayName(item, "My Custom Display"); // Optional