Search in sources :

Example 1 with MOD_ID

use of net.dries007.tfc.TerraFirmaCraft.MOD_ID in project firmalife by eerussianguy.

the class TFCRegistry method onRegisterAnvilRecipes.

@SubscribeEvent
public static void onRegisterAnvilRecipes(RegistryEvent.Register<AnvilRecipe> event) {
    IForgeRegistry<AnvilRecipe> r = event.getRegistry();
    for (Metal metal : TFCRegistries.METALS.getValuesCollection()) {
        if (metal.isToolMetal())
            r.register(new AnvilRecipe(new ResourceLocation(MOD_ID, metal.toString() + "_mallet_head"), IIngredient.of(new ItemStack(ItemMetal.get(metal, Metal.ItemType.INGOT))), new ItemStack(ItemsFL.getMetalMalletHead(metal)), metal.getTier(), TOOLS, PUNCH_LAST, PUNCH_SECOND_LAST, SHRINK_THIRD_LAST));
    }
    r.registerAll(new AnvilRecipe(new ResourceLocation(MOD_ID, "greenhouse_wall"), IIngredient.of(ItemMetal.get(Metal.WROUGHT_IRON, Metal.ItemType.SHEET)), new ItemStack(BlocksFL.GREENHOUSE_WALL, 2), Metal.WROUGHT_IRON.getTier(), GENERAL, HIT_NOT_LAST, PUNCH_NOT_LAST, SHRINK_LAST));
    r.registerAll(new AnvilRecipe(new ResourceLocation(MOD_ID, "greenhouse_roof"), IIngredient.of(ItemMetal.get(Metal.WROUGHT_IRON, Metal.ItemType.SHEET)), new ItemStack(BlocksFL.GREENHOUSE_ROOF, 2), Metal.WROUGHT_IRON.getTier(), GENERAL, HIT_THIRD_LAST, PUNCH_SECOND_LAST, PUNCH_LAST));
    r.registerAll(new AnvilRecipe(new ResourceLocation(MOD_ID, "greenhouse_door"), IIngredient.of(ItemMetal.get(Metal.WROUGHT_IRON, Metal.ItemType.SHEET)), new ItemStack(ItemsFL.ITEM_GREENHOUSE_DOOR), Metal.WROUGHT_IRON.getTier(), GENERAL, HIT_NOT_LAST, HIT_NOT_LAST, PUNCH_LAST));
    r.registerAll(new AnvilRecipe(new ResourceLocation(MOD_ID, "spout"), IIngredient.of("ingotBlackSteel"), new ItemStack(BlocksFL.SPOUT), Metal.WROUGHT_IRON.getTier(), GENERAL, PUNCH_THIRD_LAST, SHRINK_SECOND_LAST, HIT_LAST));
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) AnvilRecipe(net.dries007.tfc.api.recipes.anvil.AnvilRecipe) Metal(net.dries007.tfc.api.types.Metal) ItemMetal(net.dries007.tfc.objects.items.metal.ItemMetal) ItemStack(net.minecraft.item.ItemStack) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Example 2 with MOD_ID

use of net.dries007.tfc.TerraFirmaCraft.MOD_ID in project firmalife by eerussianguy.

the class TFCRegistry method onRegisterLoomRecipeEvent.

@SubscribeEvent
public static void onRegisterLoomRecipeEvent(RegistryEvent.Register<LoomRecipe> event) {
    IForgeRegistry<LoomRecipe> r = event.getRegistry();
    r.register(new LoomRecipe(new ResourceLocation(MOD_ID, "pineapple_yarn"), IIngredient.of(ItemsFL.PINEAPPLE_YARN, 8), new ItemStack(ItemsFL.PINEAPPLE_LEATHER), 8, new ResourceLocation(MOD_ID, "textures/blocks/pineapple.png")));
}
Also used : LoomRecipe(net.dries007.tfc.api.recipes.LoomRecipe) ResourceLocation(net.minecraft.util.ResourceLocation) ItemStack(net.minecraft.item.ItemStack) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Aggregations

ItemStack (net.minecraft.item.ItemStack)2 ResourceLocation (net.minecraft.util.ResourceLocation)2 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)2 LoomRecipe (net.dries007.tfc.api.recipes.LoomRecipe)1 AnvilRecipe (net.dries007.tfc.api.recipes.anvil.AnvilRecipe)1 Metal (net.dries007.tfc.api.types.Metal)1 ItemMetal (net.dries007.tfc.objects.items.metal.ItemMetal)1