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 [2023/12/18 02:24] – [Capturing locals from multiple locals of a type] solidblock | 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 ther are multiple locals with that type, you have to specify '' | + | :!: If there are multiple locals with that type, you have to specify '' |
+ | |||
+ | :!: the use of '' | ||
Mixin: | Mixin: | ||
Line 280: | Line 284: | ||
@Inject(method = " | @Inject(method = " | ||
private void injected(CallbackInfo ci, @Local TypeArg2 arg2) { | private void injected(CallbackInfo ci, @Local TypeArg2 arg2) { | ||
- | | + | |
} | } | ||
</ | </ | ||
Line 301: | 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.1702866271.txt.gz · Last modified: 2023/12/18 02:24 by solidblock