use of gregtech.api.unification.material.type.MarkerMaterial in project GregTech by GregTechCE.
the class ProcessingLens method registerOre.
// public static void register() {
// OrePrefix.lens.addProcessingHandler(new ProcessingLens());
// }
public void registerOre(UnificationEntry entry, String modName, SimpleItemStack simpleStack) {
if (entry.material instanceof GemMaterial) {
ItemStack stack = simpleStack.asItemStack();
RecipeMap.LATHE_RECIPES.recipeBuilder().inputs(OreDictUnifier.get(OrePrefix.plate, entry.material)).outputs(stack, OreDictUnifier.get(OrePrefix.dustSmall, entry.material)).duration((int) (entry.material.getMass() / 2L)).EUt(16).buildAndRegister();
EnumDyeColor dyeColor = GTUtility.determineDyeColor(entry.material.materialRGB);
MarkerMaterial colorMaterial = MarkerMaterials.Color.COLORS.get(dyeColor);
OreDictUnifier.registerOre(stack, OrePrefix.craftingLens, colorMaterial);
}
}
Aggregations