Cannot access net.minecraft.client.gui.Element
timasshoff opened this issue · 4 comments
Ah ! You get same error has me....
I get stuck for severals months and I decided to abandoned.
Ok I just found the problem: I created my project using the Fabric Template Generator. The error only occurs, when you split the client and common sources (its an option at the bottom of the generator). When you use a project that has been created without this option selected, the error is no longer present.
Did you place your screen in the common sourceset? If so it makes sense that you would not have access to client-only resources, like the GUI code.