Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ItemThaumTankRenderer implements IItemRenderer {
- private static final ResourceLocation TEX = new ResourceLocation(Knowledge.MODID+":"+"textures/models/ThaumTank_model.png");
- private ModelThaumTank model = new ModelThaumTank();
- @Override
- public boolean handleRenderType(ItemStack item, ItemRenderType type) {
- return true;
- }
- @Override
- public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
- return true;
- }
- @Override
- public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
- GL11.glPushMatrix();
- Minecraft.getMinecraft().renderEngine.bindTexture(TEX);
- GL11.glTranslatef(0F, 0F, 0F);
- GL11.glScalef(0F, 0F, 0F);
- GL11.glRotatef(0F, 0F, 0F, 0F);
- GL11.glRotatef(0F, 0F, 0F, 0F);
- GL11.glRotatef(0F, 0F, 0F, 0F);
- this.model.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
- GL11.glPopMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement