Hi, and thanks for reading.
I'm having a strange problem setting up Eclipse w/Forge 1.14.4 where I don't have any references to the net.minecraft.item.ItemBlock class.
Let me walk you through my setup and what I've tried so far.
My system is a standard Windows 10 64-bit Intel PC.
I have Java JDK and JRE version 1.8.0_221 installed:
JAVA_HOME is set to the JDK directory:
First, to start fresh I rebooted my PC, then deleted both the .gradle and .eclipse folders from my C:\Users\<myUser> directory, and also deleted my Eclipse workspace folder.
Next, I downloaded the latest 1.14.4 Forge MDK from https://files.minecraftforge.net/:
I unzipped it to an empty directory named "TestMod":
I didn't change anything in build.gradle, I left it at its "factory defaults".
Then, I opened a command prompt and ran "gradlew genEclipseRuns". It took about 4 1/2 minutes to do its thing and said it was successful:
Then, I ran "gradlew eclipse", successfully:
Then, I opened Eclipse version 2019-06 (4.12.0) and selected File > Import > Existing Gradle Project:
I set the project root directory to the TestMod folder that I've been working in:
I clicked Next to go the Import Options:
Without changing anything, I clicked Next again. It took a couple seconds to work, then it showed this:
In ExampleMod.java, trying to import a reference to ItemBlock fails to resolve (and using CTRL-SHIFT-O to auto-create an import statement finds 0 references).
I then saved the file, closed Eclipse, and ran "gradlew --refresh-dependencies":
I then re-opened Eclipse, and refreshed my Gradle project:
... but no joy, the reference to ItemBlock still can't be resolved.
Anything obvious that I'm doing wrong?
Thanks!
Burt