Documentation of Unsupported Events/APIs and Async Enhancements #288

Closed
opened 2024-09-07 02:35:43 +02:00 by ghost · 1 comment
ghost commented 2024-09-07 02:35:43 +02:00 (Migrated from github.com)

Is your feature request related to a problem?
Developers need clarity on which events/APIs are unsupported in Folia and suggestions for more robust async API capabilities.

Describe the solution you'd like:
A full list of unsupported events/apis would be nice

Also more api for async stuff maybe like instead of:

for (World world : Bukkit.getWorlds()){
 for(Chunk chunk : world.getChunks()){
   // ran on main thread
 }
}

could be like this:

Folia.runOnEachRegion(tickRegion -> {
 tickRegion.getOwnedChunks().forEach(chunk -> {
  // ran on the different tick threads
 });
});
Is your feature request related to a problem? Developers need clarity on which events/APIs are unsupported in Folia and suggestions for more robust async API capabilities. Describe the solution you'd like: A full list of unsupported events/apis would be nice Also more api for async stuff maybe like instead of: ```java for (World world : Bukkit.getWorlds()){ for(Chunk chunk : world.getChunks()){ // ran on main thread } } ``` could be like this: ```java Folia.runOnEachRegion(tickRegion -> { tickRegion.getOwnedChunks().forEach(chunk -> { // ran on the different tick threads }); }); ```
ocelotpotpie commented 2025-12-25 06:34:22 +01:00 (Migrated from github.com)

This is basically a duplicate of https://github.com/PaperMC/Folia/issues/287

This is basically a duplicate of https://github.com/PaperMC/Folia/issues/287
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Minecraft/Folia#288
No description provided.