I'm running a clean install of Forge 1.7.2-10.12.1.1061 and the associated ForgeGradle on Ubuntu 12.04, and am NOT using Eclipse or any other IDE, if that matters.
Anyway, I am unable to do anything with any vanilla items because the compiler doesn't recognize the identifier "Items" and crashes. Blocks are fine, as are things based on the ore dictionary, but I can't use any items in things like crafting recipes.
Here's the error spat out by the compiler shortly after Gradle prints out ":compileJava":
~/Games/Minecraft/MCP/mc172/forge1061/build/sources/java/se37/triangulum/Triangulum.java:65: cannot find symbol
symbol : variable Items
location: class se37.triangulum.Triangulum
GameRegistry.addRecipe(ironTri, " s ", " ", "s s", 's', new ItemStack(Items.iron_ingot));
^
1 error
And here's the entire base class for my mod:
Yes, I realize that I don't need half those imports, I'm just too lazy to go back and remove the ones I don't need because I might need them later.
If I comment out that last line, everything works fine, except I can't craft the item.
Note that the compiler fails upon reaching the "Items" thing, NOT the "iron_ingot" part. I've tried "Items.ingotIron", "Item.iron_ingot", "Item.ingotIron", even trying an ore dictionary recipe with "ironIngot" or "ingotIron" (both of which compiled, but didn't let me craft the item) and importing net.minecraft.item.Items, no dice.
My question is this: Am I just doing something wrong, or is this actually a Forge bug? And if it is a bug, is there any other workaround?
Also, where can I find a list of the internal names of all the vanilla items and blocks and things, or do I just have to blindly guess things like "Blocks.blockIron", "Blocks.ironBlock", and "Blocks.iron_block" until something works?