100101102103104105106107
Collection<ItemStack> stacks = getGateFilterStacks(station); if (stacks.size() == 0) { return new PassThroughFluidFilter(); } else { return new ArrayFluidFilter(stacks.toArray(new ItemStack[stacks.size()])); } }