SHARE
TWEET

ItemNodeEssenceRenderer

TechMage66 Aug 13th, 2015 376 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.techmage.magetech.client.render.item;
  2.  
  3. import com.techmage.magetech.client.render.tileentity.TileEntityNodeEssenceRenderer;
  4. import com.techmage.magetech.utility.LogHelper;
  5. import net.minecraft.item.ItemStack;
  6. import net.minecraftforge.client.IItemRenderer;
  7.  
  8. public class ItemNodeEssenceRenderer implements IItemRenderer
  9. {
  10.     @Override
  11.     public boolean handleRenderType(ItemStack item, ItemRenderType type)
  12.     {
  13.         return true;
  14.     }
  15.  
  16.     @Override
  17.     public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper)
  18.     {
  19.         return true;
  20.     }
  21.  
  22.     @Override
  23.     public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  24.     {
  25.         LogHelper.info("Render item");
  26.         switch (type)
  27.         {
  28.             case INVENTORY:
  29.                 (new TileEntityNodeEssenceRenderer()).renderInventory(0.0D, 0.0D, 0.0D);
  30.                 break;
  31.  
  32.             default:
  33.                 (new TileEntityNodeEssenceRenderer()).renderHand(0.0D, 0.0D, 0.0D);
  34.         }
  35.     }
  36. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top