-
Notifications
You must be signed in to change notification settings - Fork 275
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
Added 'item_cooldown' to query and modify item cooldowns #1789
base: master
Are you sure you want to change the base?
Conversation
To mixin you can use a string |
How so? |
Wait, I might have found a solution |
Or maybe targets |
If that's not enough then there's accesswidener |
I've tried that and I've tried accesswidener, neither seems to be able to work. |
Note that after accesswidener you have to regenerate/reimport/sync/refresh (or whatever it's called on intellij gradle) the minecraft sources/the project given it modifies directly the game jar. |
Doesn't work tho for some reason
I have genuinely no idea what I did, but it works now, and I'm not gonna mess with it.
Done! |
Fixes #597
Simple fix, but querying item cooldowns only returns a percentage. I'd like to make it return the number of ticks, but there are private classes involved (specifically
net.minecraft.world.item.ItemCooldowns.CooldownInstance
), which idk how to mix into.