MixinExtras icon indicating copy to clipboard operation
MixinExtras copied to clipboard

[Request] Be able to get a reference to the caller of non static methods in ModifyExpressionValue

Open shaksternano opened this issue 3 years ago • 2 comments

If targeting a non static method call with ModifyExpressionValue, it would be great if it was possible to get a reference to the object the method being called belongs to, similar to Redirect. A reference to the method arguments would also be nice if that is possible.

shaksternano avatar Jan 16 '22 00:01 shaksternano

This wouldn't be hugely straightforward given being able to capture the enclosing method's args (straight after the expression result) is already locked into the API. I'll definitely look into it though.

LlamaLad7 avatar Jan 16 '22 00:01 LlamaLad7

https://github.com/LlamaLad7/MixinExtras/wiki/WrapOperation should cover this use-case now.

LlamaLad7 avatar Aug 25 '22 18:08 LlamaLad7

And it's now stable, which I think marks the completion of this goal.

LlamaLad7 avatar Oct 23 '22 23:10 LlamaLad7