tutorial:mixin_tips
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:mixin_tips [2025/10/16 15:52] – [Mixing into those not remapped] add warning about nested remapping bawnorton | tutorial:mixin_tips [2025/10/20 00:27] (current) – [Mixing into inner classes] Make example mixin class go from public class -> abstract class gauntrecluse | ||
|---|---|---|---|
| Line 102: | Line 102: | ||
| <code java> | <code java> | ||
| @Mixin(targets = " | @Mixin(targets = " | ||
| - | public | + | abstract |
| @Inject(method = " | @Inject(method = " | ||
| private void injected(CallbackInfo ci) { | private void injected(CallbackInfo ci) { | ||
| Line 183: | Line 183: | ||
| </ | </ | ||
| - | :!: Disabling remapping on an annotation causes the internal remapper to skip the annotation entirely, thus, if the '' | + | :!: Disabling remapping on an annotation causes the internal remapper to skip the annotation entirely, thus, if the '' |
| :!: Changing the remap setting may not fix an issue that would apparently seem to be remapping related, however, so it is best to seek direct support for your specific case. | :!: Changing the remap setting may not fix an issue that would apparently seem to be remapping related, however, so it is best to seek direct support for your specific case. | ||
tutorial/mixin_tips.1760629951.txt.gz · Last modified: 2025/10/16 15:52 by bawnorton