Advertisement
Guest User

TESRFarmer

a guest
Aug 16th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.08 KB | None | 0 0
  1.     @Override
  2.     public void renderTileEntityAt(TileEntityFarmer par1TileEntity, double par2, double par3, double par4, float partialTicks, int destroyStage){
  3.         ResourceLocation texture = new ResourceLocation(ProjFactConstants.MODID + ":textures/blocks/farmer.png");
  4.         ResourceLocation texture2 = new ResourceLocation(ProjFactConstants.MODID + ":textures/blocks/farmer2.png");
  5.         GL11.glPushMatrix();
  6.             GL11.glTranslatef((float) par2 + 0.5F, (float) par3 + 1.5F, (float) par4 + 0.5F);
  7.             Minecraft.getMinecraft().renderEngine.bindTexture(texture2);
  8.             GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
  9.            
  10.             this.modelBase.render((Entity)null, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
  11.         GL11.glPopMatrix();
  12.         GL11.glPushMatrix();
  13.             GL11.glTranslatef((float) par2 + 0.5F, (float) par3 + 1.5F, (float) par4 + 0.5F);
  14.             GL11.glColor3f(0.0F, 0.7F, 0.0F);
  15.             Minecraft.getMinecraft().renderEngine.bindTexture(texture);
  16.             GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
  17.            
  18.             this.modelBase.render((Entity)null, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
  19.             GlStateManager.resetColor();
  20.         GL11.glPopMatrix();
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement