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 [2022/04/24 07:22] (current) – Fix extra comma in method signature jummit | ||
---|---|---|---|
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.txt · Last modified: 2022/04/24 07:22 by jummit