use of gregtech.api.unification.ore.StoneTypes in project GregTech by GregTechCE.
the class MetaBlocks method createOreBlock.
private static void createOreBlock(DustMaterial material, StoneType[] stoneTypes, int index) {
BlockOre block = new BlockOre(material, stoneTypes);
block.setRegistryName("ore_" + material + "_" + index);
for (StoneType stoneType : stoneTypes) {
GregTechAPI.oreBlockTable.computeIfAbsent(material, m -> new HashMap<>()).put(stoneType, block);
}
ORES.add(block);
}
Aggregations