-
Notifications
You must be signed in to change notification settings - Fork 368
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
Removed 'is' prefix from field/param names as per #987 #1403
Conversation
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 personally think the isClient
field on the client should become client
, but that deserves it's own consideration in a different pr.
@@ -1,7 +1,7 @@ | |||
CLASS net/minecraft/class_1496 net/minecraft/entity/passive/HorseBaseEntity | |||
FIELD field_18118 PARENT_HORSE_PREDICATE Lnet/minecraft/class_4051; | |||
FIELD field_6955 temper I | |||
FIELD field_6956 IS_BRED_HORSE Ljava/util/function/Predicate; | |||
FIELD field_6956 BRED_HORSE Ljava/util/function/Predicate; |
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.
Hmm, what does this predicate do?
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.
Used to set the parent predicate, so that child stay around their parent
mappings/net/minecraft/world/gen/feature/ShipwreckFeatureConfig.mapping
Outdated
Show resolved
Hide resolved
The issues with this PR are:
|
Restored some old ones |
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'm against some of these changes in cases where the removal of the is
prefix causes the field name to be a noun phrase rather than an adjective phrase, which seems to be quite a few of them. Some examples:
RealmsWorldSlotButton.State.isCurrentlyActiveSlot
->currentlyActiveSlot
: makes it sound like the state "has" a currently active slot, rather than "is" one.AbstractBlock.isAir
->air
: makes it sound like anAbstractBlock
somehow "has" air, rather than "is" air.- You get the pattern.
Some renames that are okay because they turn them into adjectives without losing clarity:
BipedEntityModel.isSneaking
->sneaking
(edit: apparently this one is bad because there is alreadyPlayerEntity.isSubmergedInWater
->submergedInWater
protected Entity.submergedInWater
.)- etc
@@ -3,7 +3,7 @@ CLASS net/minecraft/class_312 net/minecraft/client/Mouse | |||
FIELD field_1780 activeButton I | |||
FIELD field_1781 controlLeftTicks I | |||
FIELD field_1782 cursorYSmoother Lnet/minecraft/class_3540; | |||
FIELD field_1783 cursorLocked Z | |||
FIELD field_1783 isCursorLocked Z |
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.
No
FIELD field_1783 isCursorLocked Z | |
FIELD field_1783 cursorLocked Z |
@dexman545 Please remove |
Mind fix the merge conflicts? |
FullCube -> fullCube Co-authored-by: i509VCB <i509vcb@gmail.com>
Fixes #987 |
This PR is pretty much cursed, and has been badly merged with base branch. If you want to do it again, please make sure to take feedback here into account |
Kept in some places where it doesn't really fit to remove them:
World's isClient
NativeImage's isSbtImage
PageTurnWidget's isNextPageButton
I believe that's all of them.
In reference to #987