Advertisement
WitherDoggie

Client Proxy

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