Package logisticspipes.renderer.state

Examples of logisticspipes.renderer.state.PipeRenderState


  public static int renderPass = -1;
 
  public void renderPipe(RenderBlocks renderblocks, IBlockAccess iblockaccess, LogisticsBlockGenericPipe block, LogisticsTileGenericPipe pipe, int x, int y, int z) {
    if(pipe.pipe instanceof PipeBlockRequestTable) {
      PipeRenderState state = pipe.renderState;
      IIconProvider icons = pipe.getPipeIcons();
      if (icons == null) return;
      state.currentTexture = icons.getIcon(state.textureMatrix.getTextureIndex(ForgeDirection.UNKNOWN));
      block.setRenderAllSides();
      block.setBlockBounds(0, 0, 0, 1, 1, 1);
      renderblocks.setRenderBoundsFromBlock(block);
      renderblocks.renderStandardBlock(block, x, y, z);
      return;
    }
    PipeRenderState state = pipe.renderState;
    IIconProvider icons = pipe.getPipeIcons();
   
    if (icons == null)
      return;
View Full Code Here


    }
  }

  private void pipeWireRender(LogisticsTileGenericPipe pipe, float cx, float cy, float cz, PipeWire color, double x, double y, double z) {

    PipeRenderState state = pipe.renderState;
    BCRenderState bcRenderState = (BCRenderState) state.bcRenderState.getOriginal();
   
    float minX = LPConstants.PIPE_MIN_POS;
    float minY = LPConstants.PIPE_MIN_POS;
    float minZ = LPConstants.PIPE_MIN_POS;
View Full Code Here

TOP

Related Classes of logisticspipes.renderer.state.PipeRenderState

Copyright © 2018 www.massapicom. 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.