tungsten-client / tungsten

Epic Minecraft utility client
https://tungstenclient.com
MIT License
2 stars 0 forks source link

Changes to Items API #53

Open HyperCodec opened 1 year ago

HyperCodec commented 1 year ago

The current one is alright, but it has flaws that make it difficult to work with when developing modules:

These changes create opportunities for module devs to write much more powerful modules.

(Yes I'm in the scholarly asshole writing style bc I have school to deal with now)

0x4D2D commented 1 year ago

How about you use an inner class instead of a shitty complicated modules system, like I suggested months and months ago, each "module" defines itself in the configuration what it wants to act as and load itself as (e.g. command, module, items list, etc..), and based on that the loader will look for an inner class inheriting that certain type and create an instance of itself, this would consolidate the modules and items and commands and whatelse into one directory

HyperCodec commented 1 year ago

How about you use an inner class instead of a shitty complicated modules system, like I suggested months and months ago, each "module" defines itself in the configuration what it wants to act as and load itself as (e.g. command, module, items list, etc..), and based on that the loader will look for an inner class inheriting that certain type and create an instance of itself, this would consolidate the modules and items and commands and whatelse into one directory

but then modules cant contain multiple (command, item, etc) in one