Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. public class ItemThaumTankRenderer implements IItemRenderer {
  2.  
  3. private static final ResourceLocation TEX = new ResourceLocation(Knowledge.MODID+":"+"textures/models/ThaumTank_model.png");
  4. private ModelThaumTank model = new ModelThaumTank();
  5.  
  6. @Override
  7. public boolean handleRenderType(ItemStack item, ItemRenderType type) {
  8.  
  9. return true;
  10. }
  11.  
  12. @Override
  13. public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
  14.  
  15. return true;
  16. }
  17.  
  18. @Override
  19. public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
  20. GL11.glPushMatrix();
  21. Minecraft.getMinecraft().renderEngine.bindTexture(TEX);
  22. GL11.glTranslatef(0F, 0F, 0F);
  23. GL11.glScalef(0F, 0F, 0F);
  24. GL11.glRotatef(0F, 0F, 0F, 0F);
  25. GL11.glRotatef(0F, 0F, 0F, 0F);
  26. GL11.glRotatef(0F, 0F, 0F, 0F);
  27. this.model.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
  28. GL11.glPopMatrix();
  29.  
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement