-
Posts
106 -
Joined
-
Last visited
Everything posted by jcranky
-
Perhaps I should post this in `mod support` directly, instead of in the `ForgeGradle` sub-category?
-
Hi, I'm adding a new source set to my project, so that I can isolate some test mods - i.e. mods that are not to be packaged with everything else. So far I can make this compile fine, but I couldn't find out how to make ForgeGradle see the resources folder. If I do this in my `build.gradle`: sourceSets { mods { scala { compileClasspath += sourceSets.main.runtimeClasspath compileClasspath += main.output } } } and then this: runClient.classpath += sourceSets.mods.output The sources are compiled correctly and when I execute `runClient`, the mods are there. All the assets / resources are not, though, so I see lots of the purple/black cubes and untranslated strings in the game. I'm investigating ForgeGradle's source, but I don't yet understand how the assets folder is defined and made visible to the `runClient` task. []s,
-
Access to LootTableManager from LootTableLoadEvent
jcranky replied to jcranky's topic in Modder Support
Ah, I missed that fact. So basically this is an entry that is itself a whole table, and in this case the trick is to make sure it is the only entry in the loot table being replaced? Feels a bit like a hack, but solves the problem - I'll start in that direction for now Thanks for the code sample, it helped a lot! -
Access to LootTableManager from LootTableLoadEvent
jcranky replied to jcranky's topic in Modder Support
Thanks, I'll investigate a bit more around the first option. The second one would still mean that I have to manually create the loot table, right? Which is what I'm trying to avoid, since I want to use a loot table defined in a json file. -
Hi, Is there a way to access a `LootTableManager` when a `LootTableLoadEvent` is fired? I wanted to replace a `LootTable`, but wanted to use `lootTableManager.getLootTableFromLocation(...)` instead of having to manually build the whole `lootTable` object. thanks! []s,
-
Yes, I think I was over-complicating this matter, thanks
-
This is exactly what I wanted to understand, thanks. Perhaps it is, but you don't really know it The point is not making anything 'better'. I'm basically playing around with some ideas, and I obviously need to understand stuff better before doing anything with it, isn't this the point of asking questions in the first place?
-
Why? Part of the point would be abstracting away the actual choosing of an ID. Is it that bad? Also, in the network case, if I use a random number, then each player would have a different id for the same mob, I guess this would be bad? thanks !
-
It will not be the same for every game run, if it is random. On the second run, the game would load the mod and call registerModEntity again with a new value.
-
@lex I understood that. The clash would be inside a single mod, because what I'm doing is supposed to be re-used from other mods - it is basically a library.
-
Ah, and other than that, I was wondering if the id is only a runtime thing, which apparently it is, or if it was somehow persisted between play sessions.
-
Thanks guys. In my case a clash could happen because I'm creating some support classes that brings a couple of mobs "pre-configured". So if the modder creates a new mob, and use the same id, ka-boom. A random id also doesn't really solve the problem, only makes it less likely to happen. I'll think about something else.
-
Hi, quick question. The id taken into EntityRegistry.registerModEntity can be random or should it be a fixed value? Thanks!
-
java.lang.ClassNotFoundException: BlamingTransformer
jcranky replied to jcranky's topic in Modder Support
That was the problem indeed, forcefully removing asm 4 solves the problem, thank you! -
java.lang.ClassNotFoundException: BlamingTransformer
jcranky replied to jcranky's topic in Modder Support
Thank you for the reply! I will investigate, perhaps it is the test library to blame as well. Do I need ASM 4, 5, or any will do, as long as it is not both? -
java.lang.ClassNotFoundException: BlamingTransformer
jcranky replied to jcranky's topic in Modder Support
Just to be sure, I just tested with a more recent version (1.9-12.16.1.1895) and the result is the same. If I could turn this error into a warning instead it would be great -
Hi, I have a small mod that runs a series of unit tests on another mod. In the past I was getting a warning about System.exit being used, but it run anyway - the test library I'm using probably has that call indeed. Now, recently, I cannot run the tester mod at all. I'm getting this: [09:01:23] [main/ERROR] [LaunchWrapper]: A critical problem occurred registering the ASM transformer class $wrapper.net.minecraftforge.fml.common.asm.transformers.BlamingTransformer java.lang.ClassNotFoundException: $wrapper.net.minecraftforge.fml.common.asm.transformers.BlamingTransformer at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_77] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_77] at net.minecraft.launchwrapper.LaunchClassLoader.registerTransformer(LaunchClassLoader.java:88) [launchwrapper-1.12.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:124) [forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:?] Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?] ... 17 more [09:01:23] [main/ERROR] [LaunchWrapper]: A critical problem occurred registering the ASM transformer class $wrapper.net.minecraftforge.fml.common.asm.transformers.SideTransformer java.lang.ClassNotFoundException: $wrapper.net.minecraftforge.fml.common.asm.transformers.SideTransformer at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_77] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_77] at net.minecraft.launchwrapper.LaunchClassLoader.registerTransformer(LaunchClassLoader.java:88) [launchwrapper-1.12.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:124) [forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:?] Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?] ... 17 more [09:01:23] [main/ERROR] [LaunchWrapper]: A critical problem occurred registering the ASM transformer class $wrapper.net.minecraftforge.fml.common.asm.transformers.EventSubscriptionTransformer java.lang.ClassNotFoundException: $wrapper.net.minecraftforge.fml.common.asm.transformers.EventSubscriptionTransformer at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_77] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_77] at net.minecraft.launchwrapper.LaunchClassLoader.registerTransformer(LaunchClassLoader.java:88) [launchwrapper-1.12.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:124) [forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:?] Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?] ... 17 more [09:01:23] [main/ERROR] [LaunchWrapper]: A critical problem occurred registering the ASM transformer class $wrapper.net.minecraftforge.fml.common.asm.transformers.EventSubscriberTransformer java.lang.ClassNotFoundException: $wrapper.net.minecraftforge.fml.common.asm.transformers.EventSubscriberTransformer at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_77] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_77] at net.minecraft.launchwrapper.LaunchClassLoader.registerTransformer(LaunchClassLoader.java:88) [launchwrapper-1.12.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:124) [forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:?] Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?] ... 17 more [09:01:23] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [09:01:24] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [09:01:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [09:01:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [09:01:24] [main/INFO] [sTDOUT]: [net.minecraftforge.fml.common.launcher.FMLDeobfTweaker:injectIntoClassLoader:44]: A CRITICAL PROBLEM OCCURED INITIALIZING MINECRAFT - LIKELY YOU HAVE AN INCORRECT VERSION FOR THIS FML [09:01:24] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.RuntimeException: java.lang.ClassNotFoundException: net.minecraftforge.fml.common.Loader at net.minecraftforge.fml.common.launcher.FMLDeobfTweaker.injectIntoClassLoader(FMLDeobfTweaker.java:45) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:?] Caused by: java.lang.ClassNotFoundException: net.minecraftforge.fml.common.Loader at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_77] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_77] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_77] at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_77] at net.minecraftforge.fml.common.launcher.FMLDeobfTweaker.injectIntoClassLoader(FMLDeobfTweaker.java:34) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] ... 13 more Caused by: java.lang.IllegalArgumentException at org.objectweb.asm.ClassVisitor.<init>(Unknown Source) ~[asm-4.1.jar:4.1] at org.objectweb.asm.commons.RemappingClassAdapter.<init>(RemappingClassAdapter.java:57) ~[asm-debug-all-5.0.3.jar:5.0.3] at org.objectweb.asm.commons.RemappingClassAdapter.<init>(RemappingClassAdapter.java:52) ~[asm-debug-all-5.0.3.jar:5.0.3] at net.minecraftforge.fml.common.asm.transformers.deobf.FMLRemappingAdapter.<init>(FMLRemappingAdapter.java:25) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraftforge.fml.common.asm.transformers.DeobfuscationTransformer.transform(DeobfuscationTransformer.java:43) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_77] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_77] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_77] at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_77] at net.minecraftforge.fml.common.launcher.FMLDeobfTweaker.injectIntoClassLoader(FMLDeobfTweaker.java:34) ~[forgeSrc-1.8.9-11.15.1.1722.jar:?] ... 13 more [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.reflect.InvocationTargetException [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.reflect.Method.invoke(Method.java:498) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at GradleStart.main(GradleStart.java:26) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.reflect.Method.invoke(Method.java:498) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:30) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.SecurityManager.checkExit(SecurityManager.java:761) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.Runtime.exit(Runtime.java:107) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.System.exit(System.java:971) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:138) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [09:01:24] [main/INFO] [sTDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: ... 11 more I'm using IDEA 2016.1 and forge "1.8.9-11.15.1.1722" (I tried a more recent version from the 1.8.9 line and it also had the same issue). And if I remove the test library from the classpath, the launcher works. I noticed some FML errors in there, perhaps my environment is screwed up? I already tried to cleanCache and setupDecompWorkspace, but nothing changed. Any clues?
-
After some exploration around this topic, I'm puzzled with one specific case. Why can't Item.getItemFromBlock(block) work for the door's blocks? Apparently, all of them have their counterparts, like Blocks.acacia_door and Items.acacia_door, so what is wrong with that?
-
I see, lots of weird relations indeed. So for something like Block.grass I probably would not have any other option than to hardcode some arbitrary relation, I guess. No big deal but good to know. Thank you guys!
-
So, if I'm understanding correctly, we can always go from Item to Block (or multiple blocks sometimes), and going from Block to Item is usually possible but will sometimes fail?
-
I see. I'll do some exploration, but at least now I understand what is happening. Is there any generic way to know if I have such a block in hand? Ideally, I want to be able to receive any block in a method and call getDisplayName (or something similar) on it, being it one of those special blocks or not. But then, I guess I would need a generic way to get the item corresponding to the block, in other words, a non-hardcoded way to know that Blocks.cake corresponds to Items.cake for example. Is there such a thing available or should I write a mapping myself? Thank you guys!
-
Hi, Is it somewhat illegal to create an ItemStack of Blocks.cake? The following code is throwing a NullPointerException for me: new ItemStack(Blocks.cake).getDisplayItem() The root of the problem is that such an ItemStack has a null item internally. Why is that? This doesn't seem to be the case for ItemStacks of other types of blocks...
-
[1.8.9] [Gradle/ForgeGradle] :fixMcSources Error
jcranky replied to KingYoshiYT's topic in Modder Support
I'm using 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT' - perhaps worth trying. -
And even then I would be suspicious
-
True, thank you for the correction. I somehow forgot to mention the obfuscator =)