Jump to content

jcranky

Forge Modder
  • Posts

    106
  • Joined

  • Last visited

Everything posted by jcranky

  1. Hi, I'm developing a lib I want to be used by mods. The lib uses forge, and the mods will use forge as well, obviously. Do I have to take any kind of special care when generating the jar file for the lib, or can it be generated with a simple ./gradlew build ? I'm asking because in my tests some methods are causing crazy NoSuchMethodErrors like the one bellow when used in the 'client' mod, which makes me think that something might be "out of sync" here. [01:35:48] [specs2.env1591740272-2/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NoSuchMethodError: net.minecraft.item.ItemStack.func_82833_r()Ljava/lang/String; [01:35:48] [specs2.env1591740272-2/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at com.easyforger.recipes.package$.toRecipeItemStack(package.scala:12) The package.scala:12 mentioned in the error contains the following: implicit def toRecipeItemStack(itemStack: ItemStack): RecipeItemStack = RecipeItemStack(itemStack, itemStack.getDisplayName.toLowerCase.charAt(0)) My guess is that itemStack.getDisplayName is to blame. Makes sense? thank you! []s,
  2. Yep, it is just good to know, in case you need it =)
  3. On that note, didn't this break running from console?
  4. The import takes a while, that's normal and is not a problem because you usually don't have to do it all the time. About the unindexed repository, that is not a problem, but you can follow IDEA's instructions and do the indexing to remove the warnings.
  5. Try re-importing the project.
  6. Yes, this is the import I'm successfully using in 1.7: import net.minecraftforge.common.util.EnumHelper;
  7. jcranky

    Eclipse Luna?

    Cool =)
  8. What you mean by that? This is part of forge, are your imports correct?
  9. Perhaps you could add it as a dependency in the gradle build?
  10. Start but taking a look at ItemArmor.
  11. jcranky

    Eclipse Luna?

    So that seems to be your problem. It is pointing to a JRE, instead of the JDK.
  12. jcranky

    Eclipse Luna?

    About IDEA yes, but I don't use Windows =( Do you have your JAVA_HOME environment variable configured? If so, what is it pointing at?
  13. jcranky

    Eclipse Luna?

    Yes, it might make IDEA unable to find Java at all, though I would imagine that some error would have popped up. Re-installing is a good try. And if the jre location is messed up, don't move the folder around. Change the configuration inside IDEA that points to the jre. Actually, you should probably have it pointing to a JDK, not the JRE.
  14. This is exactly the explanation I was looking for. I neglected the fact that player objects would get created and destroyed all the time, while item objects won't. Now, this is not true for ItemStacks, right? Only for Item and Block, I suppose.
  15. jcranky

    Eclipse Luna?

    That is quite strange. Can you try to run idea from the command prompt and see if any errors appear?
  16. In other words, please read: http://www.minecraftforge.net/wiki/Installation/Source
  17. jcranky

    Eclipse Luna?

    I think yes, but I'm not sure. A backup never hurts anyway
  18. jcranky

    Eclipse Luna?

    Your workspace is still valid. You just need a couple more steps, as mentioned here: http://www.minecraftforge.net/wiki/Installation/Source. Copying from there:
  19. I'm not sure I see this. Unless it is obfuscated, I don't see an equals nor hashCode methods In EntityPlayer. Nor in Item. Or Block, for that matter. Which makes me think that player and item are the same in that regard. What am I missing?
  20. jcranky

    Eclipse Luna?

    Community should work just fine for you (the ultimate version is paid): https://www.jetbrains.com/idea/download/ It can be used for Android development, and any other Java development as well - which includes modding with forge.
  21. jcranky

    Eclipse Luna?

    Obviously
  22. jcranky

    Eclipse Luna?

    You should try it then. I was a NetBeans user for years until I tried IDEA. There is no turning back. (plus the whole workspace concept that eclipse uses is just too complex for my simple mind )
  23. jcranky

    Eclipse Luna?

    So... just saying but .... I do hate eclipse. Want a real IDE? Try IDEA. Really. I guess that is what diesieben07 suggested indirectly
  24. Your problem is modding concepts in general. I don't think too much from this thread is really 1.8 specific. If you are following a tutorial, follow are steps really carefully.
  25. You can always add a shield with bluetooth or wifi capabilities.
×
×
  • Create New...

Important Information

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