Search in sources :

Example 1 with RequirementBuilderSupplier

use of com.codetaylor.mc.artisanworktables.api.recipe.requirement.RequirementBuilderSupplier in project artisan-worktables by codetaylor.

the class ModuleWorktables method onNewRegistryEvent.

@SubscribeEvent
public void onNewRegistryEvent(RegistryEvent.NewRegistry event) {
    new RegistryBuilder<RequirementContextSupplier>().setName(new ResourceLocation(MOD_ID, "requirement_context_supplier")).setType(RequirementContextSupplier.class).create();
    new RegistryBuilder<RequirementBuilderSupplier>().setName(new ResourceLocation(MOD_ID, "requirement_builder_supplier")).setType(RequirementBuilderSupplier.class).create();
    new RegistryBuilder<RecipeRegistry>().setName(new ResourceLocation(MOD_ID, "recipe_registry")).setType(RecipeRegistry.class).create();
}
Also used : RequirementContextSupplier(com.codetaylor.mc.artisanworktables.api.recipe.requirement.RequirementContextSupplier) ResourceLocation(net.minecraft.util.ResourceLocation) RequirementBuilderSupplier(com.codetaylor.mc.artisanworktables.api.recipe.requirement.RequirementBuilderSupplier) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Aggregations

RequirementBuilderSupplier (com.codetaylor.mc.artisanworktables.api.recipe.requirement.RequirementBuilderSupplier)1 RequirementContextSupplier (com.codetaylor.mc.artisanworktables.api.recipe.requirement.RequirementContextSupplier)1 ResourceLocation (net.minecraft.util.ResourceLocation)1 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)1