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


Java Category类代码示例

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


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

示例1: init

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的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

示例2: init

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的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

示例3: init

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的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

示例4: addRecipes

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的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

示例5: callRegistry

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的package包/类
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");
}
 
开发者ID:cleverpanda,项目名称:SimpleCorn,代码行数:14,代码来源:MasterRegistrar.java

示例6: recipe

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的package包/类
/**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);
}
 
开发者ID:andykuo1,项目名称:mcplus_mods,代码行数:11,代码来源:MCP.java

示例7: init

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的package包/类
@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());
    
}
 
开发者ID:penguinsfan77,项目名称:VanillaImp,代码行数:15,代码来源:VanillaImprovements.java

示例8: init

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的package包/类
@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();
}
 
开发者ID:Tonius,项目名称:SimplyJetpacks,代码行数:9,代码来源:SimplyJetpacks.java

示例9: load

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的package包/类
@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");
}
 
开发者ID:tom5454,项目名称:Toms-Mod,代码行数:64,代码来源:CoreInit.java

示例10: init

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的package包/类
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();
	}
 
开发者ID:OreCruncher,项目名称:ThermalRecycling,代码行数:49,代码来源:Proxy.java

示例11: registerToSorter

import net.minecraftforge.oredict.RecipeSorter.Category; //导入依赖的package包/类
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");
}
 
开发者ID:tyronx,项目名称:vintagecraft,代码行数:6,代码来源:Recipes.java


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