Move Unique methods from mixin into util class#18
Conversation
|
My compat for trackwork works pretty well! (Config values are cranked for demonstration) But the compat rn requires me to copy out the entire walking erosion logic which is a bit yucky :( |
|
hey! I like the idea. I'm not looking into Create Aeronautics (and similar mods) compat just yet, since I'm focusing on finishing ports to more modern versions as well as Forge and Neoforge, but it is my next item in the list after that. And this is definitely helpful, will review it hopefully end of this month if all goes according to plan! |
|
Hey @blockninja124 , just wanted to give you a heads-up that I included a Contributors Agreement License in all branches of my repo, just to make sure that both contributors and the project are protected long-term. This was done after you submitted your PR, so I'd ask you to please read the CLA.md and post the acceptance statement from CONTRIBUTING.md as a comment here. Only after you do that can I consider merging your PR - I haven't looked into it yet, but I think it will likely be helpful to speed up the Create Aeronautics (and other mods) compat support. You can find both files in all branches of the repo. Thank you! |
|
I have read the Contributor License Agreement in CLA.md and I agree to its terms. Also sorry about the flood of vibecoded port PRs you seem to be getting. :P |
# Conflicts: # src/main/java/milkucha/trmt/mixin/ServerPlayerEntityMixin.java
|
I've updated this PR to include the new changes to |
|
amazing. I'm not yet looking into vehicle compat but when I do I will revisit this PR for sure - still got some backlog to clear before that happens but I hope to be able to get around it some time this summer, maybe July. |
|
You don't have to implement compat to merge this PR, this PR makes it easier for other mods to add their own compat. (aka putting the work on them, not you, lol) |
This PR moves the
@Uniquemethods fromServerPlayerEntityMixininto their own class,TRMTWalkingErosionUtil.I want this change because it makes it wayyy easier for me to add compat for TRMT. I can have my custom interaction (in this case, wheels on a vehicle) trigger the walking code without rewriting all of it. Since there is absolutely no way for another mod to use the
@Unique privatemethods in the mixin class, having to copy out all the functions is the only solution right now.I can see this move as being useful for:
tickmethod (not sure why this would happen, but you never know).The specifics of how I've moved these methods is up for discussion, I'm not particularly attached to where I've put them. I just want them to not be confined to only the mixin itself 🙏 🥺