当前位置: 首页>>代码示例>>Java>>正文


Java VanillaRecipeCategoryUid类代码示例

本文整理汇总了Java中mezz.jei.api.recipe.VanillaRecipeCategoryUid的典型用法代码示例。如果您正苦于以下问题:Java VanillaRecipeCategoryUid类的具体用法?Java VanillaRecipeCategoryUid怎么用?Java VanillaRecipeCategoryUid使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VanillaRecipeCategoryUid类属于mezz.jei.api.recipe包,在下文中一共展示了VanillaRecipeCategoryUid类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(IModRegistry registry)
{
    IJeiHelpers helpers = registry.getJeiHelpers();
    IVanillaRecipeFactory vanillaFactory = helpers.getVanillaRecipeFactory();
    List<ItemStack> pouch = Collections.singletonList(new ItemStack(ToolBelt.pouch));
    registry.addRecipes(Lists.newArrayList(
            vanillaFactory.createAnvilRecipe(ToolBelt.belt.of(0), pouch, Collections.singletonList(ToolBelt.belt.of(1))),
            vanillaFactory.createAnvilRecipe(ToolBelt.belt.of(1), pouch, Collections.singletonList(ToolBelt.belt.of(2))),
            vanillaFactory.createAnvilRecipe(ToolBelt.belt.of(2), pouch, Collections.singletonList(ToolBelt.belt.of(3))),
            vanillaFactory.createAnvilRecipe(ToolBelt.belt.of(3), pouch, Collections.singletonList(ToolBelt.belt.of(4))),
            vanillaFactory.createAnvilRecipe(ToolBelt.belt.of(4), pouch, Collections.singletonList(ToolBelt.belt.of(5))),
            vanillaFactory.createAnvilRecipe(ToolBelt.belt.of(5), pouch, Collections.singletonList(ToolBelt.belt.of(6))),
            vanillaFactory.createAnvilRecipe(ToolBelt.belt.of(6), pouch, Collections.singletonList(ToolBelt.belt.of(7)))
    ), VanillaRecipeCategoryUid.ANVIL);
}
 
开发者ID:gigaherz,项目名称:ToolBelt,代码行数:17,代码来源:JeiPlugin.java

示例2: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(IModRegistry registry)
{

    for(MagibenchRegistry.Tier t : PurMag.INSTANCE.getMagibenchRegistry().getTiers())
    {
        registry.addRecipeCatalyst(new ItemStack(ItemRegistry.magibench, 1, t.getTier()), MagibenchRecipeCategory.ID);
        registry.addRecipeCatalyst(new ItemStack(ItemRegistry.magibench, 1, t.getTier()), VanillaRecipeCategoryUid.CRAFTING);
    }
    registry.handleRecipes(AbstractMagibenchRecipeWrapper.class, recipe -> recipe, MagibenchRecipeCategory.ID);

    List<AbstractMagibenchRecipeWrapper> lst = new ArrayList<>();
    for(IRecipe rec : ForgeRegistries.RECIPES)
    {
        if(rec instanceof MagibenchRecipe)
            lst.add(new MagibenchShapedRecipeWrapper((MagibenchRecipe)rec, registry.getJeiHelpers().getStackHelper()));
        if(rec instanceof MagibenchShapelessRecipe)
            lst.add(new MagibenchShapelessRecipeWrapper((MagibenchShapelessRecipe)rec, registry.getJeiHelpers().getStackHelper()));
    }
    registry.addRecipes(lst, MagibenchRecipeCategory.ID);
    registry.getRecipeTransferRegistry().addRecipeTransferHandler(new MagibenchTransferInfo(MagibenchRecipeCategory.ID));
    registry.getRecipeTransferRegistry().addRecipeTransferHandler(new MagibenchTransferInfo(VanillaRecipeCategoryUid.CRAFTING));
}
 
开发者ID:PearXTeam,项目名称:PurificatiMagicae,代码行数:24,代码来源:PMJeiPlugin.java

示例3: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(@Nonnull IModRegistry registry)
{
    IItemRegistry itemRegistry = registry.getItemRegistry();
    IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    IGuiHelper guiHelper = jeiHelpers.getGuiHelper();
    IRecipeTransferRegistry recipeTransferHandler = registry.getRecipeTransferRegistry();

    registry.addRecipeCategories(new StoveCookingCategory(guiHelper));
    registry.addRecipeHandlers(new StoveRecipeHandler());
    registry.addRecipes(StoveRecipeMaker.getCookingRecipes(jeiHelpers));

    registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.VanillaCraftingTables, 1, OreDictionary.WILDCARD_VALUE), VanillaRecipeCategoryUid.CRAFTING);
    registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.MetalFurnace, 1, OreDictionary.WILDCARD_VALUE), VanillaRecipeCategoryUid.SMELTING, VanillaRecipeCategoryUid.FUEL);
    registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.Stove), LibViewerUid.STOVE, VanillaRecipeCategoryUid.FUEL);

    recipeTransferHandler.addRecipeTransferHandler(ContainerVanillaCraftingTable.class, VanillaRecipeCategoryUid.CRAFTING, 1, 9, 10, 36);
}
 
开发者ID:GamingsModding,项目名称:LittleThings-old,代码行数:19,代码来源:LittleThingsPlugin.java

示例4: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(@Nonnull IModRegistry registry) {
    jeiHelpers = registry.getJeiHelpers();
    IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();

    registry.addRecipeCategories(new RecipeCategoryConstructionTable());
    registry.addRecipeHandlers(new RecipeHandlerConstructionTable());

    registry.addRecipes(RecipeMakerConstructionTable.getRecipes());

    registry.addRecipeClickArea(GuiConstructionTable.class, 161, 71, 22, 15, LibModIntegrations.JEI.Recipes.ConstructionTable.getUid());

    recipeTransferRegistry.addRecipeTransferHandler(ContainerConstructionTable.class, LibModIntegrations.JEI.Recipes.ConstructionTable.getUid(), 1, 17, 18, 36);
    recipeTransferRegistry.addRecipeTransferHandler(ContainerConstructionTable.class, VanillaRecipeCategoryUid.CRAFTING, 1, 9, 18, 36);

    registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.ConstructionTable), LibModIntegrations.JEI.Recipes.ConstructionTable.getUid());
    registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.ConstructionTable), VanillaRecipeCategoryUid.CRAFTING);
}
 
开发者ID:yolp900,项目名称:ItsJustaCharm1.10.2Dead,代码行数:19,代码来源:IJCPlugin.java

示例5: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(final IModRegistry registry)
{
    QBarRecipeHandler.RECIPES.forEach((name, category) -> registry.addRecipes(category.getRecipes(), name));

    registry.addRecipeCatalyst(new ItemStack(QBarBlocks.ROLLING_MILL), QBarRecipeHandler.ROLLINGMILL_UID);
    registry.addRecipeCatalyst(new ItemStack(QBarBlocks.SAWMILL), QBarRecipeHandler.SAW_MILL_UID);

    QBarJEIRecipeWrapper.Builder rollingMillWrapper = QBarJEIRecipeWrapper.builder(registry.getJeiHelpers().getGuiHelper())
            .background(GuiRollingMill.BACKGROUND).u(176).v(14).width(24).height(17);
    registry.handleRecipes(RollingMillRecipe.class, rollingMillWrapper::create, QBarRecipeHandler.ROLLINGMILL_UID);

    QBarJEIRecipeWrapper.Builder sawMillWrapper = QBarJEIRecipeWrapper.builder(registry.getJeiHelpers().getGuiHelper())
            .background(GuiSawMill.BACKGROUND).u(176).v(14).width(24).height(17);
    registry.handleRecipes(SawMillRecipe.class, sawMillWrapper::create, QBarRecipeHandler.SAW_MILL_UID);

    registry.addRecipeClickArea(GuiRollingMill.class, 80, 35, 26, 20, QBarRecipeHandler.ROLLINGMILL_UID);
    registry.addRecipeClickArea(GuiSteamFurnace.class, 80, 35, 26, 20, VanillaRecipeCategoryUid.SMELTING);
    registry.addRecipeClickArea(GuiSawMill.class, 80, 35, 26, 20, QBarRecipeHandler.SAW_MILL_UID);
}
 
开发者ID:OPMCorp,项目名称:Qbar,代码行数:21,代码来源:QBarJEIPlugin.java

示例6: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@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<ContainerCreationStation>());

    // 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);
}
 
开发者ID:maruohon,项目名称:enderutilities,代码行数:27,代码来源:EnderUtilitiesJeiPlugin.java

示例7: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(@Nonnull IModRegistry registry) {

  IJeiHelpers jeiHelpers = registry.getJeiHelpers();
  IGuiHelper guiHelper = jeiHelpers.getGuiHelper();

  DarkSteelUpgradeRecipeCategory.register(registry, guiHelper);
  DescriptionRecipeCategory.register(registry);
  InfinityRecipeCategory.register(registry, guiHelper);

  registry.addAdvancedGuiHandlers(new AdvancedGuiHandlerEnderIO());

  // Add a couple of example recipes for the nut.dist stick as the custom recipe isn't picked up
  List<ItemStack> inputs = new ArrayList<ItemStack>();
  inputs.add(new ItemStack(Items.STICK));
  inputs.add(Fluids.NUTRIENT_DISTILLATION.getBucket());
  ShapelessRecipes res = new ShapelessRecipes(new ItemStack(itemMaterial.getItemNN(), 1, Material.NUTRITIOUS_STICK.ordinal()), inputs);
  registry.addRecipes(Collections.singletonList(res), VanillaRecipeCategoryUid.CRAFTING);

  if (!JeiAccessor.ALTERNATIVES.isEmpty()) {
    // These are lookups for the outputs, the real recipes with the same input create a different oredicted variant of the output item.
    registry.addRecipes(JeiAccessor.ALTERNATIVES, VanillaRecipeCategoryUid.CRAFTING);
    Log.debug("Provided " + JeiAccessor.ALTERNATIVES.size() + " synthetic crafting recipes to JEI");
  }
}
 
开发者ID:SleepyTrousers,项目名称:EnderIO,代码行数:26,代码来源:JeiPlugin.java

示例8: fromSmelting

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
public static <T extends IRecipeWrapper> Supplied<CraftingControl> fromSmelting(ItemStack input)
{
    return new Supplied<>(() ->
    {
        IRecipeCategory cat = PMJeiPlugin.RUNTIME.getRecipeRegistry().getRecipeCategory(VanillaRecipeCategoryUid.SMELTING);
        List<T> lst = PMJeiPlugin.RUNTIME.getRecipeRegistry().getRecipeWrappers(cat);
        T rec = null;
        try
        {
            IIngredients holder = INGREDIENTS.newInstance();
            recipeLoop:
            for (T wr : lst)
            {
                wr.getIngredients(holder);
                List<List<ItemStack>> inp = holder.getInputs(ItemStack.class);
                if (inp.size() > 0)
                {
                    List<ItemStack> i = inp.get(0);
                    for (ItemStack is : i)
                    {
                        if (ItemStack.areItemStacksEqual(is, input))
                        {
                            rec = wr;
                            break recipeLoop;
                        }
                    }
                }
            }
        }
        catch (InstantiationException | IllegalAccessException e)
        {
            throw new ReportedException(CrashReport.makeCrashReport(e, "Something went wrong when creating furnace recipe renderer"));
        }
        return new CraftingControl(cat, rec, BORDER_VANILLA, BORDER_VANILLA_SIZE);
    });
}
 
开发者ID:PearXTeam,项目名称:PurificatiMagicae,代码行数:37,代码来源:CraftingControl.java

示例9: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(IModRegistry reg) {
	IJeiHelpers helper = reg.getJeiHelpers();
	IGuiHelper guiHelper = helper.getGuiHelper();
	
	reg.handleRecipes(BookRecipe.class, new IRecipeWrapperFactory<BookRecipe>() {

		@Override
		public IRecipeWrapper getRecipeWrapper(BookRecipe recipe) {
			return new GuideBookRecipeWrapper();
		}
		
	}, VanillaRecipeCategoryUid.CRAFTING);
	
}
 
开发者ID:the-realest-stu,项目名称:Adventurers-Toolbox,代码行数:16,代码来源:ToolboxJEIPlugin.java

示例10: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(IModRegistry registry) {
	STACKS = registry.getJeiHelpers().getStackHelper();

	for (IRecipe recipe : ForgeRegistries.RECIPES) {
		if (recipe instanceof RecipeBase) {
			registry.addRecipes(Collections.singletonList(recipe), VanillaRecipeCategoryUid.CRAFTING);
		}
	}

	registry.handleRecipes(RecipeBase.class, JEIRecipePony::create, VanillaRecipeCategoryUid.CRAFTING);
}
 
开发者ID:asiekierka,项目名称:PonySocks2,代码行数:13,代码来源:PonySocksJEIPlugin.java

示例11: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(IModRegistry registry) {
    IJeiHelpers helpers = registry.getJeiHelpers();
    IGuiHelper guiHelpers = helpers.getGuiHelper();

    gridHelper = guiHelpers.createCraftingGridHelper(1, 0);
    Set<Object> recipes = new HashSet<>();
    recipes.add(new ESCraftingRecipeWrapper((RecipeBase) ForgeRegistries.RECIPES.getValue(new ResourceLocation("enderstorage:ender_chest"))));
    recipes.add(new ESCraftingRecipeWrapper((RecipeBase) ForgeRegistries.RECIPES.getValue(new ResourceLocation("enderstorage:ender_tank"))));
    recipes.add(new ESCraftingRecipeWrapper((RecipeBase) ForgeRegistries.RECIPES.getValue(new ResourceLocation("enderstorage:ender_pouch"))));
    registry.addRecipes(recipes, VanillaRecipeCategoryUid.CRAFTING);
}
 
开发者ID:TheCBProject,项目名称:EnderStorage,代码行数:13,代码来源:EnderStorageJEIPlugin.java

示例12: getDrawableFromItem

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
public static IRecipeLayoutDrawable getDrawableFromItem(ItemStack stack) {
	if (stack != null) {
		IRecipeRegistry registry = JEIRefractionPlugin.jeiRuntime.getRecipeRegistry();
		IFocus<ItemStack> focus = registry.createFocus(IFocus.Mode.OUTPUT, stack);
		for (IRecipeCategory<?> category : registry.getRecipeCategories(focus)) {
			if (category.getUid().equals(Constants.MOD_ID + ".assembly_table")
					|| category.getUid().equals(VanillaRecipeCategoryUid.CRAFTING)) {
				List<IRecipeLayoutDrawable> layouts = getLayouts(registry, category, focus);
				if (!layouts.isEmpty())
					return layouts.get(0);
			}
		}
	}
	return null;
}
 
开发者ID:TeamWizardry,项目名称:TMT-Refraction,代码行数:16,代码来源:JEIRefractionPlugin.java

示例13: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
/** Register this mod plugin with the mod registry. */
@Override
public void register(IModRegistry reg) {
	if(LCConfig.JEIIntegration) {
		// register the categories
		reg.addRecipeCategories(
				new LightningCrusherRecipeCategory(reg.getJeiHelpers().getGuiHelper()),
				new LightningInfusionRecipeCategory(reg.getJeiHelpers().getGuiHelper())
		);
		
		// and the handlers
		reg.addRecipeHandlers(
				new LightningCrusherRecipeHandler(),
				new LightningInfusionRecipeHandler()
		);
		
		// add the recipes
		reg.addRecipes(LightningCrusherRecipes.instance().getRecipeList());
		reg.addRecipes(LightningInfusionRecipes.instance().getRecipeList());
		
		// add the recipe click areas
		reg.addRecipeClickArea(GuiLightningFurnace.class, 79, 34, 24, 16, VanillaRecipeCategoryUid.SMELTING);
		reg.addRecipeClickArea(GuiLightningCrusher.class, 79, 34, 24, 16, LightningCrusherRecipeCategory.UID);
		reg.addRecipeClickArea(GuiLightningInfuser.class, 75, 40, 24, 16, LightningInfusionRecipeCategory.UID);
		
		// set the category icons
		reg.addRecipeCategoryCraftingItem(new ItemStack(LCBlocks.lightningFurnace), VanillaRecipeCategoryUid.SMELTING);
		reg.addRecipeCategoryCraftingItem(new ItemStack(LCBlocks.lightningCrusher), LightningCrusherRecipeCategory.UID);
		reg.addRecipeCategoryCraftingItem(new ItemStack(LCBlocks.lightningInfuser), LightningInfusionRecipeCategory.UID);
		
		// add item descriptions
		reg.addDescription(new ItemStack(LCItems.ingot, 1, Ingot.ELEC), RefStrings.MODID + ".electriciumInfo");
		reg.addDescription(new ItemStack(LCItems.ingot, 1, Ingot.SKY), RefStrings.MODID + ".skyfatherInfo");
		reg.addDescription(new ItemStack(LCItems.ingot, 1, Ingot.MYSTIC), RefStrings.MODID + ".mysticInfo");
		
		Log.logger.info("JEI integration complete.");
	} else {
		Log.logger.info("JEI integration disabled.");
	}
}
 
开发者ID:sblectric,项目名称:LightningCraft,代码行数:41,代码来源:JEIPlugin.java

示例14: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
public void register(IModRegistry registry) {
  ////////////////first register all crafting GUI's
  // thanks to http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571434-tutorial-modding-with-apis
  //and of course readme on https://github.com/mezz/JustEnoughItems
  // setup [+] feature
  registry.getRecipeTransferRegistry().addRecipeTransferHandler(ContainerPlayerExtWorkbench.class, VanillaRecipeCategoryUid.CRAFTING,
      6, // @param recipeSlotStart    the first slot for recipe inputs // skip over the 1 output and the 5 armor slots
      9, // @param recipeSlotCount    the number of slots for recipe inputs //3x3
      15, //@param inventorySlotStart the first slot of the available inventory (usually player inventory) =9+6
      36);//@param inventorySlotCount the number of slots of the available inventory //top right including hotbar =4*9
  registry.getRecipeTransferRegistry().addRecipeTransferHandler(ContainerCrafter.class, VanillaRecipeCategoryUid.CRAFTING,
      10, // @param recipeSlotStart    the first slot for recipe inputs // skip over the 10 INPUT
      9, // @param recipeSlotCount    the number of slots for recipe inputs //3x3
      29, //@param inventorySlotStart the first slot of the available inventory (usually player inventory) =9+6
      4 * 9);//@param inventorySlotCount the number of slots of the available inventory //top right including hotbar =4*9
  registry.getRecipeTransferRegistry().addRecipeTransferHandler(ContainerWorkBench.class, VanillaRecipeCategoryUid.CRAFTING,
      1, // @param recipeSlotStart    the first slot for recipe inputs // skip over the 1 output and the 5 armor slots
      9, // @param recipeSlotCount    the number of slots for recipe inputs //3x3
      10, //@param inventorySlotStart the first slot of the available inventory (usually player inventory) =9
      4 * 9);//@param inventorySlotCount the number of slots of the available inventory //top right including hotbar =4*9
  registry.getRecipeTransferRegistry().addRecipeTransferHandler(ContainerHydrator.class, RECIPE_CATEGORY_HYDRATOR,
      0, // @param recipeSlotStart    the first slot for recipe inputs // skip over the 1 output and the 5 armor slots
      3, // @param recipeSlotCount    the number of slots for recipe inputs //3x3
      9, //@param inventorySlotStart the first slot of the available inventory (usually player inventory) =9
      4 * 9);//@param inventorySlotCount the number of slots of the available inventory //top right including hotbar =4*9
  ////////////////// custom recipe hook
  registry.addRecipeClickArea(GuiHydrator.class, 70, 16, 20, 20, RECIPE_CATEGORY_HYDRATOR);
  registry.handleRecipes(RecipeHydrate.class, new HydratorFactory(), RECIPE_CATEGORY_HYDRATOR);
  registry.addRecipes(BlockHydrator.recipesShaped, RECIPE_CATEGORY_HYDRATOR);
  for (Item item : ItemRegistry.itemMap.values()) {
    //YES its deprecated. but new method is NOT in wiki. at all. 
    // i found something similar... and didnt work when i tried
    //https://github.com/mezz/JustEnoughItems/wiki/Recipes-Overview
    registry.addDescription(new ItemStack(item), item.getUnlocalizedName() + ".guide");
  }
}
 
开发者ID:PrinceOfAmber,项目名称:Cyclic,代码行数:39,代码来源:JEIPlugin.java

示例15: register

import mezz.jei.api.recipe.VanillaRecipeCategoryUid; //导入依赖的package包/类
@Override
public void register(@Nonnull IModRegistry registry)
{
    registry.getRecipeTransferRegistry()
            .addRecipeTransferHandler(ContainerCraftingBrowser.class, VanillaRecipeCategoryUid.CRAFTING,
                    ContainerCraftingBrowser.CraftingSlotStart, 9,
                    ContainerCraftingBrowser.InventorySlotStart, 36);
}
 
开发者ID:gigaherz,项目名称:Ender-Rift,代码行数:9,代码来源:JEIPlugin.java


注:本文中的mezz.jei.api.recipe.VanillaRecipeCategoryUid类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。