Advertisement
Guest User

Untitled

a guest
Jan 11th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Fluid fluid = te.getCurrentRecipe().getResult().getFluid();
  2. TextureAtlasSprite f_s = Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(fluid.getStill().toString());
  3.  
  4. wr.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX_COLOR);
  5. Minecraft.getMinecraft().renderEngine().bindTexture(TextureMap.locationBlocksTexture);
  6. wr.pos(1, 0, 0).tex(f_s.getMaxU, f_s.getMinV).endVertex();
  7. wr.pos(0, 0, 0).tex(f_s.getMinU, f_s.getMinV).endVertex();
  8. wr.pos(0, 0, 1).tex(f_s.getMinU, f_s.getMaxV).endVertex();
  9. wr.pos(1, 0, 1).tex(f_s.getMaxU, f_s.getMaxV).endVertex();
  10. tess.draw();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement