Advertisement
Guest User

Untitled

a guest
Aug 10th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Fluid fluid = FluidRegistry.LAVA;
  2. IIcon texture = fluid.getStillIcon();
  3. double uMin = texture.getInterpolatedU(0.0D);
  4. double uMax = texture.getInterpolatedU(16.0D);
  5. double vMin = texture.getInterpolatedV(0.0D);
  6. double vMax = texture.getInterpolatedV(16.0D);
  7.  
  8. GL11.glPushMatrix();
  9. tessellator.startDrawingQuads();
  10. Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
  11. tessellator.addVertexWithUV(0, 0, 0, uMin, vMin);
  12. tessellator.addVertexWithUV(1, 0, 0, uMax, vMin);
  13. tessellator.addVertexWithUV(1, 0, 1, uMax, vMax);
  14. tessellator.addVertexWithUV(0, 0, 1, uMin, vMax);
  15. tessellator.draw();
  16. GL11.glPopMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement