src/main/java/net/azagwen/atbyw/datagen/arrp/BlockModels.java
public static void init() {
        //Generate log slab models
        Registry.BLOCK.forEach((block -> {
            if (block instanceof PillarBlock) {
                var id = Registry.BLOCK.getId(block);
                if (id.getNamespace().equals("minecraft")) {
                    if (id.getPath().contains("log") || id.getPath().contains("stem")) {
                        if (id.getPath().contains("stripped")) {
                            BlockModels.createStrippedLogSlabModels(AtbywRRP.ATBYW_RESOURCE_PACK, id.getNamespace(), id.getPath());
                        } else {
                            BlockModels.createPillarSlabModels(AtbywRRP.ATBYW_RESOURCE_PACK, id.getNamespace(), id.getPath());
                        }
                    }
                }
            }
        }));
    }
//unused, not a fan of datagen models
unused, not a fan of datagen models
unused not a fan of datagen models
public static void init() {
        Registry.BLOCK.forEach((block -> {
            if (block instanceof PillarBlock) {
                var id = Registry.BLOCK.getId(block);
                if (id.getNamespace().equals("minecraft")) {
                    if (id.getPath().contains("log") || id.getPath().contains("stem")) {
                        if (id.getPath().contains("stripped")) {
                            BlockModels.createStrippedLogSlabModels(AtbywRRP.ATBYW_RESOURCE_PACK, id.getNamespace(), id.getPath());
                        } else {
                            BlockModels.createPillarSlabModels(AtbywRRP.ATBYW_RESOURCE_PACK, id.getNamespace(), id.getPath());
                        }
                    }
                }
            }
        }));
    }
public static void init ( ) { Registry . BLOCK . forEach ( ( block -> { if ( block instanceof PillarBlock ) { var id = Registry . BLOCK . getId ( block ) ; if ( id . getNamespace ( ) . equals ( "minecraft" ) ) { if ( id . getPath ( ) . contains ( "log" ) || id . getPath ( ) . contains ( "stem" ) ) { if ( id . getPath ( ) . contains ( "stripped" ) ) { BlockModels . createStrippedLogSlabModels ( AtbywRRP . ATBYW_RESOURCE_PACK , id . getNamespace ( ) , id . getPath ( ) ) ; } else { BlockModels . createPillarSlabModels ( AtbywRRP . ATBYW_RESOURCE_PACK , id . getNamespace ( ) , id . getPath ( ) ) ; } } } } } ) ) ; }
unused, not a fan of datagen models
unused not a fan of datagen models
//Generate log slab models