TechnicallyCoded / FoliaLib

This is a wrapper library for aiding in supporting the Folia Paper Fork. This library adds multiple scheduler options to use instead of the Bukkit or Folia native schedulers.
MIT License
70 stars 11 forks source link

Thread check #18

Closed CJCrafter closed 5 months ago

CJCrafter commented 5 months ago

Being able to check if your thread is allowed to mess with a region is super important, and I feel it fits in this library. Javadocs were taken directly from the Folia javadocs.

The method implementation only matters for Folia, otherwise, all methods return Bukkit.isPrimaryThread()

CJCrafter commented 5 months ago

Hey @TechnicallyCoded, could you merge these changes and post a snapshot build for testing?

TechnicallyCoded commented 5 months ago

I'm reviewing all these new PRs today, exams knocked me out for a week. Sorry for the wait :)