Advertisement
WitherDoggie

Untitled

May 23rd, 2016
104
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.         BlockRegistry.registerBlocks();
  29.        
  30.         ModelResourceLocation woodWall_oak = new ModelResourceLocation (Main.MODID + "woodWall_oak" , "inventory");
  31.         ModelResourceLocation woodWall_spruce = new ModelResourceLocation (Main.MODID + "woodWall_spruce" , "inventory");
  32.        
  33.         ModelBakery.registerItemVariants(Item.getItemFromBlock(BlockRegistry.woodWall), woodWall_oak, woodWall_spruce);
  34.        
  35.        
  36.     }
  37.     @Override
  38.     public void Init(FMLInitializationEvent e){
  39.        
  40.         super.Init(e);
  41.        
  42.         //BlockRender.registerBlock();
  43.         RegisterRender.RegisterModel();
  44.        
  45.        
  46.     }
  47.    
  48.     @Override
  49.     public void PostInit(FMLPostInitializationEvent e){
  50.        
  51.         super.PostInit(e);
  52.     }
  53. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement