use of betterwithaddons.crafting.recipes.ThreshingRecipe in project BetterWithAddons by DaedalusGame.
the class InteractionWheat method modifyRecipes.
@Override
void modifyRecipes(RegistryEvent.Register<IRecipe> event) {
ForgeRegistry<IRecipe> reg = (ForgeRegistry<IRecipe>) event.getRegistry();
if (THRESH_WHEAT) {
event.getRegistry().register(new ThreshingRecipe(new ResourceLocation(Reference.MOD_ID, "thresh_wheat"), new ItemStack(Items.WHEAT_SEEDS), new OreIngredient("cropWheat")).setRegistryName(new ResourceLocation(Reference.MOD_ID, "thresh_wheat")));
}
if (CHANGE_HAY_BALES) {
removeRecipeByOutput(reg, new ItemStack(Blocks.HAY_BLOCK), "minecraft");
removeRecipeByOutput(reg, new ItemStack(Items.WHEAT, 9), "minecraft");
if (Loader.isModLoaded("quark")) {
Block thatch = Block.getBlockFromName("quark:thatch");
if (thatch != null) {
removeRecipeByOutput(reg, new ItemStack(thatch), "quark");
removeRecipeByOutput(reg, new ItemStack(Items.WHEAT, 4), "quark");
}
}
}
}
Aggregations