Skip to content

Add 'mixinoverride' tag#184

Merged
apple502j merged 1 commit intoFabricMC:mainfrom
dicedpixels:mixinoverride
Jun 28, 2025
Merged

Add 'mixinoverride' tag#184
apple502j merged 1 commit intoFabricMC:mainfrom
dicedpixels:mixinoverride

Conversation

@dicedpixels
Copy link
Contributor

The correct way to override methods in mixins gets brought up frequently. This tag contains snippets of the 2 recommended methods.

Text by @cputnam-a11y, approved by Llama on Discord.

@Earthcomputer
Copy link

Why aren't both examples using @ModifyReturnValue?

@dicedpixels
Copy link
Contributor Author

It's what @cputnam-a11y wrote originally, but I don't think the injector matter as it works with any.

@apple502j apple502j merged commit e6c584a into FabricMC:main Jun 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants