2xsaiko / mixin-cheatsheet

SpongePowered Mixin Cheat Sheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redirect NEW

valoeghese opened this issue · comments

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