Commit Graph
20 Commits
Author SHA1 Message Date
YoyoNow 9598b1c961 Add @LinkedTimer
A method of a linked class annotated with @LinkedTimer(delay, period) is run
repeatedly by the linker, on Spigot and Velocity. The method must not have
parameters, its return value is ignored. It is called through a MethodHandle
bound once when linking instead of reflection; LambdaMetafactory cannot be used
as the linker and the linked classes are in different class loaders.

The unit defaults to ticks and can be set to milliseconds up to hours; the
Unit enum converts it to ticks for Spigot and to a TimeUnit for Velocity.
HullHiderCommand uses it for its tick task.
2026-10-31 16:11:28 +01:00
YoyoNow abf44b2306 Allow @Linked on fields
The value of a @Linked field of a linked class is linked like a linked class
itself, e.g. registered as listener, and unlinked again on unlink. The field
has to be initialised when linking. HullHiderCommand and TPSSystem use it
instead of registering their listeners by hand.
2026-10-31 15:43:35 +01:00
YoyoNow d110df924e Format code 2026-05-16 23:08:09 +02:00
YoyoNow ec310dfee9 Remove MinVersion and MaxVersion 2026-05-16 14:41:02 +02:00
YoyoNow ce1f947f4b Remove Core.getVersion calls 2026-05-16 14:02:57 +02:00
YoyoNow 6cda79f7e1 Fix AbstractLinker 2025-12-20 11:41:36 +01:00
PsiRobot 442ef71a17 Fix PR Comments 2025-10-26 14:22:20 +00:00
YoyoNow 139f73402a Fix AbstractLinker not accessing private fields 2025-10-24 18:22:56 +02:00
YoyoNow a03a3f45e8 Update copyright notices 2025-10-23 17:56:43 +02:00
YoyoNow 9dabcfc918 Implement Linkage for TowerRun 2025-10-23 17:20:07 +02:00
YoyoNow 22d1e15ae0 Implement Linkage for FightSystem 2025-10-23 17:20:07 +02:00
YoyoNow c394478632 Fix VelocityCore 2025-10-23 17:20:07 +02:00
YoyoNow d850894a00 Update VelocityCore to use Linkage 2025-10-23 17:20:07 +02:00
YoyoNow ca589bd07c Add Linkage to CommonCore and implement SpigotLinker used in BauSystem 2025-10-23 17:20:06 +02:00
YoyoNow 412971af4d Remove compile time linkage in favour of class index
Optimize build time when no change happened for the BauSystem
2024-08-06 13:48:29 +02:00
YoyoNow ad9b856cf3 Simplify LinkageProcessor 2024-08-05 15:22:37 +02:00
YoyoNow f8c4e3127b Simplify LinkageProcessor 2024-08-05 14:57:03 +02:00
YoyoNow 82c5115da8 Remove sout from LinkageProcessor 2024-08-05 14:06:54 +02:00
YoyoNow 3366a30b0c Add BauSystem module
Fix ci java version
Fix LinkageProcessor
2024-08-05 13:28:50 +02:00
Chaoscaot 41d31e6c9c Refactor CommonCore 2024-08-05 12:08:04 +02:00