Jump to content

derf6060

Forge Modder
  • Posts

    57
  • Joined

  • Last visited

Everything posted by derf6060

  1. Thats cool . Thanks for the post. Hmm, kind of strange on their part to completely cut the ItemAxe. Weird. Also thanks for the code. I'll fix it up with damage and what not and repost it.
  2. Yeah that what I'm thing too. Due to the fact that all of the other tools are working I think its probably a bug on their end and plus forge for mc 1.9 just came too. Also thank for warning me about shields too. To me it sound like when your using using setCreativeTabs the shield class I guess ItemShield overrides the creative tabs logic or there not setting something on their end. I'm probably going to skip the axe for now and work on the rest of the port.
  3. Well the funny thing is the only tool that is giving me the error is the Axe. The Sword, Pickaxe, Spade (aka Shovel), and Hoe are not giving me an "Array out of Bound" exception. Only the Axe... Also here's the portion of code that is relevant to my problem from the EIItems class. public final class EIItems { // ... // Tier 1 Tools (Voidium Ingot Tools and Armor) // Tools public static Item voidiumSword; public static Item voidiumPickaxe; public static Item voidiumSpade; public static Item voidiumAxe; public static Item voidiumHoe; // ... public static void create() { VOIDIUM = EnumHelper.addToolMaterial("VOIDIUM", 2, 750, 6.0F, 2.0F, 0); // ... // Tier 1 Tools VOIDIUM // Tools voidiumSword = new EIItemSword("voidium_sword", VOIDIUM); voidiumPickaxe = new EIItemPickaxe("voidium_pickaxe", VOIDIUM); voidiumSpade = new EIItemSpade("voidium_shovel", VOIDIUM); voidiumAxe = new EIItemAxe("voidium_axe", VOIDIUM); voidiumHoe = new EIItemHoe("voidium_hoe", VOIDIUM); // ... } // ... }
  4. For some reason I'm getting an Array out of Bounds exception when compile I'm compiling my mod. I have no clue why its doing this. I'm also using forge version "1.9-12.16.0.1802-1.9" which the latest version of Java. Here my custom Axe class... package com.derf.ei.items; import net.minecraft.item.ItemAxe; public class EIItemAxe extends ItemAxe { protected EIItemAxe(String name, ToolMaterial material) { super(material); // TODO Auto-generated constructor stub this.setUnlocalizedName(name); } } Here is the stack trace. Stacktrace: at net.minecraft.item.ItemAxe.<init>(SourceFile:32) at com.derf.ei.items.EIItemAxe.<init>(EIItemAxe.java: at com.derf.ei.items.EIItems.create(EIItems.java:134) at com.derf.ei.EICommonProxy.preInit(EICommonProxy.java:19) at com.derf.ei.EIClientProxy.preInit(EIClientProxy.java:15) at com.derf.ei.EILoader.preInit(EILoader.java:25) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:221) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:128) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:241) at net.minecraft.client.Minecraft.startGame(Minecraft.java:434)
×
×
  • Create New...

Important Information

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