ntx4core/src/main/java/net/anvilcraft/ntx4core/recipes/RecipeRemovals.java

39 lines
1.7 KiB
Java
Raw Normal View History

2023-10-18 19:43:45 +02:00
package net.anvilcraft.ntx4core.recipes;
2023-10-30 18:20:54 +01:00
import net.anvilcraft.anvillib.Util;
2023-11-01 18:12:39 +01:00
import net.anvilcraft.anvillib.event.Bus;
import net.anvilcraft.anvillib.event.IEventBusRegisterable;
2023-10-30 18:20:54 +01:00
import net.anvilcraft.anvillib.recipe.RecipeContainsPredicate;
import net.anvilcraft.anvillib.recipe.RecipesEvent;
2023-10-18 19:43:45 +02:00
import net.minecraft.util.Identifier;
2023-10-30 18:20:54 +01:00
import net.minecraftforge.fml.loading.FMLEnvironment;
2023-10-18 19:43:45 +02:00
2023-11-01 18:12:39 +01:00
public class RecipeRemovals implements IEventBusRegisterable {
public void removeRecipes(RecipesEvent ev) {
2023-10-30 18:20:54 +01:00
if (!FMLEnvironment.production)
return;
2023-10-18 19:43:45 +02:00
ev.removeRecipesMatching(new RecipeContainsPredicate(
Util.stackFromRegistry(new Identifier("projecte", "transmutation_table"))
));
2023-11-29 14:23:25 +01:00
ev.removeRecipesMatching((r) -> {
var id = r.getId();
2023-12-05 22:21:40 +01:00
return id.getNamespace().equals("createappliedkinetics")
&& id.getPath().startsWith("inscriber");
2023-11-29 14:23:25 +01:00
});
2023-11-27 14:34:06 +01:00
ev.removeRecipeID(new Identifier("projecte", "red_matter_alt"));
2023-12-16 11:38:45 +01:00
ev.removeRecipeID(new Identifier("draconicevolution", "components/awakened_core"));
ev.removeRecipeID(new Identifier("draconicevolution", "awakened_crafting_injector"));
2023-11-29 13:04:23 +01:00
ev.removeRecipeID(new Identifier("electrodynamics", "ingotsteel_ingot_smelting"));
ev.removeRecipeID(new Identifier("beyond_earth", "steel_ingot_blasting"));
2023-12-05 19:46:03 +01:00
ev.removeRecipeID(new Identifier("enderrift", "rift_orb"));
2023-12-15 10:23:41 +01:00
ev.removeRecipeID(new Identifier("crossroads", "base_materials/bronze_alloy_ingot"));
2023-12-22 13:51:07 +01:00
ev.removeRecipeID(new Identifier("projecte", "condenser_mk1"));
2023-10-18 19:43:45 +02:00
}
2023-11-01 18:12:39 +01:00
@Override
public void registerEventHandlers(Bus bus) {
bus.register(RecipesEvent.class, this::removeRecipes);
}
2023-10-18 19:43:45 +02:00
}