Commit Graph
113 Commits
Author SHA1 Message Date
bigguy345 792aac8a96 Added onStart(task) and onDone(task) for IAction 2025-07-06 23:59:30 +03:00
bigguy345 9aa29d7167 Added print debugging dump methods for most IAction framework components 2025-07-06 10:56:28 +03:00
bigguy345 14f7bd3dd4 a buncha IAction adjustments 2025-07-05 10:19:10 +03:00
bigguy345 7a2ce14624 Renamed killAfter to killWhenEmptyAfter 2025-07-03 23:45:15 +03:00
bigguy345 1023ec029f IActionQueue documentation 2025-07-03 23:38:50 +03:00
bigguy345 a0d5aa7a8c oops 2 2025-07-03 23:22:10 +03:00
bigguy345 1f2c06f498 oops 2025-07-03 23:17:24 +03:00
bigguy345 efe7261681 Adjusted ActionQueue killing logic 2025-07-03 18:07:17 +03:00
bigguy345 049253f1fd Added killWhenEmpty and killAfterTicks to IActionQueue 2025-07-02 22:35:38 +03:00
bigguy345 1b96a3dc87 Overhauled IActionChain 2025-07-02 21:46:43 +03:00
bigguy345 d5835ddc6d Implemented ActionQueue to Action 2025-07-02 21:14:57 +03:00
bigguy345 91d3a06742 Created IActionQueue 2025-07-02 20:15:24 +03:00
bigguy345 a588062c98 Added varargs chaining to IActions
i.e schedule(act1,act2,act3...)
2025-07-02 11:50:59 +03:00
bigguy345 f0f1c9c917 More overloads and cleanup 2025-06-30 23:00:22 +03:00
bigguy345 2bcbc98d31 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:43 +03:00
bigguy345 13d32ae425 Adjusted ActionChains 2025-06-30 16:37:40 +03:00
bigguy345 abb8c7bb30 Refactored setUpdateEveryXTick to updateEvery
Added getMaxCount(), once() and times(int n)
2025-06-30 16:35:33 +03:00
bigguy345 f998e8feb4 Canged all the IConditionalAction Supplier<Boolean> instances (condition,terminateWhen,pauseUntil) to Function<IAction,Boolean> 2025-06-30 09:15:33 +03:00
bigguy345 283e3a864d cleared ActionManager on NPC delete 2025-06-30 08:59:50 +03:00
bigguy345 c0aae432d6 INFINITE OVERLOADS !!!!! 2025-06-30 07:15:33 +03:00
bigguy345 34ed095423 Implemented actionThread to IConditionalActions 2025-06-29 21:57:30 +03:00
bigguy345 e14021b4da ActionThread 2025-06-29 21:56:14 +03:00
bigguy345 1b751ad5d2 OVERLOAD !! 2025-06-29 20:57:58 +03:00
bigguy345 65c81997b9 Parallel IAction chain methods 2025-06-29 11:04:13 +03:00
bigguy345 4d8b345a42 IActionManager and IAction QoL 2025-06-29 09:07:08 +03:00
bigguy345 afe45e775b More important ActionThread pausing frameworks and documentation 2025-06-28 19:07:18 +03:00
bigguy345 3efd012ae0 Added ActionThread
IActions can now be threaded using action.threadify()
2025-06-28 09:30:20 +03:00
bigguy345 5c6b16e75f Refactored addData to setData
Added hasData
2025-05-30 04:07:55 +03:00
Kam a869b33edc Fix Some things 2025-05-29 16:25:15 -04:00
Kam 445fc594f3 Update IAction.java 2025-05-15 20:46:30 -04:00
bigguy345 c2cddf85e4 Changed every instance of the word "predicate" to "condition" 2025-04-29 09:08:42 +03:00
bigguy345 40f33b2646 Added IActionChain after(int delay, String name, Consumer<IAction> task) to IActionChain 2025-04-29 09:00:17 +03:00
bigguy345 28cc2d837b Re-ordered ConditionalAction's Supplier<Boolean> terminateWhen arg 2025-04-29 08:53:16 +03:00
bigguy345 6eb08b2c4e Re-ordered ConditionAction constructor params 2025-04-28 10:47:15 +03:00
bigguy345 c9a970adce Action.getManager() 2025-04-28 10:42:46 +03:00
Kam 9590f9ffff Some fixes 2025-04-28 03:24:38 -04:00
bigguy345 d053084ee0 More constructors and setters 2025-04-28 10:09:50 +03:00
bigguy345 06d73d7f11 Added termination task to ConditionalActions
(code that runs when task termination predicate is satisfied)
2025-04-28 09:57:24 +03:00
bigguy345 910ac31bd5 setMaxChecks documentation 2025-04-28 08:24:03 +03:00
bigguy345 5a12178a92 More conditional create and chain methods 2025-04-28 08:17:56 +03:00
bigguy345 d4ad1450e1 Removed redundant args from creation methods/constructors 2025-04-28 08:08:38 +03:00
bigguy345 05c95c96b9 Rewrote conditional action ticking logic 2025-04-28 07:41:28 +03:00
bigguy345 8980850d7c Added more create methods 2025-04-28 07:26:39 +03:00
bigguy345 02d13e45d7 Added before and after chains to IAction 2025-04-28 07:19:58 +03:00
bigguy345 0a26972420 refactored IAction.scheduleAfter and scheduleBefore to just after and before 2025-04-28 06:50:01 +03:00
Kam c3e21bf8c2 IActionChain 2025-04-27 23:10:49 -04:00
Kam f6fac38360 Some fixes and changes to Actions Interfaces! 2025-04-26 20:50:25 -04:00
Kam dfa15687d0 Scripting for Item Attributes, Controller, ItemStack, IPlayer 2025-03-14 05:35:07 -04:00
Kam c7a74a3e0e Revert 2025-03-13 15:36:30 -04:00
bigguy345 c81e848895 ActionManager refactor + more features 2025-03-13 05:35:55 +02:00