use of com.minecolonies.coremod.recipes.BrewingCraftingType in project minecolonies by Minecolonies.
the class ModCraftingTypesInitializer method init.
public static void init(final RegistryEvent.Register<CraftingType> event) {
final IForgeRegistry<CraftingType> reg = event.getRegistry();
ModCraftingTypes.SMALL_CRAFTING = new RecipeCraftingType<>(ModCraftingTypes.SMALL_CRAFTING_ID, IRecipeType.CRAFTING, r -> r.canCraftInDimensions(2, 2));
reg.register(ModCraftingTypes.SMALL_CRAFTING);
ModCraftingTypes.LARGE_CRAFTING = new RecipeCraftingType<>(ModCraftingTypes.LARGE_CRAFTING_ID, IRecipeType.CRAFTING, r -> r.canCraftInDimensions(3, 3) && !r.canCraftInDimensions(2, 2));
reg.register(ModCraftingTypes.LARGE_CRAFTING);
ModCraftingTypes.SMELTING = new RecipeCraftingType<>(ModCraftingTypes.SMELTING_ID, IRecipeType.SMELTING, null);
reg.register(ModCraftingTypes.SMELTING);
ModCraftingTypes.BREWING = new BrewingCraftingType();
reg.register(ModCraftingTypes.BREWING);
}
Aggregations