Examples of canRenderInPass()


Examples of net.minecraft.block.Block.canRenderInPass()

    Tessellator.instance.setBrightness(15 << 20 | 15 << 4);

    for(BlockCoord bc : blocks) {
      Block block = world.getBlock(bc.x, bc.y, bc.z);
      if(block != null) {
        if(block.canRenderInPass(pass)) {
          RB.renderAllFaces = true;
          RB.setRenderAllFaces(true);
          RB.setRenderBounds(0, 0, 0, 1, 1, 1);
          try {
            RB.renderBlockByRenderType(block, bc.x, bc.y, bc.z);
View Full Code Here

Examples of net.minecraft.block.Block.canRenderInPass()

                if (!lastTexture.equals(block.getTextureFile())) {
                  ForgeHooksClient.bindTexture(getTextureName(block.getTextureFile()), 0);
                  lastTexture = block.getTextureFile();
                }

                if (block.canRenderInPass(renderPass)) {
                  renderBlocks.renderBlockByRenderType(block, x, y, z);
                }
              }
            }
          } catch (Exception e) {
View Full Code Here

Examples of net.minecraft.block.Block.canRenderInPass()

    for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
      Block renderBlock = bcRenderState.facadeMatrix.getFacadeBlock(direction);

      if (renderBlock != null) {
        // If the facade is meant to render in the current pass
        if (renderBlock.canRenderInPass(LogisticsPipeWorldRenderer.renderPass)) {
          int renderMeta = bcRenderState.facadeMatrix.getFacadeMetaId(direction);

          for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
            state.textureArray[side.ordinal()] = renderBlock.getIcon(side.ordinal(), renderMeta);
            if (side == direction || side == direction.getOpposite()) {
View Full Code Here

Examples of net.minecraft.block.Block.canRenderInPass()

                rbw.opacity = 0.3f;
              instance.renderForPass( 1 );
            }
            else
            {
              if ( blk.canRenderInPass( 1 ) )
              {
                instance.renderForPass( 1 );
              }
            }
View Full Code Here

Examples of net.minecraft.block.Block.canRenderInPass()

    if ( out == null || out.getItem() == null )
      return false;

    Block blk = Block.getBlockFromItem( out.getItem() );
    if ( blk != null && blk.canRenderInPass( 1 ) )
      return true;

    return false;
  }
View Full Code Here

Examples of net.minecraft.block.Block.canRenderInPass()

    for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
      Block renderBlock = state.facadeMatrix.getFacadeBlock(direction);

      if (renderBlock != null) {
        // If the facade is meant to render in the current pass
        if (renderBlock.canRenderInPass(PipeRendererWorld.renderPass)) {
          int renderMeta = state.facadeMatrix.getFacadeMetaId(direction);

          for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
            textures[side.ordinal()] = renderBlock.getIcon(side.ordinal(), renderMeta);
            if (side == direction || side == direction.getOpposite()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.