Package buildcraft.api.transport.IPipeConnection

Examples of buildcraft.api.transport.IPipeConnection.ConnectOverride


  public void addCraftingRecipes(ICraftingParts parts) {}

  @Override
  public Object overridePipeConnection(LogisticsTileGenericPipe pipe, Object type, ForgeDirection dir) {
    TileEntity target = pipe.getTile(dir, true);
    ConnectOverride result = ConnectOverride.DEFAULT;
    if(LogisticsBlockGenericPipe.isFullyDefined(pipe.pipe) && target instanceof TileGenericPipe && !pipe.tilePart.hasBlockingPluggable(dir)) {
      result = ConnectOverride.CONNECT;
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of buildcraft.api.transport.IPipeConnection.ConnectOverride

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.