Java 类net.minecraftforge.oredict.RecipeSorter.Category 实例源码

项目:DimsumCraft    文件:ModRecipes.java   
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);
}
项目:CartLivery    文件:CommonProxy.java   
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");
}
项目:connor41-etfuturum2    文件:ModRecipes.java   
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();
}
项目:EverythingBlocks    文件:EBCraftingManager.java   
/** 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();

}
项目:SimpleCorn    文件:MasterRegistrar.java   
public static void callRegistry(FMLPreInitializationEvent e) {
    register(e, ObjectList.getItemList());
    register(e, ObjectList.getBlockList());
    Recipes.register();
    if(e.getSide() == Side.CLIENT){
            RenderingRegistry.registerEntityRenderingHandler(MyEntityFireworkRocket.class, RenderFireworkEntity.INSTANCE);
    }
    EntityRegistry.registerModEntity(new ResourceLocation("simplecorn:entitypopfirework"),MyEntityFireworkRocket.class, "entitypopfirework", 132, Corn.instance, 64, 3, true);

    MapGenStructureIO.registerStructureComponent(ComponentCornField.class, "Vicf");
    VillagerRegistry.instance().registerVillageCreationHandler(new CornWorldGen());
    RecipeSorter.register("simplecorn:fireworks", MyRecipeFireworks.class, Category.SHAPELESS, "after:minecraft:fireworks");
}
项目:Et-Futurum    文件:ModRecipes.java   
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();
}
项目:mcplus_mods    文件:MCP.java   
/**Register the recipe*/
public static final void recipe(IRecipe parRecipe)
{
    ModContainer mod = MCP.mod();
    if (RecipeSorter.getCategory(parRecipe) == Category.UNKNOWN)
    {
        RecipeSorter.register(Assets.resource(mod.getModId(), StringUtil.camelToUnderscore(parRecipe.getClass().getSimpleName())), parRecipe.getClass(), Category.SHAPED, "before:minecraft:shapeless");
    }
    GameRegistry.addRecipe(parRecipe);
}
项目:VanillaImp    文件:VanillaImprovements.java   
@Mod.EventHandler
public void init(FMLInitializationEvent event) {

    //Register recipes
    RecipeSorter.register("randomstuff:colored", ColoredItemsRecipe.class, Category.SHAPED, "before:forge:shapedore");
    RecipeSorter.register("randomstuff:recolored", ReColoredItemsRecipe.class, Category.SHAPELESS, "before:forge:shapedore after:randomstuff:colored");
    ModItemRecipes.init();
    ModBlockRecipes.init();
    ModOreDictionary.init();

    //Register event handlers
    FMLCommonHandler.instance().bus().register(new ItemEventHandler());

}
项目:SimplyJetpacks    文件:SimplyJetpacks.java   
@EventHandler
public static void init(FMLInitializationEvent evt) {
    RecipeSorter.register(SimplyJetpacks.MODID + ":upgrading", UpgradingRecipe.class, Category.SHAPED, "after:minecraft:shaped");
    proxy.registerHandlers();
    PacketHandler.init();
    ModItems.init();
    ModEnchantments.init();
}
项目:Toms-Mod    文件:CoreInit.java   
@EventHandler
public static void load(FMLInitializationEvent event) {
    log.info("Start Initialization");
    long tM = System.currentTimeMillis();
    isInit = true;
    proxy.init();
    log.info("Registering world generator...");
    GameRegistry.registerWorldGenerator(WorldGen.instance, 1);
    initializeFluidBlocksAndBuckets();
    OreDict.init();
    if (Config.enableGrassDrops) {
        log.info("Adding Grass Drops...");
        MinecraftForge.addGrassSeed(new ItemStack(Items.FLINT), 15);
        MinecraftForge.addGrassSeed(new ItemStack(Items.STICK), 15);
    }
    log.info("Processing " + initRunnables.size() + " task(s)...");
    while (!initRunnables.isEmpty())
        initRunnables.pop().run();
    log.info("Task(s) completed");
    TMResource.IRON.registerOre(-1, new ItemStack(oreNether, 1, 0));
    TMResource.GOLD.registerOre(-1, new ItemStack(oreNether, 1, 1));
    TMResource.LAPIS.registerOre(-1, new ItemStack(oreNether, 1, 2));
    TMResource.REDSTONE.registerOre(-1, new ItemStack(oreNether, 1, 3));
    TMResource.DIAMOND.registerOre(-1, new ItemStack(oreNether, 1, 4));
    TMResource.GOLD.registerOre(1, new ItemStack(oreEnd, 1, 0));
    TMResource.DIAMOND.registerOre(1, new ItemStack(oreEnd, 1, 1));
    Capabilities.init();
    if (isCCLoaded)
        initComputerCraft();
    CraftingMaterial.init();
    DefenseInit.registerPlaceables();
    WorldHandler.init();
    // MaterialOverride.override();
    MinecraftForge.EVENT_BUS.register(com.tom.handler.EventHandler.instance);
    log.info("Loading Vanilla Material Blocks");
    TMResource.DIAMOND.storageBlock = new EmptyEntry<>(Blocks.DIAMOND_BLOCK, 0);
    TMResource.IRON.storageBlock = new EmptyEntry<>(Blocks.IRON_BLOCK, 0);
    TMResource.GOLD.storageBlock = new EmptyEntry<>(Blocks.GOLD_BLOCK, 0);
    TMResource.COAL.storageBlock = new EmptyEntry<>(Blocks.COAL_BLOCK, 0);
    TMResource.GLOWSTONE.storageBlock = new EmptyEntry<>(Blocks.GLOWSTONE, 0);
    TMResource.LAPIS.storageBlock = new EmptyEntry<>(Blocks.LAPIS_BLOCK, 0);
    TMResource.NETHER_QUARTZ.storageBlock = new EmptyEntry<>(Blocks.QUARTZ_BLOCK, 0);
    TMResource.OBSIDIAN.storageBlock = new EmptyEntry<>(Blocks.OBSIDIAN, 0);
    TMResource.REDSTONE.storageBlock = new EmptyEntry<>(Blocks.REDSTONE_BLOCK, 0);
    VillageInit.init();
    log.info("Loading Recipes");
    CraftingRecipes.init();
    FurnaceRecipes.init();
    if (Config.enableResearchSystem)
        ResearchLoader.init();
    AdvancedCraftingRecipes.init();
    TMResource.loadRecipes();
    MachineCraftingHandler.loadRecipes();
    AchievementHandler.init();
    FuelHandler.init();
    RecipeSorter.register("tomsmod:wrenchShapeless", WrenchShapelessCraftingRecipe.class, Category.SHAPELESS, "after:minecraft:shapeless");
    // loadThaumcraft();
    Config.printWarnings();
    isInit = false;
    hadInit = true;
    long time = System.currentTimeMillis() - tM;
    log.info("Initialization took in " + time + " milliseconds");
}
项目:ThermalRecycling    文件:Proxy.java   
public void init(final FMLInitializationEvent event) {

        RecipeSorter.register(ThermalRecycling.MOD_ID + ".UpgradeRecipe", UpgradeRecipe.class, Category.SHAPED, "");

        ItemManager.register();
        BlockManager.register();
        AchievementManager.registerAchievements();
        EnchantManager.register();
        GuiHandler.register();
        FuelHandler.register();

        BlockHarvestEventHandler.register();

        // Hook for worm drop
        if (ModOptions.getWormDropChance() != Integer.MAX_VALUE && ModOptions.getWormDropChance() != 0)
            BlockHarvestEventHandler.addHook(new WormDropHandler());

        // Hook to prevent vending machines from being broken
        BlockBreakEventHandler.register();
        BlockBreakEventHandler.addHook(new VendingMachineBreakHandler());

        // Hook various entity events
        EntityEventHandler.register();

        // Breeding Manager hook
        if (ModOptions.getEnableBreedingChanges())
            BreedingItemManager.register();

        // Village generation
        if (ModOptions.getEnableVillageGen())
            VendingVillageStructureHandler.register();

        if (!ModOptions.getRubblePileDisable())
            BiomeDecorationHandler.register();

        if (ModOptions.getEnergeticRedstoneChance() > 0)
            EnergeticRedstoneOreHandler.register();

        if (!ModOptions.getDisableAnvilRepair())
            AnvilHandler.register();

        EntityItemMergeHandler.register();

        if(ModOptions.getEnableWaila())
            WailaHandler.register();

        MineTweakerSupport.initialize();
    }
项目:vintagecraft    文件:Recipes.java   
static void registerToSorter() {
    RecipeSorter.register("vintagecraft:toolsupportedrecipe", ToolSupportedRecipe.class, Category.SHAPED, "after:minecraft:shaped");
    RecipeSorter.register("vintagecraft:shapelessrecipesvc", ShapelessRecipesVC.class, Category.SHAPELESS, "after:minecraft:shaped");
    RecipeSorter.register("vintagecraft:shapedrecipesvc", ShapedRecipesVC.class, Category.SHAPED, "after:minecraft:shaped");
}