AsyncChunkPreLoadEvent: Ability to load chunk plugin data simultaneously with Vanilla chunk loading

XMLWordPrintable

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: None
    • 1.17
    • Yes

      I have a plugin that stores some data about each chunk in a database. Since Spigot only provides ChunkLoadEvent, there is no way to load the data before the chunk has finished loading.

      Spigot should have a AsyncPreChunkLoadEvent that is called asynchronously when a chunk is scheduled for loading, so that the data from the database can be loaded simultaneously.

      Also, there should be some synchronisation mechanism for the chunk loading thread to wait for the database thread to finish, before successfully loading the chunk (and calling ChunkLoadEvent).

      Implemented by PR

            Assignee:
            Unassigned
            Reporter:
            Torm
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: