Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void renderTileEntityAt(TileEntityFarmer par1TileEntity, double par2, double par3, double par4, float partialTicks, int destroyStage){
- ResourceLocation texture = new ResourceLocation(ProjFactConstants.MODID + ":textures/blocks/farmer.png");
- ResourceLocation texture2 = new ResourceLocation(ProjFactConstants.MODID + ":textures/blocks/farmer2.png");
- GL11.glPushMatrix();
- GL11.glTranslatef((float) par2 + 0.5F, (float) par3 + 1.5F, (float) par4 + 0.5F);
- Minecraft.getMinecraft().renderEngine.bindTexture(texture2);
- GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
- this.modelBase.render((Entity)null, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
- GL11.glPopMatrix();
- GL11.glPushMatrix();
- GL11.glTranslatef((float) par2 + 0.5F, (float) par3 + 1.5F, (float) par4 + 0.5F);
- GL11.glColor3f(0.0F, 0.7F, 0.0F);
- Minecraft.getMinecraft().renderEngine.bindTexture(texture);
- GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
- this.modelBase.render((Entity)null, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
- GlStateManager.resetColor();
- GL11.glPopMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement