#Gradle cannot load net.minecraft imports

8 messages · Page 1 of 1 (latest)

tardy briar
golden sleet
#

!!splitsources

static oceanBOT
#
Split Sources

Split Sources provide a compile-time guarantee against calling client only Minecraft code or client only API on the server.

Client-only code can be placed in client, and code that is common to client and server can be placed in main. Client-only code can refer code in main, but not the other way.

Read more: Split Client and Common code - Fabric Loom

golden sleet
#

you're trying to access it in the main source set

#

also @Environment(EnvType.CLIENT) does not do what you think it does

#

there's absolutely no need to use it