Translations:Map Display/API/4/en

From BergerHealer Wiki
Revision as of 12:34, 3 September 2024 by TC Bot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  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