SHARE
TWEET

ClientProxy

TechMage66 Aug 13th, 2015 327 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.techmage.magetech.proxy;
  2.  
  3. import com.techmage.magetech.client.render.item.ItemNodeEssenceRenderer;
  4. import com.techmage.magetech.client.render.tileentity.TileEntityNodeEssenceRenderer;
  5. import com.techmage.magetech.init.MageTechBlocks;
  6. import com.techmage.magetech.init.MageTechItems;
  7. import com.techmage.magetech.reference.Names;
  8. import com.techmage.magetech.tileentity.TileEntityNodeEssence;
  9. import com.techmage.magetech.tileentity.TileEntityOrganicEssenceExtractor;
  10. import net.minecraft.item.Item;
  11. import net.minecraftforge.client.MinecraftForgeClient;
  12. import net.minecraftforge.fml.client.registry.ClientRegistry;
  13. import net.minecraftforge.fml.common.registry.GameRegistry;
  14.  
  15. public class ClientProxy extends CommonProxy
  16. {
  17.     @Override
  18.     public void registerRenders()
  19.     {
  20.         MageTechItems.registerRenders();
  21.         MageTechBlocks.registerRenders();
  22.     }
  23.  
  24.     @Override
  25.     public void registerTileEntities()
  26.     {
  27.         // Tech
  28.  
  29.         // Magic
  30.         GameRegistry.registerTileEntity(TileEntityOrganicEssenceExtractor.class, Names.Blocks.ORGANIC_ESSENCE_EXTRACTOR);
  31.     }
  32.  
  33.     @Override
  34.     public void bindTileEntityRenderer()
  35.     {
  36.         // Essence Node
  37.         ClientRegistry.bindTileEntitySpecialRenderer(TileEntityNodeEssence.class, new TileEntityNodeEssenceRenderer());
  38.         MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MageTechBlocks.node_essence), new ItemNodeEssenceRenderer());
  39.     }
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top