-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
A small amount of 1.20.2 mappings #479
Conversation
mappings/net/minecraft/item/SuspiciousStewEffectContainer.mapping
Outdated
Show resolved
Hide resolved
Co-authored-by: Will <[email protected]>
|
Co-authored-by: ix0rai <[email protected]>
@EnnuiL do you intend to fix this up, or should I take it over? |
oh god i completely forgot about this pr; i have been quite busy recently, but i'll see if i can tackle it later |
actually, please take it over |
🚀 Target branch has been updated to 23w35a |
Co-authored-by: Will <[email protected]>
@@ -36,6 +36,8 @@ CLASS net/minecraft/unmapped/C_wwadquuj net/minecraft/block/entity/BeaconBlockEn | |||
ARG 1 x | |||
ARG 2 y | |||
ARG 3 z | |||
METHOD m_jlfysuud getEffect (Lnet/minecraft/unmapped/C_jaqasomh;)Lnet/minecraft/unmapped/C_jaqasomh; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i still have a bad feeling about getting rid of the orNull
; it just feels reasonable here, it's like, a standard too;
please reconsider it before merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you give an example of a similar method with the OrNull
suffix?
I've been comparing it to Map#get
, but there could be a better comparison.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually maybe part of the issue is get
might be the wrong verb here.
It checks if the beacon has the effect, returns it if so, or null otherwise.
It's like a weird contains
method that returns arg/null instead of true/false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method seems to be replacing what mojmap called getValidEffectById
, I think valid is important.
I also think effect
in the name is redundant given the parameter.
How about just validate
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after looking through the source, I agree with @supersaiyansubtlety on validate
being the best name
I'm going to add javadoc too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EnnuiL please take a look at the new name!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me; I'll double-check on Enigma soon, since uh, getContainerOrNull
still lost the OrNull
and i remember that it was there for good reasons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's annotated as @Nullable
which imo makes the suffix redundant always
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's annotated as @Nullable
which imo makes the suffix redundant always
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough
No description provided.