src/main/java/org/cyclops/integrateddynamics/core/helper/NetworkHelpers.java
public static @Nullable INetwork initNetwork(World world, BlockPos pos, @Nullable EnumFacing side) {
        IPathElement pathElement = TileHelpers.getCapability(world, pos, side, PathElementConfig.CAPABILITY);
        if (pathElement != null) {
            Network network = Network.initiateNetworkSetup(SidedPathElement.of(pathElement, side));
            network.initialize();
            return network;
        }
        return null;
    }
/**
     * Form a new network starting from the given position.
     * This position should have a {@link IPathElement} capability,
     * otherwise this method will fail silently.
     * This will correctly transfer all passed network elements to this new network.
     * @param world The world.
     * @param pos The starting position.
     * @param side The side.
     * @return The newly created part network.
     * Can be null if the starting position did not have a {@link IPathElement} capability.
     */
Form a new network starting from the given position.
This position should have a  IPathElement capability,
otherwise this method will fail silently.
This will correctly transfer all passed network elements to this new network.
@param world The world.
@param pos The starting position.
@param side The side.
@return The newly created part network.
Can be null if the starting position did not have a  IPathElement capability.
Form a new network starting from the given position . This position should have a IPathElement capability otherwise this method will fail silently . This will correctly transfer all passed network elements to this new network . @param world The world . @param pos The starting position . @param side The side . @return The newly created part network . Can be null if the starting position did not have a IPathElement capability .
public static @Nullable INetwork initNetwork(World world, BlockPos pos, @Nullable EnumFacing side) {
        IPathElement pathElement = TileHelpers.getCapability(world, pos, side, PathElementConfig.CAPABILITY);
        if (pathElement != null) {
            Network network = Network.initiateNetworkSetup(SidedPathElement.of(pathElement, side));
            network.initialize();
            return network;
        }
        return null;
    }
public static @ Nullable INetwork initNetwork ( World world , BlockPos pos , @ Nullable EnumFacing side ) { IPathElement pathElement = TileHelpers . getCapability ( world , pos , side , PathElementConfig . CAPABILITY ) ; if ( pathElement != null ) { Network network = Network . initiateNetworkSetup ( SidedPathElement . of ( pathElement , side ) ) ; network . initialize ( ) ; return network ; } return null ; }
Form a new network starting from the given position.
Form a new network starting from the given position .