本文整理汇总了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)));
}
示例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");
}
}
示例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
}));
}
示例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);
}
示例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");
}
示例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();
}
示例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();
}
示例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();
}
示例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:*");
}
}
示例10: onAvailable
import net.minecraftforge.oredict.RecipeSorter; //导入依赖的package包/类
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
if (shouldSortRecipies)
{
RecipeSorter.sortCraftManager();
}
FluidRegistry.validateFluidRegistry();
}
示例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)));
}
示例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, "");
}
示例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");
}
示例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();
}
示例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");
}