can anyone help me with this my 3D item model is not loading here is my package please take a look and tell me whats wrong.
can you look at my project i'm confused?
main
package com.matteogrdina.thetruth;
import com.matteogrdina.thetruth.item.ModItems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@Mod(modid = Main.MODID, name = Main.MODNAME, version = Main.VERSION)
public class Main {
public static final String MODID = "thetruth";
public static final String MODNAME = "The Truth";
public static final String VERSION = "1.0.0";
public static proxy.registerItemRenderer();
@Instance
public static Main instance = new Main();
public static CreativeTabs tabCustom = new CreativeTabs("The Truth"){
@Override
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
return ModItems.InfinityJem;
}
};
@SidedProxy(clientSide="com.matteogrdina.thetruth.ClientProxy", serverSide="com.matteogrdina.thetruth.ServerProxy")
public static CommonProxy proxy;
/**
* Run before anything else. Read your config, create blocks, items, etc, and
* register them with the GameRegistry.
*/
@EventHandler
public void preInit(FMLPreInitializationEvent e) {
proxy.preInit(e);;
}
/**
* Do your mod setup. Build whatever data structures you care about. Register recipes.
*/
@EventHandler
public void init(FMLInitializationEvent e) {
proxy.init(e);
}
/**
* Handle interaction with other mods, complete your setup based on this.
*/
@EventHandler
public void postInit(FMLPostInitializationEvent e) {
proxy.postInit(e);
}
}
commonproxy
package com.matteogrdina.thetruth;
import com.matteogrdina.thetruth.block.ModBlocks;
import com.matteogrdina.thetruth.item.ModItems;
import com.matteogrdina.thetruth.smelting.ModSmelting;
import com.matteogrdina.thetruth.world.ModWorldGen;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
public class CommonProxy {
public void registerRenderThings(){
}
public void registerItemRenderers(){
}
public void preInit(FMLPreInitializationEvent e) {
ModItems.init();
ModBlocks.init();
ModSmelting.init();
}
public void init(FMLInitializationEvent e) {
GameRegistry.registerWorldGenerator(new ModWorldGen(), 0);
}
public void postInit(FMLPostInitializationEvent e) {
}
}
itemmodsword
package com.matteogrdina.thetruth.item;
import net.minecraft.item.ItemSword;
import com.matteogrdina.thetruth.Main;
public class ItemModSword extends ItemSword {
public ItemModSword(String unlocalizedName, ToolMaterial material) {
super(material);
this.setUnlocalizedName(unlocalizedName);
this.setTextureName(Main.MODID + ":" + unlocalizedName);
this.setCreativeTab(Main.tabCustom);
}
@Override
public boolean isFull3D(){
return true;
}
}
moditems
package com.matteogrdina.thetruth.item;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraftforge.common.util.EnumHelper;
import com.matteogrdina.thetruth.Main;
import cpw.mods.fml.common.registry.GameRegistry;
public class ModItems {
public static ToolMaterial NORMAL = EnumHelper.addToolMaterial("NORMAL", 3, 999999999, 77.0F, 6.0F, 77);
public static ToolMaterial SHIKAI = EnumHelper.addToolMaterial("SHIKAI", 3, 999999999, 77.0F, 14.0F, 77);
public static ToolMaterial BANKAI = EnumHelper.addToolMaterial("BANKAI", 3, 999999999, 77.0F, 16.0F, 77);
public static Item shadowSteel;
public static Item InfinityJem;
public static Item firesteel;
public static Item firejem;
public static Item airsteel;
public static Item airjem;
public static Item earthsteel;
public static Item earthjem;
public static Item watersteel;
public static Item waterjem;
public static Item lightningsteel;
public static Item lightningjem;
public static Item lightsteel;
public static Item lovejem;
public static Item doragonkage;
public static Item shainingurabu;
public static final void init() {
shadowSteel = new Item().setUnlocalizedName("shadowSteel").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":shadowSteel");
GameRegistry.registerItem(shadowSteel, "shadowSteel");
InfinityJem = new Item().setUnlocalizedName("InfinityJem").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":InfinityJem");
GameRegistry.registerItem(InfinityJem, "InfinityJem");
firesteel = new Item().setUnlocalizedName("firesteel").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":firesteel");
GameRegistry.registerItem(firesteel, "firesteel");
firejem = new Item().setUnlocalizedName("firejem").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":firejem");
GameRegistry.registerItem(firejem, "firejem");
airsteel = new Item().setUnlocalizedName("airsteel").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":airsteel");
GameRegistry.registerItem(airsteel, "airsteel");
airjem = new Item().setUnlocalizedName("airjem").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":airjem");
GameRegistry.registerItem(airjem, "airjem");
earthsteel = new Item().setUnlocalizedName("earthsteel").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":earthsteel");
GameRegistry.registerItem(earthsteel, "earthsteel");
earthjem = new Item().setUnlocalizedName("earthjem").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":earthjem");
GameRegistry.registerItem(earthjem, "earthjem");
watersteel = new Item().setUnlocalizedName("watersteel").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":watersteel");
GameRegistry.registerItem(watersteel, "watersteel");
waterjem = new Item().setUnlocalizedName("waterjem").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":waterjem");
GameRegistry.registerItem(waterjem, "waterjem");
lightningsteel = new Item().setUnlocalizedName("lightningsteel").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":lightningsteel");
GameRegistry.registerItem(lightningsteel, "lightningsteel");
lightningjem = new Item().setUnlocalizedName("lightningjem").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":lightningjem");
GameRegistry.registerItem(lightningjem, "lightningjem");
lightsteel = new Item().setUnlocalizedName("lightsteel").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":lightsteel");
GameRegistry.registerItem(lightsteel, "lightsteel");
lovejem = new Item().setUnlocalizedName("lovejem").setCreativeTab(Main.tabCustom).setTextureName(Main.MODID + ":lovejem");
GameRegistry.registerItem(lovejem, "lovejem");
GameRegistry.registerItem(doragonkage = new ItemModSword("doragonkage", NORMAL), "doragonkage");
GameRegistry.registerItem(shainingurabu = new ItemModSword("shainingurabu", NORMAL), "shainingurabu");
}
}
clientproxy
package com.matteogrdina.thetruth;
import net.minecraftforge.client.IItemRenderer;
import net.minecraftforge.client.MinecraftForgeClient;
import com.matteogrdina.thetruth.item.ModItems;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
public class ClientProxy extends CommonProxy {
public void registerItemRenderers(){
MinecraftForgeClient.registerItemRenderer(ModItems.doragonkage, (IItemRenderer)new itemRender());
}
@Override
public void preInit(FMLPreInitializationEvent e) {
super.preInit(e);
}
@Override
public void init(FMLInitializationEvent e) {
super.init(e);
}
@Override
public void postInit(FMLPostInitializationEvent e) {
super.postInit(e);
}
ModelKatana
package com.matteogrdina.thetruth.models;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelKatana extends ModelBase {
{
//fields
ModelRenderer Shape1;
ModelRenderer Shape2;
ModelRenderer Shape3;
ModelRenderer Shape4;
ModelRenderer Shape5;
ModelRenderer Shape6;
ModelRenderer Shape7;
ModelRenderer Shape8;
ModelRenderer Shape10;
ModelRenderer Shape9;
ModelRenderer Shape11;
ModelRenderer Shape12;
ModelRenderer Shape13;
ModelRenderer Shape14;
ModelRenderer Shape15;
ModelRenderer Shape16;
ModelRenderer Shape17;
ModelRenderer Shape18;
ModelRenderer Shape19;
ModelRenderer Shape20;
ModelRenderer Shape21;
ModelRenderer Shape22;
ModelRenderer Shape23;
ModelRenderer Shape24;
ModelRenderer Shape25;
ModelRenderer Shape26;
ModelRenderer Shape27;
ModelRenderer Shape28;
ModelRenderer Shape29;
ModelRenderer Shape30;
ModelRenderer Shape31;
ModelRenderer Shape32;
ModelRenderer Shape33;
ModelRenderer Shape34;
ModelRenderer Shape35;
ModelRenderer Shape36;
ModelRenderer Shape37;
ModelRenderer Shape38;
ModelRenderer Shape39;
ModelRenderer Shape40;
ModelRenderer Shape41;
ModelRenderer Shape42;
ModelRenderer Shape43;
ModelRenderer Shape44;
ModelRenderer Shape45;
ModelRenderer Shape46;
ModelRenderer Shape47;
ModelRenderer Shape48;
ModelRenderer Shape49;
ModelRenderer Shape50;
}
public Modelkatana()
{
textureWidth = 64;
textureHeight = 32;
Shape1 = new ModelRenderer(this, 0, 10);
Shape1.addBox(0F, 0F, 0F, 3, 3, 1);
Shape1.setRotationPoint(0F, 0F, 0F);
Shape1.setTextureSize(64, 32);
Shape1.mirror = true;
setRotation(Shape1, 0F, 0F, 0F);
Shape2 = new ModelRenderer(this, 0, 5);
Shape2.addBox(0F, 0F, 0F, 3, 3, 1);
Shape2.setRotationPoint(1F, 1F, 0F);
Shape2.setTextureSize(64, 32);
Shape2.mirror = true;
setRotation(Shape2, 0F, 0F, 0F);
Shape3 = new ModelRenderer(this, 23, 5);
Shape3.addBox(0F, 0F, 0F, 3, 3, 1);
Shape3.setRotationPoint(-1F, -1F, 0F);
Shape3.setTextureSize(64, 32);
Shape3.mirror = true;
setRotation(Shape3, 0F, 0F, 0F);
Shape4 = new ModelRenderer(this, 23, 10);
Shape4.addBox(0F, 0F, 0F, 3, 3, 1);
Shape4.setRotationPoint(-2F, -2F, 0F);
Shape4.setTextureSize(64, 32);
Shape4.mirror = true;
setRotation(Shape4, 0F, 0F, 0F);
Shape5 = new ModelRenderer(this, 23, 15);
Shape5.addBox(0F, 0F, 0F, 3, 3, 1);
Shape5.setRotationPoint(-3F, -3F, 0F);
Shape5.setTextureSize(64, 32);
Shape5.mirror = true;
setRotation(Shape5, 0F, 0F, 0F);
Shape6 = new ModelRenderer(this, 23, 20);
Shape6.addBox(0F, 0F, 0F, 3, 3, 1);
Shape6.setRotationPoint(-4F, -4F, 0F);
Shape6.setTextureSize(64, 32);
Shape6.mirror = true;
setRotation(Shape6, 0F, 0F, 0F);
Shape7 = new ModelRenderer(this, 23, 0);
Shape7.addBox(0F, 0F, 0F, 3, 3, 1);
Shape7.setRotationPoint(-5F, -5F, 0F);
Shape7.setTextureSize(64, 32);
Shape7.mirror = true;
setRotation(Shape7, 0F, 0F, 0F);
Shape8 = new ModelRenderer(this, 14, 0);
Shape8.addBox(0F, 0F, 0F, 3, 3, 1);
Shape8.setRotationPoint(-6F, -6F, 0F);
Shape8.setTextureSize(64, 32);
Shape8.mirror = true;
setRotation(Shape8, 0F, 0F, 0F);
Shape10 = new ModelRenderer(this, 0, 15);
Shape10.addBox(0F, 0F, 0F, 3, 3, 1);
Shape10.setRotationPoint(-7F, -7F, 0F);
Shape10.setTextureSize(64, 32);
Shape10.mirror = true;
setRotation(Shape10, 0F, 0F, 0F);
Shape9 = new ModelRenderer(this, 14, 9);
Shape9.addBox(0F, 0F, 0F, 2, 2, 1);
Shape9.setRotationPoint(-9F, -5F, 0F);
Shape9.setTextureSize(64, 32);
Shape9.mirror = true;
setRotation(Shape9, 0F, 0F, 0F);
Shape11 = new ModelRenderer(this, 14, 5);
Shape11.addBox(0F, 0F, 0F, 2, 2, 1);
Shape11.setRotationPoint(-5F, -9F, 0F);
Shape11.setTextureSize(64, 32);
Shape11.mirror = true;
setRotation(Shape11, 0F, 0F, 0F);
Shape12 = new ModelRenderer(this, 14, 13);
Shape12.addBox(0F, 0F, 0F, 2, 2, 1);
Shape12.setRotationPoint(-4F, -10F, 0F);
Shape12.setTextureSize(64, 32);
Shape12.mirror = true;
setRotation(Shape12, 0F, 0F, 0F);
Shape13 = new ModelRenderer(this, 14, 17);
Shape13.addBox(0F, 0F, 0F, 2, 2, 1);
Shape13.setRotationPoint(-10F, -4F, 0F);
Shape13.setTextureSize(64, 32);
Shape13.mirror = true;
setRotation(Shape13, 0F, 0F, 0F);
Shape14 = new ModelRenderer(this, 9, 0);
Shape14.addBox(0F, 0F, 0F, 1, 1, 1);
Shape14.setRotationPoint(-8F, -6F, 0F);
Shape14.setTextureSize(64, 32);
Shape14.mirror = true;
setRotation(Shape14, 0F, 0F, 0F);
Shape15 = new ModelRenderer(this, 9, 3);
Shape15.addBox(0F, 0F, 0F, 1, 1, 1);
Shape15.setRotationPoint(-8F, -7F, 0F);
Shape15.setTextureSize(64, 32);
Shape15.mirror = true;
setRotation(Shape15, 0F, 0F, 0F);
Shape16 = new ModelRenderer(this, 9, 9);
Shape16.addBox(0F, 0F, 0F, 1, 1, 1);
Shape16.setRotationPoint(-6F, -8F, 0F);
Shape16.setTextureSize(64, 32);
Shape16.mirror = true;
setRotation(Shape16, 0F, 0F, 0F);
Shape17 = new ModelRenderer(this, 9, 6);
Shape17.addBox(0F, 0F, 0F, 1, 1, 1);
Shape17.setRotationPoint(-7F, -8F, 0F);
Shape17.setTextureSize(64, 32);
Shape17.mirror = true;
setRotation(Shape17, 0F, 0F, 0F);
Shape18 = new ModelRenderer(this, 0, 0);
Shape18.addBox(0F, 0F, 0F, 3, 3, 1);
Shape18.setRotationPoint(-10F, -10F, 0F);
Shape18.setTextureSize(64, 32);
Shape18.mirror = true;
setRotation(Shape18, 0F, 0F, 0F);
Shape19 = new ModelRenderer(this, 9, 12);
Shape19.addBox(0F, 0F, 0F, 1, 1, 1);
Shape19.setRotationPoint(-9F, -7F, 0F);
Shape19.setTextureSize(64, 32);
Shape19.mirror = true;
setRotation(Shape19, 0F, 0F, 0F);
Shape20 = new ModelRenderer(this, 9, 15);
Shape20.addBox(0F, 0F, 0F, 1, 1, 1);
Shape20.setRotationPoint(-7F, -9F, 0F);
Shape20.setTextureSize(64, 32);
Shape20.mirror = true;
setRotation(Shape20, 0F, 0F, 0F);
Shape21 = new ModelRenderer(this, 0, 0);
Shape21.addBox(0F, 0F, 0F, 3, 3, 1);
Shape21.setRotationPoint(-11F, -11F, 0F);
Shape21.setTextureSize(64, 32);
Shape21.mirror = true;
setRotation(Shape21, 0F, 0F, 0F);
Shape22 = new ModelRenderer(this, 0, 0);
Shape22.addBox(0F, 0F, 0F, 3, 3, 1);
Shape22.setRotationPoint(-12F, -12F, 0F);
Shape22.setTextureSize(64, 32);
Shape22.mirror = true;
setRotation(Shape22, 0F, 0F, 0F);
Shape23 = new ModelRenderer(this, 0, 0);
Shape23.addBox(0F, 0F, 0F, 3, 3, 1);
Shape23.setRotationPoint(-13F, -13F, 0F);
Shape23.setTextureSize(64, 32);
Shape23.mirror = true;
setRotation(Shape23, 0F, 0F, 0F);
Shape24 = new ModelRenderer(this, 0, 0);
Shape24.addBox(0F, 0F, 0F, 3, 3, 1);
Shape24.setRotationPoint(-14F, -14F, 0F);
Shape24.setTextureSize(64, 32);
Shape24.mirror = true;
setRotation(Shape24, 0F, 0F, 0F);
Shape25 = new ModelRenderer(this, 0, 0);
Shape25.addBox(0F, 0F, 0F, 3, 3, 1);
Shape25.setRotationPoint(-15F, -15F, 0F);
Shape25.setTextureSize(64, 32);
Shape25.mirror = true;
setRotation(Shape25, 0F, 0F, 0F);
Shape26 = new ModelRenderer(this, 0, 0);
Shape26.addBox(0F, 0F, 0F, 3, 3, 1);
Shape26.setRotationPoint(-16F, -16F, 0F);
Shape26.setTextureSize(64, 32);
Shape26.mirror = true;
setRotation(Shape26, 0F, 0F, 0F);
Shape27 = new ModelRenderer(this, 0, 0);
Shape27.addBox(0F, 0F, 0F, 3, 3, 1);
Shape27.setRotationPoint(-17F, -17F, 0F);
Shape27.setTextureSize(64, 32);
Shape27.mirror = true;
setRotation(Shape27, 0F, 0F, 0F);
Shape28 = new ModelRenderer(this, 0, 0);
Shape28.addBox(0F, 0F, 0F, 3, 3, 1);
Shape28.setRotationPoint(-18F, -18F, 0F);
Shape28.setTextureSize(64, 32);
Shape28.mirror = true;
setRotation(Shape28, 0F, 0F, 0F);
Shape29 = new ModelRenderer(this, 0, 0);
Shape29.addBox(0F, 0F, 0F, 3, 3, 1);
Shape29.setRotationPoint(-19F, -19F, 0F);
Shape29.setTextureSize(64, 32);
Shape29.mirror = true;
setRotation(Shape29, 0F, 0F, 0F);
Shape30 = new ModelRenderer(this, 0, 0);
Shape30.addBox(0F, 0F, 0F, 3, 3, 1);
Shape30.setRotationPoint(-20F, -20F, 0F);
Shape30.setTextureSize(64, 32);
Shape30.mirror = true;
setRotation(Shape30, 0F, 0F, 0F);
Shape31 = new ModelRenderer(this, 0, 0);
Shape31.addBox(0F, 0F, 0F, 3, 3, 1);
Shape31.setRotationPoint(-22F, -22F, 0F);
Shape31.setTextureSize(64, 32);
Shape31.mirror = true;
setRotation(Shape31, 0F, 0F, 0F);
Shape32 = new ModelRenderer(this, 0, 0);
Shape32.addBox(0F, 0F, 0F, 3, 3, 1);
Shape32.setRotationPoint(-21F, -21F, 0F);
Shape32.setTextureSize(64, 32);
Shape32.mirror = true;
setRotation(Shape32, 0F, 0F, 0F);
Shape33 = new ModelRenderer(this, 0, 0);
Shape33.addBox(0F, 0F, 0F, 3, 3, 1);
Shape33.setRotationPoint(-23F, -23F, 0F);
Shape33.setTextureSize(64, 32);
Shape33.mirror = true;
setRotation(Shape33, 0F, 0F, 0F);
Shape34 = new ModelRenderer(this, 0, 0);
Shape34.addBox(0F, 0F, 0F, 3, 3, 1);
Shape34.setRotationPoint(-24F, -24F, 0F);
Shape34.setTextureSize(64, 32);
Shape34.mirror = true;
setRotation(Shape34, 0F, 0F, 0F);
Shape35 = new ModelRenderer(this, 0, 0);
Shape35.addBox(0F, 0F, 0F, 3, 3, 1);
Shape35.setRotationPoint(-25F, -25F, 0F);
Shape35.setTextureSize(64, 32);
Shape35.mirror = true;
setRotation(Shape35, 0F, 0F, 0F);
Shape36 = new ModelRenderer(this, 0, 0);
Shape36.addBox(0F, 0F, 0F, 3, 3, 1);
Shape36.setRotationPoint(-39F, -39F, 0F);
Shape36.setTextureSize(64, 32);
Shape36.mirror = true;
setRotation(Shape36, 0F, 0F, 0F);
Shape37 = new ModelRenderer(this, 0, 0);
Shape37.addBox(0F, 0F, 0F, 3, 3, 1);
Shape37.setRotationPoint(-26F, -26F, 0F);
Shape37.setTextureSize(64, 32);
Shape37.mirror = true;
setRotation(Shape37, 0F, 0F, 0F);
Shape38 = new ModelRenderer(this, 0, 0);
Shape38.addBox(0F, 0F, 0F, 3, 3, 1);
Shape38.setRotationPoint(-27F, -27F, 0F);
Shape38.setTextureSize(64, 32);
Shape38.mirror = true;
setRotation(Shape38, 0F, 0F, 0F);
Shape39 = new ModelRenderer(this, 0, 0);
Shape39.addBox(0F, 0F, 0F, 3, 3, 1);
Shape39.setRotationPoint(-28F, -28F, 0F);
Shape39.setTextureSize(64, 32);
Shape39.mirror = true;
setRotation(Shape39, 0F, 0F, 0F);
Shape40 = new ModelRenderer(this, 0, 0);
Shape40.addBox(0F, 0F, 0F, 3, 3, 1);
Shape40.setRotationPoint(-29F, -29F, 0F);
Shape40.setTextureSize(64, 32);
Shape40.mirror = true;
setRotation(Shape40, 0F, 0F, 0F);
Shape41 = new ModelRenderer(this, 0, 0);
Shape41.addBox(0F, 0F, 0F, 3, 3, 1);
Shape41.setRotationPoint(-30F, -30F, 0F);
Shape41.setTextureSize(64, 32);
Shape41.mirror = true;
setRotation(Shape41, 0F, 0F, 0F);
Shape42 = new ModelRenderer(this, 0, 0);
Shape42.addBox(0F, 0F, 0F, 3, 3, 1);
Shape42.setRotationPoint(-31F, -31F, 0F);
Shape42.setTextureSize(64, 32);
Shape42.mirror = true;
setRotation(Shape42, 0F, 0F, 0F);
Shape43 = new ModelRenderer(this, 0, 0);
Shape43.addBox(0F, 0F, 0F, 3, 3, 1);
Shape43.setRotationPoint(-32F, -32F, 0F);
Shape43.setTextureSize(64, 32);
Shape43.mirror = true;
setRotation(Shape43, 0F, 0F, 0F);
Shape44 = new ModelRenderer(this, 0, 0);
Shape44.addBox(0F, 0F, 0F, 3, 3, 1);
Shape44.setRotationPoint(-33F, -33F, 0F);
Shape44.setTextureSize(64, 32);
Shape44.mirror = true;
setRotation(Shape44, 0F, 0F, 0F);
Shape45 = new ModelRenderer(this, 0, 0);
Shape45.addBox(0F, 0F, 0F, 3, 3, 1);
Shape45.setRotationPoint(-34F, -34F, 0F);
Shape45.setTextureSize(64, 32);
Shape45.mirror = true;
setRotation(Shape45, 0F, 0F, 0F);
Shape46 = new ModelRenderer(this, 0, 0);
Shape46.addBox(0F, 0F, 0F, 3, 3, 1);
Shape46.setRotationPoint(-35F, -35F, 0F);
Shape46.setTextureSize(64, 32);
Shape46.mirror = true;
setRotation(Shape46, 0F, 0F, 0F);
Shape47 = new ModelRenderer(this, 0, 0);
Shape47.addBox(0F, 0F, 0F, 3, 3, 1);
Shape47.setRotationPoint(-36F, -36F, 0F);
Shape47.setTextureSize(64, 32);
Shape47.mirror = true;
setRotation(Shape47, 0F, 0F, 0F);
Shape48 = new ModelRenderer(this, 0, 0);
Shape48.addBox(0F, 0F, 0F, 3, 3, 1);
Shape48.setRotationPoint(-37F, -37F, 0F);
Shape48.setTextureSize(64, 32);
Shape48.mirror = true;
setRotation(Shape48, 0F, 0F, 0F);
Shape49 = new ModelRenderer(this, 0, 0);
Shape49.addBox(0F, 0F, 0F, 3, 3, 1);
Shape49.setRotationPoint(-38F, -38F, 0F);
Shape49.setTextureSize(64, 32);
Shape49.mirror = true;
setRotation(Shape49, 0F, 0F, 0F);
Shape50 = new ModelRenderer(this, 0, 20);
Shape50.addBox(0F, 0F, 0F, 3, 3, 1);
Shape50.setRotationPoint(-40F, -40F, 0F);
Shape50.setTextureSize(64, 32);
Shape50.mirror = true;
setRotation(Shape50, 0F, 0F, 0F);
}
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
Shape1.render(f5);
Shape2.render(f5);
Shape3.render(f5);
Shape4.render(f5);
Shape5.render(f5);
Shape6.render(f5);
Shape7.render(f5);
Shape8.render(f5);
Shape10.render(f5);
Shape9.render(f5);
Shape11.render(f5);
Shape12.render(f5);
Shape13.render(f5);
Shape14.render(f5);
Shape15.render(f5);
Shape16.render(f5);
Shape17.render(f5);
Shape18.render(f5);
Shape19.render(f5);
Shape20.render(f5);
Shape21.render(f5);
Shape22.render(f5);
Shape23.render(f5);
Shape24.render(f5);
Shape25.render(f5);
Shape26.render(f5);
Shape27.render(f5);
Shape28.render(f5);
Shape29.render(f5);
Shape30.render(f5);
Shape31.render(f5);
Shape32.render(f5);
Shape33.render(f5);
Shape34.render(f5);
Shape35.render(f5);
Shape36.render(f5);
Shape37.render(f5);
Shape38.render(f5);
Shape39.render(f5);
Shape40.render(f5);
Shape41.render(f5);
Shape42.render(f5);
Shape43.render(f5);
Shape44.render(f5);
Shape45.render(f5);
Shape46.render(f5);
Shape47.render(f5);
Shape48.render(f5);
Shape49.render(f5);
Shape50.render(f5);
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity ent)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5, ent);
}
}
itemRender
package com.matteogrdina.thetruth;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.IItemRenderer;
import org.lwjgl.opengl.GL11;
import com.matteogrdina.thetruth.models.ModelKatana;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class itemRender implements IItemRenderer {
public static final ResourceLocation texture = new ResourceLocation("thetruth:textures/items/doragonkage.png");
private ModelKatana swordModel;
public itemRender()
{
this.swordModel = new ModelKatana();
}
@Override
public boolean handleRenderType(ItemStack item, ItemRenderType type)
{
switch(type)
{
case EQUIPPED: return true;
default: return false;
}
}
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
ItemRendererHelper helper)
{
return false;
}
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data)
{
switch(type)
{
case EQUIPPED:
{
GL11.glPushMatrix();
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("thetruth:textures/items/doragonkage.png"));
swordModel.render((Entity)data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
GL11.glPopMatrix();
break;
}
default:
break;
}
}
}
serverproxy
package com.matteogrdina.thetruth;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
public class ServerProxy extends CommonProxy {
public void registerRenderThings(){
}
public void registerItemRenderers(){
}
@Override
public void preInit(FMLPreInitializationEvent e) {
super.preInit(e);
}
@Override
public void init(FMLInitializationEvent e) {
super.init(e);
}
@Override
public void postInit(FMLPostInitializationEvent e) {
super.postInit(e);
}
}