tutorial:mixin_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:mixin_examples [2024/01/12 23:26] – arkosammy12 | tutorial:mixin_examples [2024/11/18 15:52] (current) – fixed some of the argument names in mixinextra section bemoty | ||
---|---|---|---|
Line 272: | Line 272: | ||
==== Capture locals with MixinExtras ==== | ==== Capture locals with MixinExtras ==== | ||
+ | :!: See the oficial MixinExtra' | ||
+ | |||
:!: MixinExtras required Fabric Loader 0.15 or above, or you have to manually specify it in '' | :!: MixinExtras required Fabric Loader 0.15 or above, or you have to manually specify it in '' | ||
:!: If there are multiple locals with that type, you have to specify '' | :!: If there are multiple locals with that type, you have to specify '' | ||
- | |||
- | :!: More information about MixinExtra' | ||
Mixin: | Mixin: | ||
Line 282: | Line 282: | ||
@Inject(method = " | @Inject(method = " | ||
private void injected(CallbackInfo ci, @Local TypeArg2 arg2) { | private void injected(CallbackInfo ci, @Local TypeArg2 arg2) { | ||
- | | + | |
} | } | ||
</ | </ | ||
Line 303: | Line 303: | ||
@Inject(method = " | @Inject(method = " | ||
private void injected(CallbackInfo ci, @Local(ordinal = 2) TypeArg arg) { | private void injected(CallbackInfo ci, @Local(ordinal = 2) TypeArg arg) { | ||
- | | + | |
} | } | ||
</ | </ |
tutorial/mixin_examples.1705101994.txt.gz · Last modified: 2024/01/12 23:26 by arkosammy12