tutorial:mixin_redirectors_methods
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:mixin_redirectors_methods [2020/08/17 00:58] – created user11681 | tutorial:mixin_redirectors_methods [2020/08/17 01:09] – case user11681 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
Method redirectors can use the following [[https:// | Method redirectors can use the following [[https:// | ||
+ | |||
* '' | * '' | ||
* '' | * '' | ||
Line 9: | Line 10: | ||
The '' | The '' | ||
- | ==== redirecting | + | ==== Redirecting |
Static method redirectors should have the same parameters as the '' | Static method redirectors should have the same parameters as the '' | ||
redirecting the '' | redirecting the '' | ||
+ | |||
<code java [enable_line_numbers=true]> | <code java [enable_line_numbers=true]> | ||
@Mixin(ItemStack.class) | @Mixin(ItemStack.class) | ||
Line 25: | Line 27: | ||
</ | </ | ||
- | ==== redirecting | + | ==== Redirecting |
Instance method redirectors are similar to static methood redirectors, | Instance method redirectors are similar to static methood redirectors, | ||
redirecting the '' | redirecting the '' | ||
+ | |||
<code java [enable_line_numbers=true]> | <code java [enable_line_numbers=true]> | ||
@Mixin(Entity.class) | @Mixin(Entity.class) | ||
Line 46: | Line 49: | ||
redirecting the '' | redirecting the '' | ||
+ | |||
<code java [enable_line_numbers=true]> | <code java [enable_line_numbers=true]> | ||
@Mixin(MinecraftClient.class) | @Mixin(MinecraftClient.class) | ||
Line 59: | Line 63: | ||
} | } | ||
</ | </ | ||
+ |
tutorial/mixin_redirectors_methods.txt · Last modified: 2021/01/15 04:20 by obw