Exemplo n.º 1
0
  @Override
  public void renderInvBlock(RenderBlocks renderblocks, int md) {
    super.block.setBlockBoundsForItemRender();
    super.context.setDefaults();
    this.setMatrixInv();
    this.renderInvPart(md);
    GL11.glDisable(2896);
    Tessellator tessellator = Tessellator.instance;
    tessellator.startDrawingQuads();
    int ts = this.getInvTorchState(md);
    RenderLogic.TorchPos[] tpv = this.getInvTorchVectors(md);
    if (tpv != null) {
      for (int n = 0; n < tpv.length; ++n) {
        this.renderRedstoneTorch(tpv[n].x, tpv[n].y, tpv[n].z, tpv[n].h, (ts & 1 << n) > 0);
      }
    }

    tessellator.draw();
    GL11.glEnable(2896);
  }