Okay now I use ItemStack().
@Override
public ItemStack getTabIconItem() {
return ItemStack(Items.LAVA_BUCKET);
}
Now my eclipse says : "The method ItemStack(Item) is undefined for the type CreativeTabTut" but I extends CreativeTabs for My CreativeTabTut class and I also import net.minecraft.item.ItemStack.
Hello c:,
I just started Minecraft modding with an yt tutorial. But now I got a Problem. When I want to set an icon for the creative tab I got an error.
@Override
public Item getTabIconItem() {
return Items.GOLDEN_APPLE;
}
My eclipse underline the type Item red and says "The return type is incompatible with CreativeTabs.getTabIconItem()". What return type I have to use?
Would be nice when somenone can help me c:,
jofri
9 replies
Important Information
By using this site, you agree to our Terms of Use.