Commit Graph
34 Commits
Author SHA1 Message Date
bigguy345 33b5de833d forghoer 2025-07-03 18:40:24 +03:00
bigguy345 e0c9bfffa5 Fixed updateEveryXTicks being inconsistent due to using entity's ticksExisted. IAction instances now track their own tick 2025-07-03 18:29:53 +03:00
bigguy345 7e1374d96a Adjusted ActionQueue killing logic 2025-07-03 18:07:18 +03:00
bigguy345 c976b488f1 Re-organised Action class 2025-07-02 21:25:58 +03:00
bigguy345 c1cfcc19d5 Implemented ActionQueue to Action 2025-07-02 21:14:58 +03:00
bigguy345 393a7fbb56 Added varargs chaining to IActions
i.e schedule(act1,act2,act3...)
2025-07-02 11:51:00 +03:00
bigguy345 67926477be More overloads and cleanup 2025-06-30 23:00:23 +03:00
bigguy345 8b4892cb35 Scheduled conditionals properly using after(), before() and sequential schedule() 2025-06-30 20:14:08 +03:00
bigguy345 e69bbd13b0 Action.after() and before() now properly work for unscheduled actions (Actions store a queue of actions to enqueue before/after them on their scheduling) 2025-06-30 20:10:44 +03:00
bigguy345 7ea05e4ecc Refactored ScriptedActionManager to ActionManager, moved to same package as Actions 2025-06-30 18:13:31 +03:00
bigguy345 a52c676fcb Refactored setUpdateEveryXTick to updateEvery
Added getMaxCount(), once() and times(int n)
2025-06-30 16:35:34 +03:00
bigguy345 f6e0cd8add Refactored scheduleAction to schedule 2025-06-30 09:28:31 +03:00
bigguy345 31a25acd20 Canged all the IConditionalAction Supplier<Boolean> instances (condition,terminateWhen,pauseUntil) to Function<IAction,Boolean> 2025-06-30 09:15:34 +03:00
bigguy345 bc2bab889d cleared ActionManager on NPC delete 2025-06-30 08:59:51 +03:00
bigguy345 6a04a0ea28 IAction exceptions now report to CNPC+ script console 2025-06-30 08:21:50 +03:00
bigguy345 74198534af INFINITE OVERLOADS !!!!! 2025-06-30 07:15:34 +03:00
bigguy345 78bb39e4c7 ActionThread 2025-06-29 21:56:15 +03:00
bigguy345 bdbf30d328 Another ActionThread overhaul 2025-06-29 21:06:15 +03:00
bigguy345 772fc5ef6d Refactor 2025-06-29 20:59:43 +03:00
bigguy345 c31843c318 OVERLOAD !! 2025-06-29 20:57:59 +03:00
bigguy345 6bb1741025 Parallel IAction chain methods 2025-06-29 11:04:14 +03:00
bigguy345 e03af5e76f Vastly improved ActionThread 2025-06-29 09:47:07 +03:00
bigguy345 fa9e5cdfe5 More IActionManager and IAction QoL !!! 2025-06-29 09:44:20 +03:00
bigguy345 8ee35e8088 IActionManager and IAction QoL 2025-06-29 09:07:09 +03:00
bigguy345 70cc7b75e4 More important ActionThread pausing frameworks and documentation 2025-06-28 19:07:19 +03:00
bigguy345 9322cd7429 Added ActionThread
IActions can now be threaded using action.threadify()
2025-06-28 09:30:21 +03:00
bigguy345 810e29ca75 Refactored addData to setData
Added hasData
2025-05-30 04:07:56 +03:00
Kam 2d5c8ee5b4 Add Default Action Ticking 2025-05-27 16:22:56 -04:00
Kam ae7e7018c5 More Cleanup 2025-05-20 13:53:32 -04:00
Kam 15efdc06c5 Fix some concurrent mod issues 2025-05-19 22:07:57 -04:00
Kam 8952963c74 Prevent Action Crashing 2025-05-15 20:45:22 -04:00
bigguy345 3d155a26fc Action.getManager() 2025-04-28 10:42:47 +03:00
bigguy345 5dd2dad700 Removed Integer.MAX_VALUE (infinite max duration is already -1) 2025-04-28 10:41:36 +03:00
Kam ae4b4c8702 Heavy Action Refactoring 2025-04-28 03:25:01 -04:00