Search in sources :

Example 1 with MarkerMaterial

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);
    }
}
Also used : ItemStack(net.minecraft.item.ItemStack) SimpleItemStack(gregtech.api.unification.stack.SimpleItemStack) EnumDyeColor(net.minecraft.item.EnumDyeColor) GemMaterial(gregtech.api.unification.material.type.GemMaterial) MarkerMaterial(gregtech.api.unification.material.type.MarkerMaterial)

Aggregations

GemMaterial (gregtech.api.unification.material.type.GemMaterial)1 MarkerMaterial (gregtech.api.unification.material.type.MarkerMaterial)1 SimpleItemStack (gregtech.api.unification.stack.SimpleItemStack)1 EnumDyeColor (net.minecraft.item.EnumDyeColor)1 ItemStack (net.minecraft.item.ItemStack)1