Open Ghoulboy78 opened 11 months ago
To mixin you can use a string target
for the annotation.
How so?
Wait, I might have found a solution
@Mixin(target="net/minecraft/...")
iirc
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. net.minecraft.world.item.ItemCooldowns.CooldownInstance
is a private class, and idk how to get to it. But that is the only way to fix this issue.
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.
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.