Advertisement
Guest User

Untitled

a guest
Sep 11th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. final Tessellator tessellator = Tessellator.getInstance();
  2. final VertexBuffer buffer = tessellator.getBuffer();
  3. final int alpha = ((int) (1.0D * 0xFF)) << 24;
  4. this.bindTexture(SIGN_TEXTURE);
  5.  
  6. for (final BakedQuad quad : model.getQuads(ModBlocks.blockInfoPoster.getActualState(ModBlocks.blockInfoPoster.getDefaultState(), te.getWorld(), new BlockPos(x,y,z)), null, alpha))
  7. {
  8. buffer.begin(GL11.GL_QUADS, quad.getFormat());
  9.  
  10. final int color = alpha | 0xffffff;
  11.  
  12. LightUtil.renderQuadColor(buffer, quad, color);
  13.  
  14. tessellator.draw();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement