#Can you get a Variable out of a function with a mixin?

1 messages · Page 1 of 1 (latest)

pseudo berry
#

I am trying to mixin some code in PlayerEntity, but my code has to reference a playerEntity to work. How do i do that?

distant mauve
#

Always show the exact situation when asking about mixins

#

Hard to understand the problem just from that message

chrome vector
#

Confirm this

cinder lake
#

see if share is what you want but yes this question is not clear enough to give a good answer to

pseudo berry
#

I want to know if for example in this function,
public void someFunction() {
int i = 2;
return i - 5;
}
i can use this variable „i“ in my mixin, for example
@GetInt(id = „i“) int i;

distant mauve
#

Same thing again