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


Java IRecipeWrapperFactory类代码示例

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


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

示例1: register

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

    jeiHelpers = registry.getJeiHelpers();

    registry.addRecipes(ManaRecipes.recipesList, ManaCraftingCategory.UID);

    registry.handleRecipes(ManaCraftingRecipe.class, new IRecipeWrapperFactory<ManaCraftingRecipe>() {
        @Override
        public IRecipeWrapper getRecipeWrapper(ManaCraftingRecipe recipe) {
            return new ManaCraftingWrapper(recipe);
        }
    }, ManaCraftingCategory.UID);

    registry.addRecipeCatalyst(new ItemStack(Blocks.manaCraftingTable), ManaCraftingCategory.UID);

    registry.addRecipeClickArea(GuiManaCraftingTable.class, 90, 35, 21, 14, ManaCraftingCategory.UID);

    IIngredientBlacklist blacklist = registry.getJeiHelpers().getIngredientBlacklist();
    blacklist.addIngredientToBlacklist(new ItemStack(Blocks.researchStoneBrick));
}
 
开发者ID:Ohrm,项目名称:Malgra,代码行数:22,代码来源:JEIPlugin.java

示例2: register

import mezz.jei.api.recipe.IRecipeWrapperFactory; //导入依赖的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

示例3: register

import mezz.jei.api.recipe.IRecipeWrapperFactory; //导入依赖的package包/类
@Override
public void register(@Nonnull IModRegistry registry) {
    registry.handleRecipes(WinnowingMachineRecipe.class, new IRecipeWrapperFactory<WinnowingMachineRecipe>() {
        @Override
        @Nonnull
        public IRecipeWrapper getRecipeWrapper(@Nonnull WinnowingMachineRecipe recipe) {
            return new WinnowingRecipeWrapper(null, recipe);
        }
    }, WINNOWING);
    registry.addRecipes(WinnowingRecipeWrapper.getRecipes(), WINNOWING);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.FAN_HOUSING), WINNOWING);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.SEPARATOR), WINNOWING);
}
 
开发者ID:GirafiStudios,项目名称:Culinary-Cultivation,代码行数:14,代码来源:JEI.java


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