src/main/java/org/cyclops/integrateddynamics/core/helper/PartHelpers.java
public static IPartType validatePartType(INetwork network, String partTypeName, @Nullable IPartType partType) {
        if(network != null && partType == null) {
            UnknownPartEvent event = new UnknownPartEvent(network, partTypeName);
            network.getEventBus().post(event);
            partType = event.getPartType();
        }
        return partType;
    }
/**
     * Check if the given part type is null and run it through the network even bus in an {@link UnknownPartEvent}
     * to get another type.
     * @param network The network.
     * @param partTypeName The part name.
     * @param partType The part type.
     * @return A possibly non-null part type.
     */
Check if the given part type is null and run it through the network even bus in an  UnknownPartEvent
to get another type.
@param network The network.
@param partTypeName The part name.
@param partType The part type.
@return A possibly non-null part type.
Check if the given part type is null and run it through the network even bus in an UnknownPartEvent to get another type . @param network The network . @param partTypeName The part name . @param partType The part type . @return A possibly non - null part type .
public static IPartType validatePartType(INetwork network, String partTypeName, @Nullable IPartType partType) {
        if(network != null && partType == null) {
            UnknownPartEvent event = new UnknownPartEvent(network, partTypeName);
            network.getEventBus().post(event);
            partType = event.getPartType();
        }
        return partType;
    }
public static IPartType validatePartType ( INetwork network , String partTypeName , @ Nullable IPartType partType ) { if ( network != null && partType == null ) { UnknownPartEvent event = new UnknownPartEvent ( network , partTypeName ) ; network . getEventBus ( ) . post ( event ) ; partType = event . getPartType ( ) ; } return partType ; }
Check if the given part type is null and run it through the network even bus in an {@link UnknownPartEvent}
 to get another type.
Check if the given part type is null and run it through the network even bus in an { @link UnknownPartEvent } to get another type .