Posted September 1, 201411 yr I was trying to make an Item with subitems, it works all fine but I can not override the getSubItem method of the ItemDye class: @Override @SideOnly(Side.CLIENT) public void getSubItems(Item item, CreativeTabs tab, List list){ for (int i = 0; i < 17; i++){ list.add(new ItemStack(item, 1, i)); } } I get an underlined error: The method getSubItems(Item, CreativeTabs, List) of type ItemSeasoning must override or implement a supertype method and I don't know why and if I can get around this somehow or if the max amount of metadata is already reached with 16? Everything else works find, name is right and I get 16 Items, it is not crashing but the 17th item just doesn't show up. Thanks for every help Flashexx
September 1, 201411 yr Understand what the error says, getSubItems is not being recognized, make sure you're extending the correct Item class, it might be a reference issue.
September 1, 201411 yr Author Thanks for the answer, it wasn't a reference issue just a false import of the CreativeTabs (however I managed to do that)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.