Commit Graph
17 Commits
Author SHA1 Message Date
Kam a9b602713c Large Cleanup to Code Imports and Formatting 2026-01-22 23:07:38 -05:00
Kam 19b01e2099 Compress Script Hooks and Context System 2026-01-22 14:27:48 -05:00
bigguy345 d835d2acb0 Migrated all EffectScript.ScriptType hooks to EnumScriptType 2026-01-22 20:48:17 +02:00
bigguy345 f5dbe19de2 New IScriptHandlerPacket:
- Defines the packet-backed script GUI contract used by GuiScriptInterface for “streamed” script loading/saving.

- Updated EffectScript, LinkedItemScript and RecipeScript to implement IScriptHandlerPacket

- Removed GuiScriptEffect, GuiScriptLinkedItem and GuiScriptRecipe as their functionality got replaced with new interface handled by GuiScriptInterface
2026-01-18 17:57:10 +02:00
bigguy345 f829926f00 New ScriptHandler, which is an abstract IScriptHandler implementation 2026-01-18 03:19:30 +02:00
bigguy345 cc0959dcfe Added run(EnumScriptType, Event) and
run(String, Event) methods to IScriptUnit interface, with JaninoScript
delegating to callByHookType(). This provides a cleaner abstraction that
supports both ScriptContainer and JaninoScript without type checking.

Affected files:
- IScriptUnit: Added run() methods to interface
- JaninoScript: Implemented run() delegation methods
- DataScript, PlayerDataScript, GlobalNPCDataScript, ForgeDataScript
- EffectScript, LinkedItemScript, RecipeScript
- ScriptCustomItem, TileScripted: Refactored to use polymorphic calls
2026-01-14 00:16:58 +02:00
bigguy345 cd60a03544 Moved all INpcScriptHandler implementations to IScriptHandler as its redundant 2026-01-13 23:45:14 +02:00
bigguy345 73db727c47 Deleagted all ScriptContainer NBT based creation to IScriptUnit.createFromNBT 2026-01-13 22:16:51 +02:00
bigguy345 c3e032dcf2 Abstracted ScriptContainer & JaninoScript to IScriptUnit + global implementation 2026-01-13 18:25:28 +02:00
Kam 9c541999f3 Optimize Imports 2025-07-23 14:22:52 -04:00
Kam 94d9d93360 Organize Player Events 2025-04-08 22:37:26 -04:00
Kam 7432373533 Change Hooks for Effects 2025-03-14 03:33:10 -04:00
Kam 180d257024 Proper Reformating 2025-03-13 17:14:45 -04:00
Kam c3538836be Optimize Imports 2025-02-20 21:40:39 -05:00
Kam f84dd5477d Linked Item Scripts + Effect Script Fix 2025-02-17 15:21:59 -05:00
luisc 4a1a092757 More linked item changes 2025-02-14 12:28:17 -06:00
Kam 8d2ffdc5e3 Rename to Effect Script 2025-02-11 13:56:28 -05:00