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 [2025/06/17 16:49] (current) – recommend @Local the...why...even...how | ||
---|---|---|---|
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' | + | :!: the use of '' |
Mixin: | Mixin: | ||
Line 282: | Line 284: | ||
@Inject(method = " | @Inject(method = " | ||
private void injected(CallbackInfo ci, @Local TypeArg2 arg2) { | private void injected(CallbackInfo ci, @Local TypeArg2 arg2) { | ||
- | | + | |
} | } | ||
</ | </ | ||
Line 303: | Line 305: | ||
@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