mixin-cheatsheet
mixin-cheatsheet copied to clipboard
Redirect NEW
Does not have a tutorial on redirecting NEW
.
It's pretty simple and useful but I don't use it enough to always remember the exact format so having it here would be nice
Okay yep it's just
@Redirect(method = "someMethod", at = @At(value = "NEW", target = "some/package/SomeClass"))
private SomeClass someRedirect(the constructor parameters) {
}
no L and ; needed on the class in target