Examples of BCRenderState


Examples of logisticspipes.proxy.buildcraft.bc61.subproxies.BCRenderState

    this.yCoord = tile.yCoord;
    this.zCoord = tile.zCoord;
    this.pipe = pipe;
    this.redstoneInput = tile.redstoneInput;
    this.redstoneInputSide = tile.redstoneInputSide;
    BCRenderState bcRenderState = ((BCRenderState)tile.renderState.bcRenderState.getOriginal());
    try {
      ReflectionHelper.setFinalField(PipeRenderState.class, "gateMatrix", this.renderState, bcRenderState.gateMatrix);
      ReflectionHelper.setFinalField(PipeRenderState.class, "robotStationMatrix", this.renderState, bcRenderState.robotStationMatrix);
    } catch(Exception e) {
      throw new RuntimeException(e);
View Full Code Here

Examples of logisticspipes.proxy.buildcraft.bc61.subproxies.BCRenderState

  @SideOnly(Side.CLIENT)
  public void renderGatesWires(LogisticsTileGenericPipe pipe, double x, double y, double z) {
   
    renderGates(pipe, x, y, z);
   
    BCRenderState bcRenderState = (BCRenderState) pipe.renderState.bcRenderState.getOriginal();

    if (bcRenderState.wireMatrix.hasWire(PipeWire.RED)) {
      pipeWireRender(pipe, LPConstants.PIPE_MIN_POS, LPConstants.PIPE_MAX_POS, LPConstants.PIPE_MIN_POS, PipeWire.RED, x, y, z);
    }
View Full Code Here

Examples of logisticspipes.proxy.buildcraft.bc61.subproxies.BCRenderState

  }

  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

Examples of logisticspipes.proxy.buildcraft.bc61.subproxies.BCRenderState

      }
    }
  }

  private void renderGate(LogisticsTileGenericPipe pipe, double x, double y, double z, Gate gate, ForgeDirection direction) {
    BCRenderState bcRenderState = (BCRenderState) pipe.renderState.bcRenderState.getOriginal();
 
    GL11.glPushMatrix();
    GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
//    GL11.glEnable(GL11.GL_LIGHTING);
    GL11.glDisable(GL11.GL_BLEND);
View Full Code Here

Examples of logisticspipes.proxy.buildcraft.bc61.subproxies.BCRenderState

  @Override
  @SideOnly(Side.CLIENT)
  public void pipePlugRenderer(RenderBlocks renderblocks, Block block, PipeRenderState state, int x, int y, int z) {
   
    BCRenderState bcRenderState = (BCRenderState)state.bcRenderState.getOriginal();
   
    float zFightOffset = 1F / 4096F;

    float[][] zeroState = new float[3][2];
    // X START - END
View Full Code Here

Examples of logisticspipes.proxy.buildcraft.bc61.subproxies.BCRenderState

    return new BCCoreState();
  }

  @Override
  public IBCRenderState getBCRenderState() {
    return new BCRenderState();
  }
View Full Code Here

Examples of logisticspipes.proxy.buildcraft.bc61.subproxies.BCRenderState

  }

  public static void pipeFacadeRenderer(RenderBlocks renderblocks, LogisticsBlockGenericPipe block, PipeRenderState state, int x, int y, int z) {
    state.textureArray = new IIcon[6];
   
    BCRenderState bcRenderState = (BCRenderState)state.bcRenderState.getOriginal();
   
    for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
      Block renderBlock = bcRenderState.facadeMatrix.getFacadeBlock(direction);

      if (renderBlock != null) {
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.