src/main/java/org/cyclops/integrateddynamics/core/helper/NetworkHelpers.java
public static void revalidateNetworkElements(World world, BlockPos pos) {
        INetworkCarrier networkCarrier = TileHelpers.getCapability(world, pos, NetworkCarrierConfig.CAPABILITY);
        IPathElement pathElement = TileHelpers.getCapability(world, pos, PathElementConfig.CAPABILITY);
        if (networkCarrier != null && pathElement != null && networkCarrier.getNetwork() == null) {
            INetworkElementProvider networkElementProvider = TileHelpers.getCapability(world, pos, NetworkElementProviderConfig.CAPABILITY);
            if (networkElementProvider != null) {
                // Attempt to revalidate the network elements in this provider
                for (INetwork network : NetworkWorldStorage.getInstance(IntegratedDynamics._instance).getNetworks()) {
                    if (network.containsSidedPathElement(SidedPathElement.of(pathElement, null))) {
                        // Revalidate all network elements
                        for (INetworkElement networkElement : networkElementProvider.createNetworkElements(world, pos)) {
                            networkElement.revalidate(network);
                        }
                        break; // No need to check the other networks anymore
                    }
                }
            }
        }
    }
/**
     * Revalidate all network elements at the given position.
     * Warning: this assumes unsided network carrier capabilities, for example full-block network elements.
     * @param world The world.
     * @param pos The position.
     */
Revalidate all network elements at the given position.
Warning: this assumes unsided network carrier capabilities, for example full-block network elements.
@param world The world.
@param pos The position.
Revalidate all network elements at the given position . Warning : this assumes unsided network carrier capabilities for example full - block network elements . @param world The world . @param pos The position .
public static void revalidateNetworkElements(World world, BlockPos pos) {
        INetworkCarrier networkCarrier = TileHelpers.getCapability(world, pos, NetworkCarrierConfig.CAPABILITY);
        IPathElement pathElement = TileHelpers.getCapability(world, pos, PathElementConfig.CAPABILITY);
        if (networkCarrier != null && pathElement != null && networkCarrier.getNetwork() == null) {
            INetworkElementProvider networkElementProvider = TileHelpers.getCapability(world, pos, NetworkElementProviderConfig.CAPABILITY);
            if (networkElementProvider != null) {
                for (INetwork network : NetworkWorldStorage.getInstance(IntegratedDynamics._instance).getNetworks()) {
                    if (network.containsSidedPathElement(SidedPathElement.of(pathElement, null))) {
                        for (INetworkElement networkElement : networkElementProvider.createNetworkElements(world, pos)) {
                            networkElement.revalidate(network);
                        }
                        break; 
                    }
                }
            }
        }
    }
public static void revalidateNetworkElements ( World world , BlockPos pos ) { INetworkCarrier networkCarrier = TileHelpers . getCapability ( world , pos , NetworkCarrierConfig . CAPABILITY ) ; IPathElement pathElement = TileHelpers . getCapability ( world , pos , PathElementConfig . CAPABILITY ) ; if ( networkCarrier != null && pathElement != null && networkCarrier . getNetwork ( ) == null ) { INetworkElementProvider networkElementProvider = TileHelpers . getCapability ( world , pos , NetworkElementProviderConfig . CAPABILITY ) ; if ( networkElementProvider != null ) { for ( INetwork network : NetworkWorldStorage . getInstance ( IntegratedDynamics . _instance ) . getNetworks ( ) ) { if ( network . containsSidedPathElement ( SidedPathElement . of ( pathElement , null ) ) ) { for ( INetworkElement networkElement : networkElementProvider . createNetworkElements ( world , pos ) ) { networkElement . revalidate ( network ) ; } break ; } } } } }
Revalidate all network elements at the given position.
Revalidate all network elements at the given position .
// Attempt to revalidate the network elements in this provider // Revalidate all network elements // No need to check the other networks anymore