Translations:Map Display/API/4/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)
# BKCommonLib identifies an ItemStack in an ItemFrame or player inventory which declares a Map Display
# BKCommonLib optionally discovers neighbouring item frames to increase the resolution of the display
# BKCommonLib sees in item metadata what Map Display class should be loaded, constructs it, and starts the main update loop
# Main update loop calls MapDisplay ''onAttached()'', then regularly calls ''onTick()'' and performs other background updates
# If a player is clicking on item frames with the map, or is holding the map and controlling it, event callbacks are fired
# Once no player is nearby anymore to view it, hold it or all chunks unload containing the map (Session Mode), ''onDetached()'' is called and the display update loop is shut down
  1. BKCommonLib identifies an ItemStack in an ItemFrame or player inventory which declares a Map Display
  2. BKCommonLib optionally discovers neighbouring item frames to increase the resolution of the display
  3. BKCommonLib sees in item metadata what Map Display class should be loaded, constructs it, and starts the main update loop
  4. Main update loop calls MapDisplay onAttached(), then regularly calls onTick() and performs other background updates
  5. If a player is clicking on item frames with the map, or is holding the map and controlling it, event callbacks are fired
  6. Once no player is nearby anymore to view it, hold it or all chunks unload containing the map (Session Mode), onDetached() is called and the display update loop is shut down