-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Request #16
Comments
Also another request if you do a API. |
what version |
1.16 in this case. |
Hi, I'm pretty busy at the moment, so I won't be able to do this until later in the month, but I've come up with a few ideas on how to get started: I'll rewrite the class that handles the functions so others can extend it and register it to the ward, which is this class: How would you want to associate enchantments with a ward enchantment type? Currently the mod takes the config strings for this, but I'm probably going to store it all in a Map when the mod loads and have some publicly accessible method to add to the set. For optimizations, there are a few things I have in mind: |
Yeah we don't expect to push out another update before the end of the month anyways. 1 question. Is a WardTileEntity really required? Isn't a normal TileEntity sufficient? That way the API can be used without the entire mod itself. Just have a registry thats something like this: Map<Enchantment, WardEnchantment> where people can register their own types that you check first. If that isn't found you just default to your config. (You could use the same map for your config too) Optimiztations:
I bet there is more but this is just what i had after a first look. |
So I finally have time to work on this! I'm going to do some optimizations first and then get to work on the actual functions. |
Didn't mean to close this whoops :P |
After you are done with 1.16 stuff. |
The 1.12 and 1.16 versions are very different and usually don't work on previous versions. |
yeah thats fine. Might take longer that the compat will take effect though since multiversion features have priority over single version features |
Hey sorry, haven't given an update in a while. I got distracted by other things and also put this on hold while I work on my main mod. Once I get everything sorted out I will finish work on this |
o/
We want to add some compat from Unique Enchantments to Wards.
But there is no API for wards. Could you maybe add one? I can provide help as needed.
Greets,
Speiger
The text was updated successfully, but these errors were encountered: