@FunctionalInterface public static interface ChunkTicketManager.Callback
Modifier and Type | Method and Description |
---|---|
void |
onLoaded(ImmutableList<ChunkTicketManager.LoadingTicket> tickets,
World world)
Callback for loading Tickets during world load.
|
void onLoaded(ImmutableList<ChunkTicketManager.LoadingTicket> tickets, World world)
The list of forced chunks is not saved with Tickets, this callback is your place to reassociate chunks to Tickets, using the extra information saved with the ticket or your own external configuration. Any unneeded tickets must be manually released.
The list of tickets contains both standard plugin and player-associated tickets that were registered by this plugin.
The list of tickets has been truncated to the maximum allowed for your plugin, so may not be all saved tickets in the event that the maximum tickets for your plugin was decreased.
tickets
- The list of tickets that need chunks registeredworld
- The world tickets were loaded for