mezz.jei.api.recipe.VanillaRecipeCategoryUid Java Examples
The following examples show how to use
mezz.jei.api.recipe.VanillaRecipeCategoryUid.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EnderUtilitiesJeiPlugin.java From enderutilities with GNU Lesser General Public License v3.0 | 6 votes |
@Override public void register(IModRegistry registry) { registry.addRecipeClickArea(GuiEnderFurnace.class, 58, 35, 22, 15, VanillaRecipeCategoryUid.SMELTING); // FIXME Add the custom fuels to a custom handler(?) registry.addRecipeClickArea(GuiEnderFurnace.class, 34, 36, 15, 14, VanillaRecipeCategoryUid.FUEL); registry.addRecipeClickArea(GuiCreationStation.class, 27, 11, 10, 10, VanillaRecipeCategoryUid.SMELTING); registry.addRecipeClickArea(GuiCreationStation.class, 9, 29, 15, 14, VanillaRecipeCategoryUid.FUEL); registry.addRecipeClickArea(GuiCreationStation.class, 203, 11, 10, 10, VanillaRecipeCategoryUid.SMELTING); registry.addRecipeClickArea(GuiCreationStation.class, 217, 29, 15, 14, VanillaRecipeCategoryUid.FUEL); registry.addRecipeClickArea(GuiCreationStation.class, 97, 36, 10, 10, VanillaRecipeCategoryUid.CRAFTING); registry.addRecipeClickArea(GuiCreationStation.class, 133, 72, 10, 10, VanillaRecipeCategoryUid.CRAFTING); registry.getRecipeTransferRegistry().addRecipeTransferHandler(new RecipeHandlerCreationStation()); // Creation Station registry.addRecipeCatalyst(new ItemStack(EnderUtilitiesBlocks.MACHINE_1, 1, 2), VanillaRecipeCategoryUid.CRAFTING, VanillaRecipeCategoryUid.SMELTING, VanillaRecipeCategoryUid.FUEL); // Ender Furnace registry.addRecipeCatalyst(new ItemStack(EnderUtilitiesBlocks.ENDER_FURNACE, 1, 0), VanillaRecipeCategoryUid.SMELTING, VanillaRecipeCategoryUid.FUEL); }
Example #2
Source File: JEICompat.java From TofuCraftReload with MIT License | 5 votes |
@Override public void register(IModRegistry registry) { IJeiHelpers jeiHelpers = registry.getJeiHelpers(); IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry(); registry.addRecipes(CrusherRecipeMaker.getRecipes(jeiHelpers),"tofucraft.crusher"); registry.addRecipes(CompressorRecipeMaker.getRecipes(jeiHelpers),"tofucraft.compressor"); registry.addRecipes(AggregatorRecipeMaker.getRecipes(jeiHelpers),"tofucraft.aggregator"); registry.addRecipes(AdvancedAggregatorRecipeMaker.getRecipes(jeiHelpers),"tofucraft.advanced_aggregator"); registry.addRecipeClickArea(GuiTFCrasher.class, 68,15, 28, 17,"tofucraft.crusher"); registry.addRecipeClickArea(GuiTFCompressor.class, 68,15, 28, 17,"tofucraft.compressor"); registry.addRecipeClickArea(GuiTFAggreagator.class, 73,31, 30, 20,"tofucraft.aggregator"); registry.addRecipeClickArea(GuiTFAdvancedAggreagator.class, 80,27, 30, 20,"tofucraft.advanced_aggregator"); registry.addRecipeClickArea(GuiTFOven.class, 68,15, 28, 17,VanillaRecipeCategoryUid.SMELTING); recipeTransferRegistry.addRecipeTransferHandler(ContainerTFCrasher.class,"tofucraft.crusher", 0, 1, 2, 36); recipeTransferRegistry.addRecipeTransferHandler(ContainerTFCompressor.class,"tofucraft.compressor", 0, 1, 2, 36); recipeTransferRegistry.addRecipeTransferHandler(ContainerTFAggregator.class,"tofucraft.aggregator", 0, 1, 2, 36); recipeTransferRegistry.addRecipeTransferHandler(ContainerTFAdvancedAggregator.class,"tofucraft.advanced_aggregator", 0, 4, 5, 36); recipeTransferRegistry.addRecipeTransferHandler(ContainerTFOven.class,VanillaRecipeCategoryUid.SMELTING, 0, 1, 2, 36); registry.addRecipeCatalyst(new ItemStack(BlockLoader.TFCRASHER),"tofucraft.crusher"); registry.addRecipeCatalyst(new ItemStack(BlockLoader.TFCOMPRESSOR),"tofucraft.compressor"); registry.addRecipeCatalyst(new ItemStack(BlockLoader.TFAGGREGATOR),"tofucraft.aggregator"); registry.addRecipeCatalyst(new ItemStack(BlockLoader.TFAdvancedAGGREGATOR),"tofucraft.advanced_aggregator"); registry.addRecipeCatalyst(new ItemStack(BlockLoader.TFOVEN),VanillaRecipeCategoryUid.SMELTING); }
Example #3
Source File: JeiPlugin.java From YouTubeModdingTutorial with MIT License | 5 votes |
private void registerFastFurnaceHandling(@Nonnull IModRegistry registry) { registry.addRecipeCatalyst(new ItemStack(ModBlocks.blockFastFurnace), FASTFURNACE_ID, VanillaRecipeCategoryUid.SMELTING); registry.addRecipes(CustomRecipeRegistry.getCustomRecipeList(), FASTFURNACE_ID); registry.handleRecipes(CustomRecipe.class, CustomRecipeWrapper::new, FASTFURNACE_ID); IRecipeTransferRegistry transferRegistry = registry.getRecipeTransferRegistry(); transferRegistry.addRecipeTransferHandler(ContainerFastFurnace.class, VanillaRecipeCategoryUid.SMELTING, 0, TileFastFurnace.INPUT_SLOTS, TileFastFurnace.INPUT_SLOTS + TileFastFurnace.OUTPUT_SLOTS, 36); transferRegistry.addRecipeTransferHandler(ContainerFastFurnace.class, FASTFURNACE_ID, 0, TileFastFurnace.INPUT_SLOTS, TileFastFurnace.INPUT_SLOTS + TileFastFurnace.OUTPUT_SLOTS, 36); }
Example #4
Source File: GTJeiPlugin.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void register(@Nonnull IModRegistry registry) { if (SubModul.load) { for (GTJeiEntry entry : GTJeiHandler.getRegistry()) { wrapperUtil(registry, entry.getRecipeList(), entry.getCatalyst(), entry.getGuiClass(), entry.getClickX(), entry.getClickY(), entry.getSizeX(), entry.getSizeY()); } // More Vanilla Crafting IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry(); recipeTransferRegistry.addRecipeTransferHandler(GTContainerWorktable.class, VanillaRecipeCategoryUid.CRAFTING, 1, 9, 10, 58); registry.addRecipeCatalyst(new ItemStack(GTBlocks.tileWorktable), new String[] { "minecraft.crafting" }); registry.addRecipeCatalyst(new ItemStack(GTBlocks.tileAutocrafter), new String[] { "minecraft.crafting" }); // Amplifier registry.handleRecipes(MultiRecipe.class, GTJeiUUAmplifierWrapper::new, "gt.uuamplifier"); registry.addRecipes(GTTileMatterFabricator.RECIPE_LIST.getRecipeList(), "gt.uuamplifier"); registry.addRecipeCatalyst(new ItemStack(GTBlocks.tileFabricator), "gt.uuamplifier"); registry.addRecipeClickArea(GTMatterFabricatorGui.class, 105, 34, 62, 22, "gt.uuamplifier"); // Magic Fuel registry.handleRecipes(MultiRecipe.class, GTJeiMagicFuelWrapper::new, "gt.magicfuels"); registry.addRecipes(GTTileMagicEnergyConverter.RECIPE_LIST.getRecipeList(), "gt.magicfuels"); registry.addRecipeCatalyst(new ItemStack(GTBlocks.tileMagicEnergyConverter), "gt.magicfuels"); registry.addRecipeClickArea(GTMagicEnergyConverterGui.class, 78, 35, 16, 17, "gt.magicfuels"); // Mortar registry.handleRecipes(GTRecipeMultiInputList.MultiRecipe.class, GTJeiMortarWrapper::new, "gt.mortar"); registry.addRecipes(GTBlockMortar.RECIPE_LIST.getRecipeList(), "gt.mortar"); registry.addRecipeCatalyst(GTMaterialGen.get(GTBlocks.flintMortar), "gt.mortar"); registry.addRecipeCatalyst(GTMaterialGen.get(GTBlocks.ironMortar), "gt.mortar"); // Blacklist IIngredientBlacklist blacklist = registry.getJeiHelpers().getIngredientBlacklist(); blacklist.addIngredientToBlacklist(GTMaterialGen.get(GTBlocks.lightSource)); blacklist.addIngredientToBlacklist(GTMaterialGen.get(GTItems.orbDataStorage)); if (Loader.isModLoaded(GTValues.MOD_ID_GTCX)){ blacklist.addIngredientToBlacklist(GTMaterialGen.get(GTBlocks.tileFusionReactor)); } if (GTConfig.general.hideBedrockOresInJei) { for (Block block : GTBedrockOreHandler.getBedrockOreMap().keySet()) { if (GTBedrockOreHandler.shouldGTCHandleGeneration(block)) { blacklist.addIngredientToBlacklist(new ItemStack(block)); } } } } }
Example #5
Source File: RecipeHandlerCreationStation.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public String getRecipeCategoryUid() { return VanillaRecipeCategoryUid.CRAFTING; }