I'm looking to make a block that has 2 different metadata instances and different behaviors with each. Now, I've got the block and everything working fine, just can't figure out ItemBlock part of it.
I've looked at old tuts for ItemBlocks for use with blocks with metadata, but none of them seem to work, I get an error on initialization of my ItemBlock:
java.lang.NullPointerException
at net.minecraft.src.ItemBlock.<init>(ItemBlock.java:14)
at net.minecraft.src.ItemAppleBush.<init>(ItemAppleBush.java:10)
at net.minecraft.src.mod_AppleBushes.load(mod_AppleBushes.java:87)
at net.minecraft.src.ModLoader.init(ModLoader.java:927)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:161)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Unknown Source)
which refers to this line in the default ItemBlock class:
I've looked at old tuts for ItemBlocks for use with blocks with metadata, but none of them seem to work, I get an error on initialization of my ItemBlock:
which refers to this line in the default ItemBlock class:
Code for my ItemBlock:
Thanks in advance for any help.