-
Notifications
You must be signed in to change notification settings - Fork 422
Contract annotations for net.minecraft.util.math classes #4352
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
base: 25w42a
Are you sure you want to change the base?
Conversation
…properly; merge type annotations buttons where applicable; fix arrays not working
|
OK, that's a lot better. I went a little crazy at first xd |
|
|
|
Where? I wouldn't be surprised though, I will fix it when your PR is merged. I checked out the latest yarn, then merged your branch on top, then made my changes. This is really my first experience with working with multiple collaborative branches - it's always been just me or a random one-off change :P |
|
The git history looks fine to me, I think he missed that this PR has a dependency. It will need rebasing once my PR is merged. |
These classes trip me up sometimes, with immutability and mutability mixed in with each other. Hopefully, adding contract annotations will help.
I avoided annotating anything that returns a primitive type - that seems unnecessary and would add bloat. I also didn't annotate static methods, as they can usually be assumed to be pure.
Depends on #4351 , and has more classes to do, so I'm leaving this as a draft.