WitherDoggie

Untitled

May 24th, 2016
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.wither.withermod;
  2.  
  3. import com.wither.withermod.blocks.BlockRegistry;
  4. import com.wither.withermod.blocks.BlockRender;
  5. import com.wither.withermod.blocks.WoodWall;
  6. import com.wither.withermod.items.ItemRegistry;
  7. import com.wither.withermod.items.RegisterRender;
  8.  
  9. import net.minecraft.client.Minecraft;
  10. import net.minecraft.client.resources.model.ModelBakery;
  11. import net.minecraft.client.resources.model.ModelResourceLocation;
  12. import net.minecraft.item.Item;
  13. import net.minecraft.util.ResourceLocation;
  14. import net.minecraftforge.client.model.ModelLoader;
  15. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  16. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  17. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  18. import net.minecraftforge.fml.common.registry.GameRegistry;
  19.  
  20. public class ClientProxy extends CommonProxy {
  21.    
  22.  
  23.     @Override
  24.     public void PreInit(FMLPreInitializationEvent e){
  25.        
  26.         super.PreInit(e);
  27.        
  28.        
  29.         //ModelResourceLocation woodWall_oak = new ModelResourceLocation (Main.MODID + "woodWall_oak");
  30.         //ModelResourceLocation woodWall_spruce = new ModelResourceLocation (Main.MODID + "woodWall_spruce" , "inventory");
  31.    
  32.         ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(BlockRegistry.woodWall), 0, new ModelResourceLocation(Main.MODID + "woodWall_oak"));
  33.        
  34.     }
  35.     @Override
  36.     public void Init(FMLInitializationEvent e){
  37.        
  38.         super.Init(e);
  39.        
  40.         //BlockRender.registerBlock();
  41.         //RegisterRender.RegisterModel();
  42.        
  43.        
  44.     }
  45.    
  46.     @Override
  47.     public void PostInit(FMLPostInitializationEvent e){
  48.        
  49.         super.PostInit(e);
  50.     }
  51. }
RAW Paste Data