src/main/java/net/azagwen/atbyw/util/BlockUtils.java
public static void registerBlocks(boolean fireproof, ArrayList<Item> itemTab, @Nullable String prefix, String block_name, String[] variant_type, Block... block) {
        if (block.length == variant_type.length)
            for (int i = 0; i < block.length; i++) {
                String name;
                if (prefix == null || prefix.isEmpty()) {
                    name = String.join("_", variant_type[i], block_name);
                } else {
                    name = String.join("_", prefix, variant_type[i], block_name);
                }

                registerBlock(fireproof, itemTab, name, block[i]);
            }
        else
            throw new IllegalArgumentException(String.join("could not register " + block_name + " : mismatched lengths !"));
    }
/** Registers a given amount of blocks determined by "block" and "variant_type"'s length,
     *  those two arrays MUST match in order to register those blocks, if the lengths mismatch
     *  the game will crash on its own and notify you of that mistake.
     *
     *  @param fireproof    if the Block item should resist to fire & Lava.
     *  @param itemTab      the ItemTab list this block should be in.
     *  @param prefix           Optional, a prefix that will be added in front of the "block_name".
     *  @param block_name       The name of the block.
     *  @param variant_type     An array of Strings of which every index will be put between "prefix" and "block_name".
     *  @param block            An Array of Blocks that must match the length of "variant_type".
     */
Registers a given amount of blocks determined by "block" and "variant_type"'s length,
those two arrays MUST match in order to register those blocks, if the lengths mismatch
the game will crash on its own and notify you of that mistake.

@param fireproof    if the Block item should resist to fire & Lava.
@param itemTab      the ItemTab list this block should be in.
@param prefix           Optional, a prefix that will be added in front of the "block_name".
@param block_name       The name of the block.
@param variant_type     An array of Strings of which every index will be put between "prefix" and "block_name".
@param block            An Array of Blocks that must match the length of "variant_type".
Registers a given amount of blocks determined by " block " and " variant_type " ' s length those two arrays MUST match in order to register those blocks if the lengths mismatch the game will crash on its own and notify you of that mistake . @param fireproof if the Block item should resist to fire & Lava . @param itemTab the ItemTab list this block should be in . @param prefix Optional a prefix that will be added in front of the " block_name " . @param block_name The name of the block . @param variant_type An array of Strings of which every index will be put between " prefix " and " block_name " . @param block An Array of Blocks that must match the length of " variant_type " .
public static void registerBlocks(boolean fireproof, ArrayList<Item> itemTab, @Nullable String prefix, String block_name, String[] variant_type, Block... block) {
        if (block.length == variant_type.length)
            for (int i = 0; i < block.length; i++) {
                String name;
                if (prefix == null || prefix.isEmpty()) {
                    name = String.join("_", variant_type[i], block_name);
                } else {
                    name = String.join("_", prefix, variant_type[i], block_name);
                }
                registerBlock(fireproof, itemTab, name, block[i]);
            }
        else
            throw new IllegalArgumentException(String.join("could not register " + block_name + " : mismatched lengths !"));
    }
public static void registerBlocks ( boolean fireproof , ArrayList < Item > itemTab , @ Nullable String prefix , String block_name , String [ ] variant_type , Block ... block ) { if ( block . length == variant_type . length ) for ( int i = 0 ; i < block . length ; i ++ ) { String name ; if ( prefix == null || prefix . isEmpty ( ) ) { name = String . join ( "_" , variant_type [ i ] , block_name ) ; } else { name = String . join ( "_" , prefix , variant_type [ i ] , block_name ) ; } registerBlock ( fireproof , itemTab , name , block [ i ] ) ; } else throw new IllegalArgumentException ( String . join ( "could not register " + block_name + " : mismatched lengths !" ) ) ; }
Registers a given amount of blocks determined by "block" and "variant_type"'s length,
  those two arrays MUST match in order to register those blocks, if the lengths mismatch
  the game will crash on its own and notify you of that mistake.
Registers a given amount of blocks determined by " block " and " variant_type " ' s length those two arrays MUST match in order to register those blocks if the lengths mismatch the game will crash on its own and notify you of that mistake .