Search in sources :

Example 1 with FacadeRecipe

use of gregtech.common.crafting.FacadeRecipe in project GregTech by GregTechCE.

the class CraftingRecipeLoader method registerFacadeRecipe.

private static void registerFacadeRecipe(Material material, int facadeAmount) {
    OreIngredient ingredient = new OreIngredient(new UnificationEntry(OrePrefix.plate, material).toString());
    ForgeRegistries.RECIPES.register(new FacadeRecipe(null, ingredient, facadeAmount).setRegistryName("facade_" + material));
}
Also used : UnificationEntry(gregtech.api.unification.stack.UnificationEntry) OreIngredient(net.minecraftforge.oredict.OreIngredient) FacadeRecipe(gregtech.common.crafting.FacadeRecipe)

Aggregations

UnificationEntry (gregtech.api.unification.stack.UnificationEntry)1 FacadeRecipe (gregtech.common.crafting.FacadeRecipe)1 OreIngredient (net.minecraftforge.oredict.OreIngredient)1