Advertisement
WitherDoggie

Untitled

May 22nd, 2016
246
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.  
  24.     @Override
  25.     public void PreInit(FMLPreInitializationEvent e){
  26.        
  27.         super.PreInit(e);
  28.            
  29.         BlockRegistry.registerBlocks();
  30.         //BlockRender.registerBlock();
  31.         Item woodWall = GameRegistry.findItem(Main.MODID, "woodWall");
  32.         ModelLoader.setCustomModelResourceLocation(woodWall, 0, new ModelResourceLocation(woodWall.getRegistryName()));
  33.     }
  34.     @Override
  35.     public void Init(FMLInitializationEvent e){
  36.        
  37.         super.Init(e);
  38.        
  39.         RegisterRender.RegisterModel();
  40.        
  41.        
  42.     }
  43.    
  44.     @Override
  45.     public void PostInit(FMLPostInitializationEvent e){
  46.        
  47.         super.PostInit(e);
  48.     }
  49. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement