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


Java RecipeSorter类代码示例

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


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

示例1: addRecipes

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// Use a beacon for this (+ obsidian, tripwire hook... what else)
		GameRegistry.addRecipe(new ItemStack(this, 1 , this.getMaxDamage()), "bi ", "ico", " ot",
				'b', Blocks.beacon,
				'o', Blocks.obsidian,
				't', Blocks.tripwire_hook,
				'c', Items.cauldron,
				'i', Items.iron_ingot
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu

	RecipeSorter.register("quiverchevsky:recipehandler_roh_reload", Recipe_RayOfHope_Reload.class, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless");

	ArrayList list = new ArrayList();

	list.add(new ItemStack(Items.potionitem, 1, 8193));
	list.add(new ItemStack(Items.potionitem, 1, 8225));

	GameRegistry.addRecipe(new Recipe_RayOfHope_Reload(new ItemStack(this), list, new ItemStack(Items.potionitem, 1, 8193), new ItemStack(Items.potionitem, 1, 8225)));
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:26,代码来源:MediGun.java

示例2: registerRecipe

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
public static void registerRecipe(final Class<? extends IRecipe> recipe) {
    if (ExtraUtils.registeredRecipes.contains(recipe)) {
        return;
    }
    if (!recipe.getName().startsWith("com.rwtema.")) {
        return;
    }
    ExtraUtils.registeredRecipes.add(recipe);
    LogHelper.fine("Registering " + recipe.getSimpleName() + " to RecipeSorter", new Object[0]);
    if (ShapedOreRecipe.class.isAssignableFrom(recipe)) {
        RecipeSorter.register("extrautils:" + recipe.getSimpleName(), (Class)recipe, RecipeSorter.Category.SHAPED, "after:forge:shapedore");
    }
    else if (ShapelessOreRecipe.class.isAssignableFrom(recipe)) {
        RecipeSorter.register("extrautils:" + recipe.getSimpleName(), (Class)recipe, RecipeSorter.Category.SHAPELESS, "after:forge:shapelessore");
    }
    else if (ShapedRecipes.class.isAssignableFrom(recipe)) {
        RecipeSorter.register("extrautils:" + recipe.getSimpleName(), (Class)recipe, RecipeSorter.Category.SHAPED, "after:minecraft:shaped before:minecraft:shapeless");
    }
    else if (ShapelessRecipes.class.isAssignableFrom(recipe)) {
        RecipeSorter.register("extrautils:" + recipe.getSimpleName(), (Class)recipe, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless before:minecraft:bookcloning");
    }
    else {
        RecipeSorter.register("extrautils:" + recipe.getSimpleName(), (Class)recipe, RecipeSorter.Category.SHAPELESS, "after:forge:shapelessore");
    }
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:26,代码来源:ExtraUtils.java

示例3: addUpgradeRecipes

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
public static void addUpgradeRecipes() {
    ItemStack oakBarrel = TileEntityDayBarrel.makeBarrel(NORMAL, oakLog, oakPlank);
    oakBarrel.setItemDamage(OreDictionary.WILDCARD_VALUE);

    RecipeSorter.register("factorization:barrel_upgrade", BarrelUpgrade.class, RecipeSorter.Category.SHAPED, "");

    GameRegistry.addRecipe(new BarrelUpgrade(SILKY, 3, 3, new ItemStack[] {
            web, web, web,
            web, oakBarrel, web,
            web, web, web
    }));

    GameRegistry.addRecipe(new BarrelUpgrade(HOPPING, 1, 3, new ItemStack[] {
            hopper,
            oakBarrel,
            hopper
    }));

    GameRegistry.addRecipe(new BarrelUpgrade(STICKY, 1, 3, new ItemStack[] {
            slime_ball,
            oakBarrel,
            slime_ball
    }));
}
 
开发者ID:purpleposeidon,项目名称:Factorization,代码行数:25,代码来源:BarrelUpgradeRecipes.java

示例4: init

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
public static void init() {
    MinecraftForge.addGrassSeed(new ItemStack(ModItems.rice_seed), 9);
    RecipeSorter.register("dimsumcraft:knife", KnifeRecipes.class, Category.SHAPED, "after:minecraft:shaped");
    
    buhriMillRecipes.addRecipe(new ItemStack(ModItems.flour),                      Items.wheat);
    buhriMillRecipes.addRecipe(new ItemStack(ModItems.raw_ricemilk),               Items.bucket,        ModItems.fistful_of_rice);
    buhriMillRecipes.addRecipe(new ItemStack(ModItems.bucket_of_vegetable_oil),    Items.bucket,        Items.melon_seeds);
    buhriMillRecipes.addRecipe(new ItemStack(ModItems.bucket_of_vegetable_oil),    Items.bucket,        Items.pumpkin_seeds);
    buhriMillRecipes.addRecipe(new ItemStack(ModItems.bucket_of_vegetable_oil),    Items.bucket,        Items.wheat_seeds);
    buhriMillRecipes.addRecipe(new ItemStack(ModItems.bucket_of_vegetable_oil),    Items.bucket,        ModItems.rice_seed);
    choppingBoardRecipes.addRecipe(new ItemStack(ModItems.paste),                  Items.water_bucket,  ModItems.flour);
    soysauceFermenterRecipes.addRecipe(new ItemStack(ModItems.bucket_of_soysauce), Items.bucket,        ModItems.soybean);
    
    KnifeRecipes.addRecipe(new ItemStack(ModItems.dumpling_skin, 8),    new Object[] { "ABB",      'A', ModItems.knife, 'B', ModItems.paste });
    GameRegistry.addRecipe(new ItemStack(ModItems.fistful_of_rice),     new Object[] { "AA", "AA", 'A', ModItems.rice });
    GameRegistry.addShapelessRecipe(new ItemStack(ModItems.corn_seed),  new Object[] { ModItems.raw_corn });
    
    GameRegistry.addSmelting(ModItems.raw_chasiubao,    new ItemStack(ModItems.cooked_chasiubao),   0F);
    GameRegistry.addSmelting(ModItems.raw_hargow,       new ItemStack(ModItems.cooked_hargow),      0F);
    GameRegistry.addSmelting(ModItems.raw_lomaigai,     new ItemStack(ModItems.cooked_lomaigai),    0F);
    GameRegistry.addSmelting(ModItems.raw_ricemilk,     new ItemStack(ModItems.cooked_ricemilk),    0F);
    GameRegistry.addSmelting(ModItems.raw_shumai,       new ItemStack(ModItems.cooked_shumai),      0F);
    GameRegistry.addSmelting(ModItems.bucket_of_salt,   new ItemStack(Items.water_bucket),          0F);
}
 
开发者ID:Darkyoooooo,项目名称:DimsumCraft,代码行数:25,代码来源:ModRecipes.java

示例5: init

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
public void init() {
	MinecraftForge.EVENT_BUS.register(this);
	NetworkRegistry.INSTANCE.registerGuiHandler(ModCartLivery.instance, new GuiHandler());
	network.registerMessage(LiveryRequestHandler.class, LiveryRequestMessage.class, 0, Side.SERVER);
	network.registerMessage(LiveryUpdateHandler.class, LiveryUpdateMessage.class, 1, Side.CLIENT);
	network.registerMessage(LiveryGuiPatternHandler.class, LiveryGuiPatternMessage.class, 2, Side.SERVER);
	
	GameRegistry.registerItem(itemCutter, "cutter");
	GameRegistry.registerItem(itemSticker, "sticker");
	
	GameRegistry.addShapelessRecipe(new ItemStack(itemCutter), Items.shears, Items.paper);
	GameRegistry.addRecipe(new LiveryStickerColoringRecipe());
	RecipeSorter.register("cartlivery:coloring", LiveryStickerColoringRecipe.class, Category.SHAPELESS, "after:minecraft:shapeless");
	
	FMLInterModComms.sendMessage(ModCartLivery.MOD_ID, "addClassExclusion", "mods.railcraft.common.carts.EntityLocomotive");
	FMLInterModComms.sendMessage(ModCartLivery.MOD_ID, "addClassExclusion", "mods.railcraft.common.carts.EntityTunnelBore");
	FMLInterModComms.sendMessage(ModCartLivery.MOD_ID, "addBuiltInLiveries", "stripe1,stripe2,arrowup,dblarrow,corners1,bottom,thissideup,love,db,railtech,fragile");
}
 
开发者ID:octarine-noise,项目名称:CartLivery,代码行数:19,代码来源:CommonProxy.java

示例6: preInit

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
public static void preInit() {
	RecipeSorter.register(Ref.MODID+":witherTool", RecipeWitherTool.class, SHAPED, "after:forge:shapedore");
	
	witherWood = new ItemWitherWood();
	witherStone = new ItemWitherStone();
	witherIron = new ItemWitherIron();
	witherGold = new ItemWitherGold();
	witherDiamond = new ItemWitherDiamond();
	
	witherWood.preInit();
	witherStone.preInit();
	witherIron.preInit();
	witherGold.preInit();
	witherDiamond.preInit();
	
	//add recipes for the tools
	woodenRecipes();
	stoneRecipes();
	ironRecipes();
	goldRecipes();
	diamondRecipes();
}
 
开发者ID:Vanhal,项目名称:ProgressiveAutomation,代码行数:23,代码来源:WitherTools.java

示例7: init

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
public static void init() {
	if (EtFuturum.enableBanners) {
		RecipeSorter.register(Reference.MOD_ID + ".RecipeDuplicatePattern", RecipeDuplicatePattern.class, Category.SHAPELESS, "after:minecraft:shapeless");
		RecipeSorter.register(Reference.MOD_ID + ".RecipeAddPattern", RecipeAddPattern.class, Category.SHAPED, "after:minecraft:shaped");
	}

	registerOreDictionary();
	registerRecipes();
	tweakRecipes();
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:11,代码来源:ModRecipes.java

示例8: addRecipes

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
@Override
public void addRecipes() 
{ 
	if (Main.allowTurret)
	{
		// Uses a Wither Skull and two eyes of ender
		// Plus a frame, legs, weapon rail...

		GameRegistry.addRecipe(new ItemStack(this), "ewe", "ibi", "ppp",	
                'w', new ItemStack(Items.skull, 1, 1),	// Wither skull 
                'e', Items.ender_eye,
                'b', Blocks.iron_block,
                'i', Items.iron_ingot,
                'p', Blocks.sticky_piston
        );
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not allowed to be on the creative tab either
	
	RecipeSorter.register("quiverchevsky:recipehandler_aa_armor", Recipe_AA_Armor.class, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless");
	RecipeSorter.register("quiverchevsky:recipehandler_aa_mobility", Recipe_AA_Mobility.class, RecipeSorter.Category.SHAPED, "after:minecraft:shapeless");
	RecipeSorter.register("quiverchevsky:recipehandler_aa_storage", Recipe_AA_Storage.class, RecipeSorter.Category.SHAPED, "after:minecraft:shapeless");
	RecipeSorter.register("quiverchevsky:recipehandler_aa_weapon", Recipe_AA_Weapon.class, RecipeSorter.Category.SHAPED, "after:minecraft:shapeless");
	RecipeSorter.register("quiverchevsky:recipehandler_aa_riding", Recipe_AA_Riding.class, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless");
	RecipeSorter.register("quiverchevsky:recipehandler_aa_plating", Recipe_AA_Plating.class, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless");
	RecipeSorter.register("quiverchevsky:recipehandler_aa_com", Recipe_AA_Communication.class, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless");
	
	// Upgrades
	this.registerArmorRecipe();
	this.registerPlatingRecipe();
	this.registerMobilityRecipe();
	this.registerStorageRecipe();
	this.registerSecondRailRecipe();
	this.registerRidingRecipe();
	this.registerCommunicationRecipe();
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:36,代码来源:PackedUpAA.java

示例9: init

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event)
{
	if (!Loader.isModLoaded("potioncore"))
	{
		ForgeRegistries.RECIPES.register(new RecipeCombinedPotions().setRegistryName("combined_potions"));
		RecipeSorter.register(MODID + ":" + RecipeCombinedPotions.class.getSimpleName().toLowerCase(), RecipeCombinedPotions.class, RecipeSorter.Category.SHAPELESS, "after:*");
	}
	else
	{
		ForgeRegistries.RECIPES.register(new RecipeCombinedPotions2().setRegistryName("combined_potions"));
		RecipeSorter.register(MODID + ":" + RecipeCombinedPotions2.class.getSimpleName().toLowerCase(), RecipeCombinedPotions2.class, RecipeSorter.Category.SHAPELESS, "after:*");
	}
}
 
开发者ID:crazysnailboy,项目名称:CombinedPotions,代码行数:15,代码来源:CombinedPotions.java

示例10: onAvailable

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
    FluidRegistry.validateFluidRegistry();
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:10,代码来源:ForgeModContainer.java

示例11: preInit

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
@Override
public void preInit(FMLPreInitializationEvent event)
{
    playerHandler = new AsteroidsPlayerHandler();
    MinecraftForge.EVENT_BUS.register(playerHandler);
    FMLCommonHandler.instance().bus().register(playerHandler);
    AsteroidsEventHandler eventHandler = new AsteroidsEventHandler();
    MinecraftForge.EVENT_BUS.register(eventHandler);
    FMLCommonHandler.instance().bus().register(eventHandler);
    RecipeSorter.register("galacticraftmars:canisterRecipe", CanisterRecipes.class, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless");

    AsteroidsModule.fluidMethaneGas = registerFluid("methane", 1, 11, 295, true);
    AsteroidsModule.fluidAtmosphericGases = registerFluid("atmosphericgases", 1, 13, 295, true);
    AsteroidsModule.fluidLiquidMethane = registerFluid("liquidmethane", 450, 120, 109, false);
    //Data source for liquid methane: http://science.nasa.gov/science-news/science-at-nasa/2005/25feb_titan2/
    AsteroidsModule.fluidLiquidOxygen = registerFluid("liquidoxygen", 1141, 140, 90, false);
    AsteroidsModule.fluidOxygenGas = registerFluid("oxygen", 1, 13, 295, true);
    AsteroidsModule.fluidLiquidNitrogen = registerFluid("liquidnitrogen", 808, 130, 90, false);
    AsteroidsModule.fluidNitrogenGas = registerFluid("nitrogen", 1, 12, 295, true);
    registerFluid("carbondioxide", 2, 20, 295, true);
    registerFluid("hydrogen", 1, 1, 295, true);
    registerFluid("argon", 1, 4, 295, true);
    AsteroidsModule.fluidLiquidArgon = registerFluid("liquidargon", 900, 100, 87, false);
    registerFluid("helium", 1, 1, 295, true);

    //AsteroidsModule.fluidCO2Gas = FluidRegistry.getFluid("carbondioxide");

    AsteroidBlocks.initBlocks();
    AsteroidBlocks.registerBlocks();
    AsteroidBlocks.setHarvestLevels();
    AsteroidBlocks.oreDictRegistration();
    
    AsteroidsItems.initItems();
    
    FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(AsteroidsModule.fluidMethaneGas, 1000), new ItemStack(AsteroidsItems.methaneCanister, 1, 1), new ItemStack(GCItems.oilCanister, 1, ItemCanisterGeneric.EMPTY)));
    FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(AsteroidsModule.fluidLiquidOxygen, 1000), new ItemStack(AsteroidsItems.canisterLOX, 1, 1), new ItemStack(GCItems.oilCanister, 1, ItemCanisterGeneric.EMPTY)));
    FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(AsteroidsModule.fluidLiquidNitrogen, 1000), new ItemStack(AsteroidsItems.canisterLN2, 1, 1), new ItemStack(GCItems.oilCanister, 1, ItemCanisterGeneric.EMPTY)));
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:39,代码来源:AsteroidsModule.java

示例12: registerCraftingRecipes

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
public static void registerCraftingRecipes() {
	GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.TintedPlanks, 4), ModBlocks.TintedLog);

	GameRegistry.addRecipe(new RingAttachmentRecipe());
	RecipeSorter.register("ijc:ringAttach", RingAttachmentRecipe.class, RecipeSorter.Category.SHAPELESS, "");
	GameRegistry.addRecipe(new RingRemovalRecipe());
	RecipeSorter.register("ijc:ringRemove", RingRemovalRecipe.class, RecipeSorter.Category.SHAPELESS, "");
}
 
开发者ID:yolp900,项目名称:ItsJustaCharm1.10.2Dead,代码行数:9,代码来源:ModRecipes.java

示例13: init

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
@Mod.EventHandler
public void init(FMLInitializationEvent event)
{
    proxy.init();

    GameRegistry.addRecipe(new ItemStack(enderCard),
            "nnn",
            "ppp",
            "nnn",
            'n', Items.GOLD_NUGGET,
            'p', Items.PAPER);

    GameRegistry.addRecipe(new KeyRecipe());
    GameRegistry.addRecipe(new LockRecipe());
    GameRegistry.addRecipe(new PackRecipe());
    GameRegistry.addRecipe(new MakePrivateRecipe(enderKey));
    GameRegistry.addRecipe(new MakePrivateRecipe(enderLock));
    GameRegistry.addRecipe(new MakePrivateRecipe(enderPack));
    GameRegistry.addRecipe(new MakePrivateRecipe(enderKeyChest));
    GameRegistry.addRecipe(new ChangeColorsRecipe(enderKey, false));
    GameRegistry.addRecipe(new ChangeColorsRecipe(enderLock, false));
    GameRegistry.addRecipe(new ChangeColorsRecipe(enderPack, false));
    GameRegistry.addRecipe(new ChangeColorsRecipe(enderKeyChest, false));
    GameRegistry.addRecipe(new ChangeColorsRecipe(enderKey, true));
    GameRegistry.addRecipe(new ChangeColorsRecipe(enderLock, true));
    GameRegistry.addRecipe(new ChangeColorsRecipe(enderPack, true));
    GameRegistry.addRecipe(new ChangeColorsRecipe(enderKeyChest, true));

    RecipeSorter.register(MODID + ":ender_key", KeyRecipe.class, RecipeSorter.Category.SHAPED, "after:minecraft:shaped");
    RecipeSorter.register(MODID + ":ender_lock", LockRecipe.class, RecipeSorter.Category.SHAPED, "after:minecraft:shaped");
    RecipeSorter.register(MODID + ":ender_pack", PackRecipe.class, RecipeSorter.Category.SHAPED, "after:minecraft:shaped");
    RecipeSorter.register(MODID + ":make_private", MakePrivateRecipe.class, RecipeSorter.Category.SHAPED, "after:minecraft:shaped");
    RecipeSorter.register(MODID + ":change_color", ChangeColorsRecipe.class, RecipeSorter.Category.SHAPED, "after:minecraft:shaped");
}
 
开发者ID:gigaherz,项目名称:Enderthing,代码行数:35,代码来源:Enderthing.java

示例14: addRecipes

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
/** Add all valid block recipes */
public static void addRecipes() {

	// Everything Block Recipes
	GameRegistry.addRecipe(new EverythingBlockCraftingRecipes());
	GameRegistry.addRecipe(new EverythingBlockDecraftingRecipes());
	GameRegistry.addRecipe(new EverythingSlabCraftingRecipes());
	GameRegistry.addRecipe(new EverythingStairCraftingRecipes());
	GameRegistry.addRecipe(new EverythingStairDecraftingRecipes());
	GameRegistry.addRecipe(new EverythingWallCraftingRecipes());
	GameRegistry.addRecipe(new EverythingWallDecraftingRecipes());
	RecipeSorter.register(RefStrings.MODID + ":EBCrafting", EverythingBlockCraftingRecipes.class, Category.SHAPED, "after:minecraft:shaped");
	RecipeSorter.register(RefStrings.MODID + ":EBDecrafting", EverythingBlockDecraftingRecipes.class, Category.SHAPELESS, "after:minecraft:shapeless");
	RecipeSorter.register(RefStrings.MODID + ":EBSlabCrafting", EverythingSlabCraftingRecipes.class, Category.SHAPED, "after:minecraft:shaped");
	RecipeSorter.register(RefStrings.MODID + ":EBStairCrafting", EverythingStairCraftingRecipes.class, Category.SHAPED, "after:minecraft:shaped");
	RecipeSorter.register(RefStrings.MODID + ":EBStairDecrafting", EverythingStairDecraftingRecipes.class, Category.SHAPELESS, "after:minecraft:shapeless");
	RecipeSorter.register(RefStrings.MODID + ":EBWallCrafting", EverythingWallCraftingRecipes.class, Category.SHAPED, "after:minecraft:shaped");
	RecipeSorter.register(RefStrings.MODID + ":EBWallDecrafting", EverythingWallDecraftingRecipes.class, Category.SHAPELESS, "after:minecraft:shapeless");
	
	// direct the API to these recipes
	EverythingBlocksAPI.craftingRecipes = new EverythingBlockCraftingRecipes();
	EverythingBlocksAPI.decraftingRecipes = new EverythingBlockDecraftingRecipes();
	EverythingBlocksAPI.craftingRecipesSlabs = new EverythingSlabCraftingRecipes();
	EverythingBlocksAPI.craftingRecipesStairs = new EverythingStairCraftingRecipes();
	EverythingBlocksAPI.decraftingRecipesStairs = new EverythingStairDecraftingRecipes();
	EverythingBlocksAPI.craftingRecipesWalls = new EverythingStairCraftingRecipes();
	EverythingBlocksAPI.decraftingRecipesWalls = new EverythingStairDecraftingRecipes();
	
}
 
开发者ID:sblectric,项目名称:EverythingBlocks,代码行数:30,代码来源:EBCraftingManager.java

示例15: postInit

import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {
    configManager.processSetFiles();

    // Link in our recipes
    RecipeSorter.register("craftingharmonics:shaped_component",       ShapedComponentRecipe.class,
            SHAPED,    "before:minecraft:shaped");
    RecipeSorter.register("craftingharmonics:shapeless_component",    ShapelessComponentRecipe.class,
            SHAPELESS, "after:forge:shapedore before:minecraft:shapeless");

}
 
开发者ID:legendblade,项目名称:CraftingHarmonics,代码行数:12,代码来源:CraftingHarmonicsMod.java


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