container.scheduleRenderUpdate();
}
@Override
public boolean isWireConnectedTo(TileEntity tile, Object oColor) {
PipeWire color = (PipeWire) oColor;
if(tile instanceof LogisticsTileGenericPipe) {
LogisticsTileGenericPipe tilePipe = (LogisticsTileGenericPipe) tile;
if (!LogisticsBlockGenericPipe.isFullyDefined(tilePipe.pipe)) {
return false;
}
if (!tilePipe.pipe.bcPipePart.getWireSet()[color.ordinal()]) {
return false;
}
return MainProxy.checkPipesConnections(container, tile);
}
if (!(tile instanceof TileGenericPipe)) {
return false;
}
TileGenericPipe tilePipe = (TileGenericPipe) tile;
if (!BlockGenericPipe.isFullyDefined(tilePipe.pipe)) {
return false;
}
if (!tilePipe.pipe.wireSet[color.ordinal()]) {
return false;
}
return tilePipe.pipe.transport instanceof PipeTransportStructure || Utils.checkPipesConnections(container, tile);
}