net.minecraftforge.oredict.RecipeSorter Java Examples

The following examples show how to use net.minecraftforge.oredict.RecipeSorter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ModRecipes.java    From Et-Futurum with The Unlicense 5 votes vote down vote up
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();
}
 
Example #2
Source File: ModRecipes.java    From GardenCollection with MIT License 5 votes vote down vote up
private void addExtraWoodRecipes () {
    RecipeSorter.register("GardenTrees:WoodBlock", WoodBlockRecipe.class, RecipeSorter.Category.SHAPED, "after:minecraft:shaped");
    RecipeSorter.register("GardenTrees:WoodPost", WoodPostRecipe.class, RecipeSorter.Category.SHAPED, "after:minecraft:shaped");
    RecipeSorter.register("GardenTrees:WoodFence", WoodFenceRecipe.class, RecipeSorter.Category.SHAPED, "after:minecraft:shaped");

    for (Map.Entry<UniqueMetaIdentifier, Block> entry : WoodRegistry.instance().registeredTypes()) {
        UniqueMetaIdentifier id = entry.getKey();

        CraftingManager.getInstance().getRecipeList().add(new WoodPostRecipe(id));
        CraftingManager.getInstance().getRecipeList().add(new WoodFenceRecipe(id));
        CraftingManager.getInstance().getRecipeList().add(new WoodBlockRecipe(id));
    }
}
 
Example #3
Source File: SimplyJetpacks.java    From SimplyJetpacks with MIT License 5 votes vote down vote up
@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();
}
 
Example #4
Source File: Recipes.java    From OpenPeripheral-Addons with MIT License 5 votes vote down vote up
public static void register() {
	final ItemStack duckAntenna = MetasGeneric.duckAntenna.newItemStack();

	@SuppressWarnings("unchecked")
	final List<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();

	if (OpenPeripheralAddons.Blocks.pim != null) {
		recipeList.add(new ShapedOreRecipe(OpenPeripheralAddons.Blocks.pim, "ooo", "rcr", 'o', Blocks.obsidian, 'r', Items.redstone, 'c', Blocks.chest));
	}

	if (OpenPeripheralAddons.Blocks.sensor != null) {
		recipeList.add(new ShapedOreRecipe(OpenPeripheralAddons.Blocks.sensor, "ooo", " w ", "sss", 'o', Blocks.obsidian, 'w', "stickWood", 's', Blocks.stone_slab));
	}

	if (OpenPeripheralAddons.Blocks.glassesBridge != null) {
		recipeList.add(new ShapedOreRecipe(OpenPeripheralAddons.Blocks.glassesBridge, "sas", "ses", "srs", 's', Blocks.stone, 'r', Blocks.redstone_block, 'e', Items.ender_pearl, 'a', duckAntenna.copy()));
	}

	if (OpenPeripheralAddons.Blocks.selector != null) {
		recipeList.add(new ShapedOreRecipe(OpenPeripheralAddons.Blocks.selector, "sss", "scs", "sgs", 's', Blocks.stone, 'c', Blocks.trapped_chest, 'g', Blocks.glass_pane));
	}

	if (OpenPeripheralAddons.Items.glasses != null) {
		recipeList.add(new ShapedOreRecipe(OpenPeripheralAddons.Items.glasses, "igi", "aei", "prp", 'g', Blocks.glowstone, 'i', Items.iron_ingot, 'e', Items.ender_pearl, 'p', Blocks.glass_pane, 'r', Items.redstone, 'a', duckAntenna.copy()));
		recipeList.add(new ShapedOreRecipe(OpenPeripheralAddons.Items.glasses, "igi", "iea", "prp", 'g', Blocks.glowstone, 'i', Items.iron_ingot, 'e', Items.ender_pearl, 'p', Blocks.glass_pane, 'r', Items.redstone, 'a', duckAntenna.copy()));

		recipeList.add(new TerminalAddonRecipe());
		RecipeSorter.register("openperipheraladdons:terminal", TerminalAddonRecipe.class, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless");
	}

	if (OpenPeripheralAddons.Items.keyboard != null) {
		recipeList.add(new ShapelessOreRecipe(OpenPeripheralAddons.Items.keyboard, duckAntenna.copy(), Items.bone, Items.redstone, Items.ender_pearl, Items.slime_ball));
	}

	if (Loader.isModLoaded(Mods.COMPUTERCRAFT)) ModuleComputerCraft.registerRecipes(recipeList);
	if (Loader.isModLoaded(Mods.RAILCRAFT)) ModuleRailcraft.registerRecipes(recipeList);

}
 
Example #5
Source File: EnderStorageRecipe.java    From EnderStorage with MIT License 4 votes vote down vote up
public static void init() {
    EnderStorageRecipe instance = new EnderStorageRecipe();
    GameRegistry.addRecipe(instance);
    RecipeSorter.register("enderstorage:recolour", EnderStorageRecipe.class, Category.SHAPED, "");
    addNormalRecipies();
}