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 [2021/09/04 10:14] – Added generics explanation banana | tutorial:mixin_injects [2022/03/08 21:03] – remove interface injection from this incorrect place juuz | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | Injects allows you to place custom code at a specified position inside an existing method. For a working example, view the [[https:// | + | Injects allows you to place custom code at a specified position inside an existing method. For a working example, view the [[tutorial: |
<code java> | <code java> | ||
Line 36: | Line 36: | ||
A method descriptor is comprised of the method name, followed by a set of parentheses containing the input types, followed by the output type. A method defined in Java as '' | A method descriptor is comprised of the method name, followed by a set of parentheses containing the input types, followed by the output type. A method defined in Java as '' | ||
- | 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; using something that describes what the inject does is best. The target method' |
tutorial/mixin_injects.txt · Last modified: 2022/08/05 19:19 by clomclem