Hi, I just have a question so I know that async tasks can't be used to change blocks, but could I use one to teleport entities? What exactly are the limits to async tasks like what can I and can't I do. I've heard of people just using them for calculations but could I use it to teleport entities around or is that overstepping.
No one said you couldn't do it. You just shouldn't do it. You can put basically everything in an async method. You just have to keep in mind what problems multithreading or async tasks on one thread create
Because I run a repeating task that does lots of heavy calculations and teleports entities, it causes a lot of lag.
It's sorta individual calculations for each entity so can I really pull stuff from the async task to the main thread task?
Yeah, you can use this: https://hub.spigotmc.org/javadocs/s...nnable.html#runTask(org.bukkit.plugin.Plugin)