Advertisement
Guest User

Untitled

a guest
Dec 21st, 2015
757
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1.  
  2. TextureAtlasSprite a = Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(FluidRegistry.LAVA.getFlowing().toString());
  3. GlStateManager.pushMatrix();
  4. GlStateManager.translate(0, 1.5, 0);
  5. GlStateManager.scale(2, 2, 2);
  6. wr.startDrawingQuads();
  7. Minecraft.getMinecraft().renderEngine().bindTexture(TextureMap.locationBlocksTexture);
  8. wr.addVertexWithUV(1, 0, 0, a.getMaxU, a.getMinU);
  9. wr.addVertexWithUV(0, 0, 0, a.getMinU, a.getMinU);
  10. wr.addVertexWithUV(0, 0, 1, a.getMinU, a.getMaxU);
  11. wr.addVertexWithUV(1, 0, 1, a.getMaxU, a.getMaxU);
  12. Tessellator.getInstance.draw();
  13. GlStateManager.popMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement