Jump to content

Pwjw

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Pwjw

  1. OK, just to be sure, should that be: import net.minecraftforge.common.util.EnumHelper Many thanks for your help, it's appreciate. PWJW
  2. OK, this is the first part of the code I am using import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.registry.GameRegistry; import WinCrafters.test.Reference; public class TestItems { public static Item item_EmeraldSword; public static final Item.ToolMaterial emeraldSwordMaterial = EnumHelper.addToolMaterial(); In Eclipse EnumHelper is underlined in red, and the error associated with it is "EnumHelper cannot be resolved", and Ctrl+Shift+O does nothing. Any thoughts on how to troubleshoot this would be most welcome. Thanks in advance for you help PWJW
  3. Hi there. I'm experiencing a similar problem trying to use EnumHelper, and I hoped someone might be able to point out what I am missing. I downloaded the most recent source file, 8.0.20.1023, dated 18th January 2015, and so far the other basic mods I am making are working correctly. However, when following a tutorial to create armour/weapons, I tried to use the EnumHelper class and Eclipse informs me that it is not found. The exact error message is "EnumHelper cannot be resolved". Searching the full tree appears to confirm this. Based on other posts, it looks as though EnumHelper should be found in net.minecraftforge.common.util.EnumHelper, but there is no 'util' package in this branch at all. Just to be clear, when I look under 'Reference Libraries - fmlSrc-1.8-8.0.20.1023-1.8.jar - net - minecraftforge.fml' - common there is no 'util' package at this point. Am I missing something obvious here, of are others experiencing similar problems with this build? Any advice would be greatly appreciated. I was thinking of loading up an earlier version of the source code, perhaps the last one from 2014, build 8.0.16.1021, and seeing if this resolved the problem. Can anyone confirm a specific build that does have EnumHelper (and presumably other util classes) included? Many thanks PWJW
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.