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


Java IRecipeCategoryRegistration类代码示例

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


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

示例1: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    
    guiHelper = registry.getJeiHelpers().getGuiHelper();
    
    Geomastery.LOG.info("JEI: Registering recipe categories");
    compost = new GeoCompostCategory();
    cooking = new GeoCookingCategory();
    fuel = new GeoFuelCategory();
    drying = new GeoDryingCategory();
    inventory = new GeoInventoryCategory();
    armourer = new GeoCraftingCategory(GuiList.ARMOURER.title());
    candlemaker = new GeoCraftingCategory(GuiList.CANDLEMAKER.title());
    forge = new GeoCraftingCategory(GuiList.FORGE.title());
    knapping = new GeoCraftingCategory(GuiList.KNAPPING.title());
    mason = new GeoCraftingCategory(GuiList.MASON.title());
    sawpit = new GeoCraftingCategory(GuiList.SAWPIT.title());
    textiles = new GeoCraftingCategory(GuiList.TEXTILES.title());
    woodworking = new GeoCraftingCategory(GuiList.WOODWORKING.title());
    registry.addRecipeCategories(compost, cooking, fuel, drying, inventory, armourer, candlemaker, forge, knapping, mason, sawpit, textiles, woodworking);
}
 
开发者ID:JayAvery,项目名称:geomastery,代码行数:22,代码来源:GeoJei.java

示例2: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    IJeiHelpers helpers = registry.getJeiHelpers();
    registry.addRecipeCategories(
            new JEIPressureChamberRecipeCategory(helpers),
            new JEIAssemblyControllerCategory(helpers),
            new JEIThermopneumaticProcessingPlantCategory(helpers),
            new JEIRefineryCategory(helpers),
            new JEIEtchingAcidCategory(helpers),
            new JEICompressedIronCategory(helpers),
            new JEIUVLightBoxCategory(helpers),
            new JEIAmadronTradeCategory(helpers),
            new JEIPlasticMixerCategory(helpers)
    );
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:16,代码来源:JEI.java

示例3: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    if (BlockRegistry.sludgeRefinerBlock.isEnabled()) {
        sludgeRefinerRecipeCategory = new SludgeRefinerRecipeCategory(registry.getJeiHelpers().getGuiHelper());
        registry.addRecipeCategories(sludgeRefinerRecipeCategory);
    }
    if (BlockRegistry.bioReactorBlock.isEnabled()) {
        bioReactorRecipeCategory = new ReactorRecipeCategory(registry.getJeiHelpers().getGuiHelper(), "Bioreactor accepted items");
        registry.addRecipeCategories(bioReactorRecipeCategory);
    }
    if (BlockRegistry.proteinReactorBlock.isEnabled()) {
        proteinReactorRecipeCategory = new ReactorRecipeCategory(registry.getJeiHelpers().getGuiHelper(), "Protein reactor accepted items");
        registry.addRecipeCategories(proteinReactorRecipeCategory);
    }
    if (BlockRegistry.laserBaseBlock.isEnabled() || BlockRegistry.laserDrillBlock.isEnabled()) {
        laserRecipeCategory = new LaserRecipeCategory(registry.getJeiHelpers().getGuiHelper());
        registry.addRecipeCategories(laserRecipeCategory);
    }
    machineProduceCategory = new MachineProduceCategory(registry.getJeiHelpers().getGuiHelper());
    registry.addRecipeCategories(machineProduceCategory);
    if (BlockRegistry.petrifiedFuelGeneratorBlock.isEnabled()) {
        petrifiedBurnTimeCategory = new PetrifiedBurnTimeCategory(registry.getJeiHelpers().getGuiHelper());
        registry.addRecipeCategories(petrifiedBurnTimeCategory);
    }
    if (CustomConfiguration.enableBookEntriesInJEI) {
        manualCategory = new ManualCategory(registry.getJeiHelpers().getGuiHelper());
        registry.addRecipeCategories(manualCategory);
    }
}
 
开发者ID:Buuz135,项目名称:Industrial-Foregoing,代码行数:30,代码来源:JEICustomPlugin.java

示例4: BaseJeiCategory

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
public BaseJeiCategory(String UID, IRecipeCategoryRegistration reg) {
	IGuiHelper guiHelper = reg.getJeiHelpers().getGuiHelper();
	this.UID = UID;
	String name = UID.split("\\.")[UID.split("\\.").length-1];
	background = guiHelper.createBlankDrawable(150, 100 + (render2PerPage()? 0 : 10));
	localizedName = I18n.format("jei." + name + ".name");
	overlay = getOverlay(guiHelper, name);
	createDrawable(guiHelper);
}
 
开发者ID:kenijey,项目名称:harshencastle,代码行数:10,代码来源:BaseJeiCategory.java

示例5: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
	registry.addRecipeCategories(
	new JEIRitualCategory(JEICategoryUIDs.RITUAL, registry),
	new JEICauldronCategory(JEICategoryUIDs.CAULDRON, registry),
	new JEIPedestalSlabCategory(JEICategoryUIDs.PENDESTAL_SLAB, registry),
	new JEIHereticRitualCategory(JEICategoryUIDs.HERETIC_RITUAL, registry),
	new JEIMagicTableCategory(JEICategoryUIDs.MAGIC_TABLE, registry));

}
 
开发者ID:kenijey,项目名称:harshencastle,代码行数:11,代码来源:JEIHarshenCastle.java

示例6: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    registry.addRecipeCategories(new SimpleSteelCategories.BlastFurnace(registry));
    registry.addRecipeCategories(new SimpleSteelCategories.Duster(registry));
    registry.addRecipeCategories(new SimpleSteelCategories.GeoThermalGenerator(registry));
    registry.addRecipeCategories(new SimpleSteelCategories.Crusher(registry));
}
 
开发者ID:canitzp,项目名称:Metalworks,代码行数:8,代码来源:SimpleSteelJEIPlugin.java

示例7: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    jeiHelpers = registry.getJeiHelpers();
    RecipeLayoutHelper.init();

    registry.addRecipeCategories(new CategoryStructurePreview());

    for (DynamicMachine machine : MachineRegistry.getRegistry()) {
        CategoryDynamicRecipe recipe = new CategoryDynamicRecipe(machine);
        recipeCategories.put(machine, recipe);
        registry.addRecipeCategories(recipe);
    }
}
 
开发者ID:HellFirePvP,项目名称:ModularMachinery,代码行数:14,代码来源:ModIntegrationJEI.java

示例8: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry)
{
    registry.addRecipeCategories(QBarJEIRecipeCategory.builder(registry.getJeiHelpers().getGuiHelper())
            .background(GuiRollingMill.BACKGROUND).uid(QBarRecipeHandler.ROLLINGMILL_UID)
            .title("gui.rollingmill.name").u(46).v(16).width(91).height(54)
            .input(0, 19).output(69, 18).create());

    registry.addRecipeCategories(QBarJEIRecipeCategory.builder(registry.getJeiHelpers().getGuiHelper())
            .background(GuiSawMill.BACKGROUND).uid(QBarRecipeHandler.SAW_MILL_UID)
            .title("gui.sawmill.name").u(46).v(16).width(91).height(54)
            .input(0, 19).output(69, 18).create());
}
 
开发者ID:OPMCorp,项目名称:Qbar,代码行数:14,代码来源:QBarJEIPlugin.java

示例9: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry)
{
    IGuiHelper guiHelper = registry.getJeiHelpers().getGuiHelper();
    registry.addRecipeCategories(
            new AlloyFurnaceRecipeCategory(guiHelper),
            new CrusherRecipeCategory(guiHelper),
            new CrystallizerRecipeCategory(guiHelper)
    );
}
 
开发者ID:Lumaceon,项目名称:ClockworkPhase2,代码行数:11,代码来源:ClockworkPhase2JEIPlugin.java

示例10: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
	IGuiHelper guiHelper = registry.getJeiHelpers().getGuiHelper();
	registry.addRecipeCategories(new TransmutatorFuelCategory(guiHelper),
			new TransmutationCategory(guiHelper),
			new CrystallizerFuelCategory(guiHelper),
			new CrystallizationCategory(guiHelper),
			new RitualRecipeCategory(guiHelper),
			new EngraverRecipeCategory(guiHelper),
			new RendingRecipeCategory(guiHelper),
			new UpgradeRecipeCategory(guiHelper),
			new MaterializationRecipeCategory(guiHelper));
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:14,代码来源:ACJEIPlugin.java

示例11: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
    IGuiHelper guiHelper = registry.getJeiHelpers().getGuiHelper();
    registry.addRecipeCategories(new DawnstoneAnvilCategory(guiHelper), new AlchemicalMixerCategory(guiHelper));
}
 
开发者ID:DaedalusGame,项目名称:Soot,代码行数:6,代码来源:JEI.java

示例12: registerCategories

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
	registry.addRecipeCategories(new RitualCategory(registry.getJeiHelpers().getGuiHelper()));
	registry.addRecipeCategories(new SpinnerCategory(registry.getJeiHelpers().getGuiHelper()));
}
 
开发者ID:Um-Mitternacht,项目名称:Bewitchment,代码行数:6,代码来源:BewitchmentJEIPlugin.java

示例13: JEIMagicTableCategory

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
public JEIMagicTableCategory(String UID, IRecipeCategoryRegistration reg) {
	super(UID, reg);
}
 
开发者ID:kenijey,项目名称:harshencastle,代码行数:4,代码来源:JEIMagicTableCategory.java

示例14: JEIHereticRitualCategory

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
public JEIHereticRitualCategory(String UID, IRecipeCategoryRegistration reg) {
	super(UID, reg);
}
 
开发者ID:kenijey,项目名称:harshencastle,代码行数:4,代码来源:JEIHereticRitualCategory.java

示例15: JEICauldronCategory

import mezz.jei.api.recipe.IRecipeCategoryRegistration; //导入依赖的package包/类
public JEICauldronCategory(String UID, IRecipeCategoryRegistration reg) {
	super(UID, reg);
}
 
开发者ID:kenijey,项目名称:harshencastle,代码行数:4,代码来源:JEICauldronCategory.java


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