-
Posts
106 -
Joined
-
Last visited
Everything posted by jcranky
-
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,
-
[1.7.10] [Not Solved] IntelliJ freaking out because of forge.
jcranky replied to a topic in Modder Support
Yep, it is just good to know, in case you need it =) -
[1.7.10] [Not Solved] IntelliJ freaking out because of forge.
jcranky replied to a topic in Modder Support
On that note, didn't this break running from console? -
[1.7.10] [Not Solved] IntelliJ freaking out because of forge.
jcranky replied to a topic in Modder Support
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. -
[1.7.10] [Not Solved] IntelliJ freaking out because of forge.
jcranky replied to a topic in Modder Support
Try re-importing the project. -
Yes, this is the import I'm successfully using in 1.7: import net.minecraftforge.common.util.EnumHelper;
-
What you mean by that? This is part of forge, are your imports correct?
-
Perhaps you could add it as a dependency in the gradle build?
-
Start but taking a look at ItemArmor.
-
So that seems to be your problem. It is pointing to a JRE, instead of the JDK.
-
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?
-
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.
-
[1.7.10] Is it possible to use an Items object in a HashMap?
jcranky replied to a topic in Modder Support
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. -
That is quite strange. Can you try to run idea from the command prompt and see if any errors appear?
-
Please hellp!!!!! In eclipse my minecraft folder is empty!!!!!!
jcranky replied to ThaWeeDope's topic in Modder Support
In other words, please read: http://www.minecraftforge.net/wiki/Installation/Source -
I think yes, but I'm not sure. A backup never hurts anyway
-
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:
-
[1.7.10] Is it possible to use an Items object in a HashMap?
jcranky replied to a topic in Modder Support
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? -
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.
-
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 )
-
So... just saying but .... I do hate eclipse. Want a real IDE? Try IDEA. Really. I guess that is what diesieben07 suggested indirectly
-
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.
-
You can always add a shield with bluetooth or wifi capabilities.