Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access a private class in another class ? #594

Open
Wizi8914 opened this issue Aug 8, 2022 · 1 comment
Open

How to access a private class in another class ? #594

Wizi8914 opened this issue Aug 8, 2022 · 1 comment

Comments

@Wizi8914
Copy link

Wizi8914 commented Aug 8, 2022

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 Wizi8914 changed the title How to access a private class in another class How to access a private class in another class ? Aug 9, 2022
@tennox
Copy link

tennox commented Aug 9, 2022

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

see also #578

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants