use of net.dries007.tfc.compat.jei.wrappers.KnappingRecipeWrapper in project firmalife by eerussianguy.
the class JEIPluginFL method register.
@Override
public void register(IModRegistry registry) {
REGISTRY = registry;
List<SimpleRecipeWrapper> ovenList = RegistriesFL.OVEN.getValuesCollection().stream().map(OvenRecipeWrapper::new).collect(Collectors.toList());
registry.addRecipes(ovenList, OVEN_ID);
registry.addRecipeCatalyst(new ItemStack(BlocksFL.OVEN), OVEN_ID);
List<SimpleRecipeWrapper> dryList = RegistriesFL.DRYING.getValuesCollection().stream().map(DryingRecipeWrapper::new).collect(Collectors.toList());
registry.addRecipes(dryList, DRY_ID);
registry.addRecipeCatalyst(new ItemStack(BlocksFL.LEAF_MAT, 1), DRY_ID);
registry.addIngredientInfo(new ItemStack(ItemsFL.FRUIT_LEAF, 1), VanillaTypes.ITEM, new TextComponentTranslation("jei.tooltip.firmalife.fruit_leaf").getFormattedText());
registry.addIngredientInfo(new ItemStack(ItemsFL.COCOA_POWDER, 1), VanillaTypes.ITEM, new TextComponentTranslation("jei.tooltip.firmalife.cocoa_powder").getFormattedText());
registry.addIngredientInfo(new ItemStack(ItemsFL.getFood(FoodFL.PINEAPPLE_CHUNKS), 1), VanillaTypes.ITEM, new TextComponentTranslation("jei.tooltip.firmalife.pineapple_chunks").getFormattedText());
// Pumpkin Knapping
List<KnappingRecipeWrapper> pumpkinknapRecipes = TFCRegistries.KNAPPING.getValuesCollection().stream().filter(recipe -> recipe.getType() == KnappingFL.PUMPKIN).map(recipe -> new KnappingRecipeWrapperFL(recipe, registry.getJeiHelpers().getGuiHelper())).collect(Collectors.toList());
// Molds
List<UnmoldRecipeWrapperFL> moldRecipes = TFCRegistries.METALS.getValuesCollection().stream().filter(metal -> metal.isToolMetal() && metal.getTier().isAtMost(Metal.Tier.TIER_II)).map(metal -> new UnmoldRecipeWrapperFL(metal, "mallet")).collect(Collectors.toList());
// Casts
List<CastingRecipeWrapperFL> castRecipes = TFCRegistries.METALS.getValuesCollection().stream().filter(metal -> metal.isToolMetal() && metal.getTier().isAtMost(Metal.Tier.TIER_II)).map(metal -> new CastingRecipeWrapperFL(metal, "mallet")).collect(Collectors.toList());
registry.addRecipes(moldRecipes, "minecraft.crafting");
registry.addRecipes(castRecipes, CASTING_UID);
registry.addRecipeCatalyst(new ItemStack(BlocksTFC.CRUCIBLE), CASTING_UID);
registry.addRecipeCatalyst(new ItemStack(ItemsTFC.FIRED_VESSEL), CASTING_UID);
registry.addRecipes(pumpkinknapRecipes, KNAP_PUMPKIN_UID);
registry.addRecipeCatalyst(new ItemStack(Item.getItemFromBlock(BlocksFL.PUMPKIN_FRUIT)), KNAP_PUMPKIN_UID);
}
Aggregations