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 [2020/05/28 18:28] – b0undarybreaker | tutorial:mixin_injects [2020/06/15 21:00] – fixed the Fabric Example Mod repo link lvanderzande | ||
---|---|---|---|
Line 33: | Line 33: | ||
| S | short | signed short | | | S | short | signed short | | ||
| Z | boolean | '' | | Z | boolean | '' | ||
- | | [FieldType | + | | [ | reference | one array dimension | |
- | 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 '' |
//@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' | ||
Line 50: | Line 50: | ||
===== Practical Example ===== | ===== Practical Example ===== | ||
- | The following example injects a print statement at the top of '' | + | The following example injects a print statement at the top of '' |
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
Line 62: | Line 62: | ||
</ | </ | ||
- | For more information on this particular example, view its usage in the [[Fabric Example Mod repo]]. | + | For more information on this particular example, view its usage in the [[https:// |
tutorial/mixin_injects.txt · Last modified: 2022/08/05 19:19 by clomclem