Mixin icon indicating copy to clipboard operation
Mixin copied to clipboard

How to access a private class in another class ?

Open Wizi8914 opened this issue 3 years ago • 1 comments

In a project I'm trying to get the textureState variable but this one is of type class which is inside another class I asked several people but each one didn't know how to answer or they asked me to try things which didn't work

image

Wizi8914 avatar Aug 08 '22 16:08 Wizi8914

I think using an access widener is the way to go: https://www.fabricmc.net/wiki/tutorial:accesswideners

see also https://github.com/SpongePowered/Mixin/issues/578

tennox avatar Aug 09 '22 23:08 tennox