tutorial:mixin_injects
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:mixin_injects [2022/08/04 21:21] – Added explanation for void return type. clomclem | tutorial:mixin_injects [2022/08/04 21:37] – clomclem | ||
---|---|---|---|
Line 5: | Line 5: | ||
<code java> | <code java> | ||
- | @Inject(method = "", | + | @Inject(method = "METHODNAME", at = @At(" |
private void injectMethod(METHOD ARGS, CallbackInfo info) { | private void injectMethod(METHOD ARGS, CallbackInfo info) { | ||
Line 41: | Line 41: | ||
Generics' | Generics' | ||
- | //@Inject// methods always have a void return type. The method name does not matter; using something that describes what the inject does is best. The target method' | + | //@Inject// methods always have a void return type. The method name does not matter |
=== Returning & Cancelling from Inject === | === Returning & Cancelling from Inject === |
tutorial/mixin_injects.txt · Last modified: 2022/08/05 19:19 by clomclem