本文整理汇总了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));
}
示例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);
}
示例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);
}