JAVA 21 / 2 PUBLIC TYPES
Signals Lib Folia 0.2.1-SNAPSHOT
A tiny Java signal/event library with optional Folia/Paper integration, backed by GEB
me.tamkungz.signals.folia2
classFoliaSchedulerSmall wrapper over the Folia schedulers for one plugin.
<p>
On Folia every region ticks on its own thread, so code that touches a block, chunk or entity must run on the
thread that owns it. The methods here pick the matching scheduler; {@link #ownsRegion(Location)},
{@link #ownsEntity(Entity)} and {@link #isGlobalThread()} tell whether the current thread already is that
thread. Outside Folia, Paper runs the same schedulers on the main thread.classFoliaSignals{@link BukkitSignals} for Folia: the same signals, plus listeners that hop to the thread they need.
<p>
On Folia a Bukkit event is fired on the thread of the region that owns it, and a listener may only touch
blocks, chunks and entities of that region. When a listener has to work on something owned by another region
(the world around a location, another player, ...), connect it with {@link #connectRegion},
{@link #connectEntity}, {@link #connectGlobal} or {@link #connectAsync}. Those run the listener inline when
the current thread already is the right one and schedule it otherwise.
<p>
Signals and connections are thread-safe, so plain {@code connect} calls from any region thread are fine.
No matching public types.