Package logisticspipes.proxy.buildcraft.subproxies

Examples of logisticspipes.proxy.buildcraft.subproxies.IConnectionOverrideResult


      @Override public boolean isIPipeTile(TileEntity tile) {return false;}
      @Override public void registerPipeInformationProvider() {}
      @Override public void initProxy() {}
      @Override public boolean checkForPipeConnection(TileEntity with, ForgeDirection side, LogisticsTileGenericPipe pipe) {return true;}
      @Override public IConnectionOverrideResult checkConnectionOverride(TileEntity with, ForgeDirection side, LogisticsTileGenericPipe pipe) {
        return new IConnectionOverrideResult() {
          @Override public boolean forceConnect() {return false;}
          @Override public boolean forceDisconnect() {return false;}
        };
      }
      @Override public IBCPipePart getBCPipePart(LogisticsTileGenericPipe tile) {
View Full Code Here


            override = ((IPipeConnection) with).overridePipeConnection(PipeType.POWER, side.getOpposite());
          }
        }
      }
      if (override == IPipeConnection.ConnectOverride.DISCONNECT) {
        return new IConnectionOverrideResult() {
          @Override public boolean forceConnect() {return false;}
          @Override public boolean forceDisconnect() {return true;}
        };
      }
     
      if(override == IPipeConnection.ConnectOverride.CONNECT) {
        return new IConnectionOverrideResult() {
          @Override public boolean forceConnect() {return true;}
          @Override public boolean forceDisconnect() {return false;}
        };
      }
    }
    return new IConnectionOverrideResult() {
      @Override public boolean forceConnect() {return false;}
      @Override public boolean forceDisconnect() {return false;}
    };
  }
View Full Code Here

    if (!LogisticsBlockGenericPipe.isValid(pipe))
      return false;

    if(SimpleServiceLocator.ccProxy.isTurtle(with) && !turtleConnect[OrientationsUtil.getOrientationOfTilewithTile(this, with).ordinal()]) return false;

    IConnectionOverrideResult result = SimpleServiceLocator.buildCraftProxy.checkConnectionOverride(with, side, this);
    if(result.forceDisconnect()) return false;
    if(result.forceConnect()) return true;

    if(!SimpleServiceLocator.buildCraftProxy.checkForPipeConnection(with, side, this)) return false;
    if(with instanceof LogisticsTileGenericPipe) {
      if(((LogisticsTileGenericPipe)with).tilePart.hasBlockingPluggable(side.getOpposite())) {
        return false;
View Full Code Here

TOP

Related Classes of logisticspipes.proxy.buildcraft.subproxies.IConnectionOverrideResult

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.