Using this code for rendering them item in 3d in the inventory the icon is blank.
case INVENTORY:
GL11.glPushMatrix();
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(
"grwarcraft:/sword1.png"));
GL11.glRotatef(0.0F, 0.0f, 0.0f, 0.0f);
GL11.glRotatef(0.0F, 0.0f, 0.0f, 0.0f);
GL11.glTranslatef(0.0F, 0.0F, 0.0F);
GL11.glPopMatrix();
break;
Using this code it says it cannot be resolved to a variable.
@Override
public boolean handleRenderType(ItemStack item, ItemRenderType type) {
return (type == ENTITY || type == EQUIPPED || type == EQUIPPED_FIRST_PERSON);
}
I also have an icon registered with the item:
item3dtool = new GRItems().setTextureName("grwarcraft:/sword1").setUnlocalizedName("3dtool");
GameRegistry.registerItem(item3dtool, "3dtool");