Search in sources :

Example 1 with BlockSurfaceRockDeprecated

use of gregtech.common.blocks.surfacerock.BlockSurfaceRockDeprecated in project GregTech by GregTechCE.

the class MetaBlocks method createSurfaceRockBlock.

private static void createSurfaceRockBlock(Material[] materials, int index) {
    BlockSurfaceRockDeprecated block = new BlockSurfaceRockDeprecated(materials);
    block.setRegistryName("meta_block_surface_rock_" + index);
    for (Material material : materials) {
        if (material instanceof IngotMaterial) {
            SURFACE_ROCKS.put((IngotMaterial) material, block);
        }
    }
}
Also used : IngotMaterial(gregtech.api.unification.material.type.IngotMaterial) SolidMaterial(gregtech.api.unification.material.type.SolidMaterial) DustMaterial(gregtech.api.unification.material.type.DustMaterial) Material(gregtech.api.unification.material.type.Material) IngotMaterial(gregtech.api.unification.material.type.IngotMaterial) BlockSurfaceRockDeprecated(gregtech.common.blocks.surfacerock.BlockSurfaceRockDeprecated)

Aggregations

DustMaterial (gregtech.api.unification.material.type.DustMaterial)1 IngotMaterial (gregtech.api.unification.material.type.IngotMaterial)1 Material (gregtech.api.unification.material.type.Material)1 SolidMaterial (gregtech.api.unification.material.type.SolidMaterial)1 BlockSurfaceRockDeprecated (gregtech.common.blocks.surfacerock.BlockSurfaceRockDeprecated)1