本文整理汇总了Java中mezz.jei.api.recipe.transfer.IRecipeTransferRegistry类的典型用法代码示例。如果您正苦于以下问题:Java IRecipeTransferRegistry类的具体用法?Java IRecipeTransferRegistry怎么用?Java IRecipeTransferRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRecipeTransferRegistry类属于mezz.jei.api.recipe.transfer包,在下文中一共展示了IRecipeTransferRegistry类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: register
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; //导入依赖的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
示例2: register
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; //导入依赖的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
示例3: register
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; //导入依赖的package包/类
@Override
public void register(@Nonnull IModRegistry registry) {
RecipeTransferHandler helper = new RecipeTransferHandler(registry);
registry.getRecipeTransferRegistry().addRecipeTransferHandler(helper, VanillaRecipeCategoryUid.CRAFTING);
RecipeTransferEncoder helperEncoder = new RecipeTransferEncoder(registry);
registry.getRecipeTransferRegistry().addUniversalRecipeTransferHandler(helperEncoder);
IJeiHelpers jeiHelpers = registry.getJeiHelpers();
IGuiHelper guiHelper = jeiHelpers.getGuiHelper();
registry.addRecipeCategories(new CrystalWorkbenchCategory(guiHelper));
IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();
registry.addRecipeHandlers(
new ShapedCrystalRecipeHandler(jeiHelpers),
new ShapedNBTCrystalRecipeHandler(jeiHelpers),
new ShapedCrystalOreRecipeHandler(jeiHelpers),
new ShapelessCrystalRecipeHandler(jeiHelpers)
);
registry.addRecipes(CrystalCraftingManager.getInstance().getRecipeList());
PressRecipeCategory.register(jeiHelpers, registry, guiHelper);
CauldronRecipeCategory.register(jeiHelpers, registry, guiHelper);
LiquidizerRecipeCategory.register(jeiHelpers, registry, guiHelper);
GrinderRecipeCategory.register(jeiHelpers, registry, guiHelper);
InfuserRecipeCategory.register(jeiHelpers, registry, guiHelper);
FusionRecipeCategory.register(jeiHelpers, registry, guiHelper);
PipeCoverCategory.register(jeiHelpers, registry, guiHelper);
DNASampleCategory.register(jeiHelpers, registry, guiHelper);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.crystalWorkbench), CrystalModRecipeUids.WORKBENCH);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.crystalWorkbench), VanillaRecipeCategoryUid.CRAFTING);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.storagePanel, 1, PanelType.CRAFTING.getMeta()), VanillaRecipeCategoryUid.CRAFTING);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.crystalMachine, 1, MachineType.FURNACE.getMeta()), VanillaRecipeCategoryUid.SMELTING);
registry.addRecipeClickArea(GuiCrystalWorkbench.class, 88, 32, 28, 23, CrystalModRecipeUids.WORKBENCH);
recipeTransferRegistry.addRecipeTransferHandler(ContainerCrystalWorkbench.class, CrystalModRecipeUids.WORKBENCH, 1, 9, 10, 36);
recipeTransferRegistry.addRecipeTransferHandler(ContainerCrystalWorkbench.class, VanillaRecipeCategoryUid.CRAFTING, 1, 9, 10, 36);
recipeTransferRegistry.addRecipeTransferHandler(ContainerCrystalFurnace.class, VanillaRecipeCategoryUid.SMELTING, 36, 1, 0, 35);
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.materialCrop));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.crystalReedsBlue));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.crystalReedsRed));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.crystalReedsGreen));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.crystalReedsDark));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.crystalPlant));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.crystalTreePlantBlue));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.crystalTreePlantRed));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.crystalTreePlantGreen));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.crystalTreePlantDark));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.glowBerryBlue));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.glowBerryRed));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.glowBerryGreen));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.glowBerryDark));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.corn));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.cubeBlock));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.cubeCore));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.bambooDoor));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.fakeLight, 1, LightType.LIGHT.getMeta()));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.fakeLight, 1, LightType.DARK.getMeta()));
String desc = "Dropped upon killing an Ender Dragon.";
//Lang.localize("jei.desc.wings");
registry.addDescription(new ItemStack(ModItems.wings), desc);
registry.addAdvancedGuiHandlers(new AdvancedGuiHandlerCrystalMod());
registry.addAdvancedGuiHandlers(new AdvancedGuiHandlerPanel());
}
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:70,代码来源:JEIPlugin.java
示例4: registerTransferHandlers
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; //导入依赖的package包/类
public static void registerTransferHandlers(IRecipeTransferRegistry recipeTransferRegistry) {
for (int i = 0;i < containerClasses.size();i++)
recipeTransferRegistry.addRecipeTransferHandler(new CraftingTerminalTransferHandler(containerClasses.get(i)), VanillaRecipeCategoryUid.CRAFTING);
}
开发者ID:tom5454,项目名称:Toms-Mod,代码行数:5,代码来源:CraftingTerminalTransferHandler.java
示例5: loadPetternTerminalTransferHandler
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; //导入依赖的package包/类
public static void loadPetternTerminalTransferHandler(IRecipeTransferRegistry recipeTransferRegistry) {
for (int i = 0;i < containerClasses.size();i++)
recipeTransferRegistry.addUniversalRecipeTransferHandler(new PatternTerminalJEITransferHandler(containerClasses.get(i)));
}
开发者ID:tom5454,项目名称:Toms-Mod,代码行数:5,代码来源:PatternTerminalJEITransferHandler.java
示例6: register
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; //导入依赖的package包/类
@Override
public void register(IModRegistry registry) {
if(!Loader.isModLoaded("abyssalcraft")) return;
IJeiHelpers jeiHelpers = registry.getJeiHelpers();
JEIUtils utils = new JEIUtils(registry.getIngredientRegistry());
guiHelper = jeiHelpers.getGuiHelper();
registry.addRecipeCatalyst(new ItemStack(ACBlocks.transmutator_idle), AbyssalCraftRecipeCategoryUid.TRANSMUTATION,
AbyssalCraftRecipeCategoryUid.FUEL_TRANSMUTATION);
registry.addRecipeCatalyst(new ItemStack(ACBlocks.crystallizer_idle), AbyssalCraftRecipeCategoryUid.CRYSTALLIZATION,
AbyssalCraftRecipeCategoryUid.FUEL_CRYSTALLIZATION);
registry.addRecipeCatalyst(new ItemStack(ACBlocks.engraver), AbyssalCraftRecipeCategoryUid.ENGRAVING);
registry.addRecipeCatalyst(new ItemStack(ACItems.necronomicon), AbyssalCraftRecipeCategoryUid.RITUAL);
registry.addRecipeCatalyst(new ItemStack(ACItems.abyssal_wasteland_necronomicon), AbyssalCraftRecipeCategoryUid.RITUAL);
registry.addRecipeCatalyst(new ItemStack(ACItems.dreadlands_necronomicon), AbyssalCraftRecipeCategoryUid.RITUAL);
registry.addRecipeCatalyst(new ItemStack(ACItems.omothol_necronomicon), AbyssalCraftRecipeCategoryUid.RITUAL);
registry.addRecipeCatalyst(new ItemStack(ACItems.abyssalnomicon), AbyssalCraftRecipeCategoryUid.RITUAL);
registry.addRecipeCatalyst(new ItemStack(ACItems.staff_of_rending, 1, 0), AbyssalCraftRecipeCategoryUid.RENDING);
registry.addRecipeCatalyst(new ItemStack(ACItems.staff_of_rending, 1, 1), AbyssalCraftRecipeCategoryUid.RENDING);
registry.addRecipeCatalyst(new ItemStack(ACItems.staff_of_rending, 1, 2), AbyssalCraftRecipeCategoryUid.RENDING);
registry.addRecipeCatalyst(new ItemStack(ACItems.staff_of_rending, 1, 3), AbyssalCraftRecipeCategoryUid.RENDING);
registry.addRecipeCatalyst(new ItemStack(ACItems.staff_of_the_gatekeeper), AbyssalCraftRecipeCategoryUid.RENDING);
registry.addRecipeCatalyst(new ItemStack(Blocks.ANVIL, 1, 0), AbyssalCraftRecipeCategoryUid.UPGRADE);
registry.addRecipeCatalyst(new ItemStack(Blocks.ANVIL, 1, 1), AbyssalCraftRecipeCategoryUid.UPGRADE);
registry.addRecipeCatalyst(new ItemStack(Blocks.ANVIL, 1, 2), AbyssalCraftRecipeCategoryUid.UPGRADE);
registry.addRecipeCatalyst(new ItemStack(ACBlocks.materializer), AbyssalCraftRecipeCategoryUid.MATERIALIZATION);
IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();
recipeTransferRegistry.addRecipeTransferHandler(ContainerTransmutator.class, AbyssalCraftRecipeCategoryUid.TRANSMUTATION, 0, 1, 1, 36);
recipeTransferRegistry.addRecipeTransferHandler(ContainerTransmutator.class, AbyssalCraftRecipeCategoryUid.FUEL_TRANSMUTATION, 1, 1, 1, 36);
recipeTransferRegistry.addRecipeTransferHandler(ContainerCrystallizer.class, AbyssalCraftRecipeCategoryUid.CRYSTALLIZATION, 0, 1, 1, 36);
recipeTransferRegistry.addRecipeTransferHandler(ContainerCrystallizer.class, AbyssalCraftRecipeCategoryUid.FUEL_CRYSTALLIZATION, 1, 1, 1, 36);
recipeTransferRegistry.addRecipeTransferHandler(ContainerEngraver.class, AbyssalCraftRecipeCategoryUid.ENGRAVING, 0, 1, 1, 36);
recipeTransferRegistry.addRecipeTransferHandler(ContainerMaterializer.class, AbyssalCraftRecipeCategoryUid.MATERIALIZATION, 0, 1, 1, 36);
registry.addRecipes(TransmutationRecipeMaker.getTransmutatorRecipes(jeiHelpers), AbyssalCraftRecipeCategoryUid.TRANSMUTATION);
registry.addRecipes(TransmutatorFuelRecipeMaker.getFuelRecipes(utils, jeiHelpers), AbyssalCraftRecipeCategoryUid.FUEL_TRANSMUTATION);
registry.addRecipes(CrystallizationRecipeMaker.getCrystallizerRecipes(jeiHelpers), AbyssalCraftRecipeCategoryUid.CRYSTALLIZATION);
registry.addRecipes(CrystallizerFuelRecipeMaker.getFuelRecipes(utils, jeiHelpers), AbyssalCraftRecipeCategoryUid.FUEL_CRYSTALLIZATION);
registry.addRecipes(RitualRecipeMaker.getRituals(), AbyssalCraftRecipeCategoryUid.RITUAL);
registry.addRecipes(EngravingRecipeMaker.getEngraverRecipes(), AbyssalCraftRecipeCategoryUid.ENGRAVING);
registry.addRecipes(RendingRecipeMaker.getRending(), AbyssalCraftRecipeCategoryUid.RENDING);
registry.addRecipes(UpgradeRecipeMaker.getUpgrades(), AbyssalCraftRecipeCategoryUid.UPGRADE);
registry.addRecipes(MaterializerRecipes.instance().getMaterializationList(), AbyssalCraftRecipeCategoryUid.MATERIALIZATION);
registry.handleRecipes(NecronomiconCreationRitual.class, recipe -> new RitualRecipeWrapper(recipe), AbyssalCraftRecipeCategoryUid.RITUAL);
registry.handleRecipes(Materialization.class, recipe -> new MaterializationRecipeWrapper(recipe), AbyssalCraftRecipeCategoryUid.MATERIALIZATION);
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ItemHandler.devsword));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ACBlocks.crystallizer_active));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ACBlocks.transmutator_active));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(BlockHandler.house));
jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(BlockHandler.Altar));
}
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:59,代码来源:ACJEIPlugin.java
示例7: register
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; //导入依赖的package包/类
public static void register(IModRegistry registry) {
final IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();
recipeTransferRegistry.addRecipeTransferHandler(new FabricationTableRecipeTransferHandler(registry));
registry.addRecipeCategoryCraftingItem(new ItemStack(ProjectZed.fabricationTable), VanillaRecipeCategoryUid.CRAFTING);
}
开发者ID:hockeyhurd,项目名称:Project-Zed,代码行数:6,代码来源:FabricationTableRecipeTransferHandler.java
示例8: register
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; //导入依赖的package包/类
public static void register(IModRegistry registry) {
final IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();
recipeTransferRegistry.addRecipeTransferHandler(new StoneCraftingTableRecipeTransferHandler(registry));
registry.addRecipeCategoryCraftingItem(new ItemStack(ProjectZed.stoneCraftingTable), VanillaRecipeCategoryUid.CRAFTING);
}
开发者ID:hockeyhurd,项目名称:Project-Zed,代码行数:6,代码来源:StoneCraftingTableRecipeTransferHandler.java
示例9: register
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; //导入依赖的package包/类
public static void register(IModRegistry registry) {
final IRecipeTransferRegistry recipeTransferHandler = registry.getRecipeTransferRegistry();
recipeTransferHandler.addRecipeTransferHandler(new PatternEncoderRecipeTransferHandler(registry));
registry.addRecipeCategoryCraftingItem(new ItemStack(ProjectZed.patternEncoder), VanillaRecipeCategoryUid.CRAFTING);
}
开发者ID:hockeyhurd,项目名称:Project-Zed,代码行数:6,代码来源:PatternEncoderRecipeTransferHandler.java
注:本文中的mezz.jei.api.recipe.transfer.IRecipeTransferRegistry类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论