I am trying to build a Minecraft mod with Forge on IntelliJ, and I am wondering where I can find the parts that are being imported.
For example:
import net.minecraft.world.level.block.Block;
I checked minecraft.net to see whether I can find it there, but I was unable to. This is the same for other sources, which I'd like to gather more information from, such as what they are, what they are used for, what else is included, etc. I also checked all the folders included in the setup with Forge.
As of now, I am more comfortable with Javascript/Node.JS, so I know if I were doing something similar to this in JS, it would be like searching it up on npmjs.com.
EDIT: I think I found it: I believe it was in ./build/_compileJava_2
. I guess my question still lasts for a general build with Java. How come although those sources are in other directories (such as ./build/_compileJava_2
) I only have to write import net.minecraft.world.....
instead of something like import "./build/_compileJava_2/net/minecraft/world/..."
?