tutorial:mixin_redirectors
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tutorial:mixin_redirectors [2020/08/16 23:09] – new user11681 | tutorial:mixin_redirectors [2025/09/22 22:21] (current) – Add warning about redirectors being unable to chain, link to information about MixinExtras. gauntrecluse | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Redirectors are methods that can replace method invocations, | Redirectors are methods that can replace method invocations, | ||
| + | |||
| <code java [enable_line_numbers=true]> | <code java [enable_line_numbers=true]> | ||
| @Redirect(method = " | @Redirect(method = " | ||
| at = @At(value = " | at = @At(value = " | ||
| - | public ReturnType redirectSomeMethod(Arg0Type, arg0, Arg1Type arg1) { | + | public ReturnType redirectSomeMethod(Arg0Type arg0, Arg1Type arg1) { |
| MyClass.doMyComputations(); | MyClass.doMyComputations(); | ||
| | | ||
| Line 12: | Line 13: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | :!: // | ||
| + | |||
| Refer to the specific redirection tutorials for information about injection point references: | Refer to the specific redirection tutorials for information about injection point references: | ||
| * [[tutorial: | * [[tutorial: | ||
| * [[tutorial: | * [[tutorial: | ||
| * [[tutorial: | * [[tutorial: | ||
| - | * [[tutorial:mixin_redirectors_instance|redirecting instanceof checks]] | + | * [[tutorial:mixin_redirectors_instanceof|redirecting instanceof checks]] |
tutorial/mixin_redirectors.1597619375.txt.gz · Last modified: 2020/08/16 23:09 by user11681