src/main/java/org/cyclops/integrateddynamics/core/helper/NetworkHelpers.java
public static void invalidateNetworkElements(World world, BlockPos pos, TileEntity tile) {
        INetworkCarrier networkCarrier = tile.getCapability(NetworkCarrierConfig.CAPABILITY, null);
        if (networkCarrier != null) {
            INetwork network = networkCarrier.getNetwork();
            if (network != null) {
                INetworkElementProvider networkElementProvider = tile.getCapability(NetworkElementProviderConfig.CAPABILITY, null);
                if (networkElementProvider != null) {
                    for (INetworkElement networkElement : networkElementProvider.createNetworkElements(world, pos)) {
                        networkElement.invalidate(network);
                    }
                }
            }
        }
    }
/**
     * Invalidate 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.
     * @param tile The tile entity that is unloaded.
     */
Invalidate 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.
@param tile The tile entity that is unloaded.
Invalidate 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 . @param tile The tile entity that is unloaded .
public static void invalidateNetworkElements(World world, BlockPos pos, TileEntity tile) {
        INetworkCarrier networkCarrier = tile.getCapability(NetworkCarrierConfig.CAPABILITY, null);
        if (networkCarrier != null) {
            INetwork network = networkCarrier.getNetwork();
            if (network != null) {
                INetworkElementProvider networkElementProvider = tile.getCapability(NetworkElementProviderConfig.CAPABILITY, null);
                if (networkElementProvider != null) {
                    for (INetworkElement networkElement : networkElementProvider.createNetworkElements(world, pos)) {
                        networkElement.invalidate(network);
                    }
                }
            }
        }
    }
public static void invalidateNetworkElements ( World world , BlockPos pos , TileEntity tile ) { INetworkCarrier networkCarrier = tile . getCapability ( NetworkCarrierConfig . CAPABILITY , null ) ; if ( networkCarrier != null ) { INetwork network = networkCarrier . getNetwork ( ) ; if ( network != null ) { INetworkElementProvider networkElementProvider = tile . getCapability ( NetworkElementProviderConfig . CAPABILITY , null ) ; if ( networkElementProvider != null ) { for ( INetworkElement networkElement : networkElementProvider . createNetworkElements ( world , pos ) ) { networkElement . invalidate ( network ) ; } } } } }
Invalidate all network elements at the given position.
Invalidate all network elements at the given position .