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


Java CompressorRecipes类代码示例

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


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

示例1: init

import micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes; //导入依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerMercury.idMercuryEnabled) {
		MercuryCore.planetMercury = (Planet) new Planet("mercury").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(2.0F).setRelativeSize(0.5319F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.5F, 0.5F)).setRelativeOrbitTime(0.24096385542168674698795180722892F);
		MercuryCore.planetMercury.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/mercury.png"));
		MercuryCore.planetMercury.setDimensionInfo(ConfigManagerMercury.idDimensionMercury, WorldProviderMercury.class).setTierRequired(2);
		MercuryCore.planetMercury.atmosphereComponent(IAtmosphericGas.CO2).atmosphereComponent(IAtmosphericGas.HELIUM).atmosphereComponent(IAtmosphericGas.ARGON);

		GalaxyRegistry.registerPlanet(MercuryCore.planetMercury);

		GalacticraftRegistry.registerTeleportType(WorldProviderMercury.class, new TeleportTypeMercury());

		GalacticraftRegistry.registerRocketGui(WorldProviderMercury.class, new ResourceLocation(MercuryCore.TEXTURE_PREFIX + "textures/gui/mercuryRocketGui.png"));

		CompressorRecipes.addShapelessRecipe(new ItemStack(MercuryItems.mercuryBasicItem, 2, 1), new ItemStack(MercuryItems.mercuryBasicItem, 1, 0));

		CompressorRecipes.addShapelessRecipe(new ItemStack(MercuryItems.mercuryBasicItem, 3, 2), new ItemStack(MercuryItems.mercuryBasicItem, 1, 1), new ItemStack(MercuryItems.mercuryBasicItem, 1, 0), new ItemStack(MercuryItems.mercuryBasicItem, 1, 1));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:26,代码来源:MercuryCore.java

示例2: init

import micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes; //导入依赖的package包/类
@Override
public void init(FMLInitializationEvent event)
{
    this.registerMicroBlocks();
	SchematicRegistry.registerSchematicRecipe(new SchematicTier2Rocket());
    SchematicRegistry.registerSchematicRecipe(new SchematicCargoRocket());

    GalacticraftCore.packetPipeline.addDiscriminator(6, PacketSimpleMars.class);

    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();

    MarsModule.planetMars = (Planet) new Planet("mars").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.67F, 0.1F, 0.1F).setPhaseShift(0.1667F).setRelativeSize(0.5319F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(1.25F, 1.25F)).setRelativeOrbitTime(1.8811610076670317634173055859803F);
    MarsModule.planetMars.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/mars.png"));
    MarsModule.planetMars.setDimensionInfo(ConfigManagerMars.dimensionIDMars, WorldProviderMars.class).setTierRequired(2);
    MarsModule.planetMars.atmosphereComponent(IAtmosphericGas.CO2).atmosphereComponent(IAtmosphericGas.ARGON).atmosphereComponent(IAtmosphericGas.NITROGEN);

    GalaxyRegistry.registerPlanet(MarsModule.planetMars);
    GalacticraftRegistry.registerTeleportType(WorldProviderMars.class, new TeleportTypeMars());
    GalacticraftRegistry.registerRocketGui(WorldProviderMars.class, new ResourceLocation(MarsModule.ASSET_PREFIX, "textures/gui/marsRocketGui.png"));
    GalacticraftRegistry.addDungeonLoot(2, new ItemStack(MarsItems.schematic, 1, 0));
    GalacticraftRegistry.addDungeonLoot(2, new ItemStack(MarsItems.schematic, 1, 1));
    GalacticraftRegistry.addDungeonLoot(2, new ItemStack(MarsItems.schematic, 1, 2));
    GalacticraftRegistry.addDungeonLoot(3, new ItemStack(MarsItems.schematic, 1, 2));

    CompressorRecipes.addShapelessRecipe(new ItemStack(MarsItems.marsItemBasic, 1, 3), new ItemStack(GCItems.heavyPlatingTier1), new ItemStack(GCItems.meteoricIronIngot, 1, 1));
    CompressorRecipes.addShapelessRecipe(new ItemStack(MarsItems.marsItemBasic, 1, 5), new ItemStack(MarsItems.marsItemBasic, 1, 2));
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:30,代码来源:MarsModule.java

示例3: setConfigurableRecipes

import micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes; //导入依赖的package包/类
public static void setConfigurableRecipes()
{
	ItemStack solarPanels = new ItemStack(GCItems.basicItem, 9, 12);
	ItemStack basicWafers = new ItemStack(GCItems.basicItem, 3, 13);
	ItemStack advancedWafers = new ItemStack(GCItems.basicItem, 1, 14);
	
	CircuitFabricatorRecipes.removeRecipe(solarPanels);
	CircuitFabricatorRecipes.removeRecipe(basicWafers);
	CircuitFabricatorRecipes.removeRecipe(advancedWafers);
	ArrayList<ItemStack> silicons = OreDictionary.getOres(ConfigManagerCore.otherModsSilicon);
	int siliconCount = silicons.size();
	for (int j = 0; j <= siliconCount; j++)
	{
		ItemStack silicon;
		if (j == 0) silicon = new ItemStack(GCItems.basicItem, 1, 2);
		else silicon = silicons.get(j - 1); 
		CircuitFabricatorRecipes.addRecipe(solarPanels, new ItemStack[] { new ItemStack(Items.diamond), silicon, silicon, new ItemStack(Items.redstone), new ItemStack(Items.dye, 1, 4) });
		CircuitFabricatorRecipes.addRecipe(basicWafers, new ItemStack[] { new ItemStack(Items.diamond), silicon, silicon, new ItemStack(Items.redstone), new ItemStack(Blocks.redstone_torch) });
		CircuitFabricatorRecipes.addRecipe(advancedWafers, new ItemStack[] { new ItemStack(Items.diamond), silicon, silicon, new ItemStack(Items.redstone), new ItemStack(Items.repeater) });
	}

	CompressorRecipes.removeRecipe(new ItemStack(GCItems.basicItem, 1, 9));
	boolean steelDone = false;
	if (OreDictionary.getOres("ingotSteel").size() > 0)
	{
		CompressorRecipes.addShapelessRecipe(new ItemStack(GCItems.basicItem, 1, 9), "ingotSteel", "ingotSteel");
		steelDone = true;
	}
	if (!ConfigManagerCore.hardMode || !steelDone)
		CompressorRecipes.addShapelessRecipe(new ItemStack(GCItems.basicItem, 1, 9), Items.coal, new ItemStack(GCItems.basicItem, 1, 11), Items.coal);
	else
		CompressorRecipes.addShapelessAdventure(new ItemStack(GCItems.basicItem, 1, 9), Items.coal, new ItemStack(GCItems.basicItem, 1, 11), Items.coal);
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:34,代码来源:RecipeManagerGC.java

示例4: init

import micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes; //导入依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerVenus.idVenusEnabled) {
		VenusBlocks.init();
		VenusItems.init();

		VenusCore.planetVenus = (Planet) new Planet("venus").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(2.0F).setRelativeSize(0.5319F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.75F, 0.75F)).setRelativeOrbitTime(0.61527929901423877327491785323111F);
		VenusCore.planetVenus.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/venus.png"));
		VenusCore.planetVenus.setDimensionInfo(ConfigManagerVenus.idDimensionVenus, WorldProviderVenus.class).setTierRequired(2);
		VenusCore.planetVenus.atmosphereComponent(IAtmosphericGas.CO2).atmosphereComponent(IAtmosphericGas.HELIUM).atmosphereComponent(IAtmosphericGas.ARGON);

		GalaxyRegistry.registerPlanet(VenusCore.planetVenus);

		GalacticraftRegistry.registerTeleportType(WorldProviderVenus.class, new TeleportTypeVenus());

		GalacticraftRegistry.registerRocketGui(WorldProviderVenus.class, new ResourceLocation(VenusCore.TEXTURE_PREFIX + "textures/gui/venusRocketGui.png"));

		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 2, 5), new ItemStack(VenusItems.venusBasicItem, 1, 0));
		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 1, 5), new ItemStack(VenusItems.venusBasicItem, 1, 1));
		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 1, 6), new ItemStack(VenusItems.venusBasicItem, 1, 2));
		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 1, 7), new ItemStack(VenusItems.venusBasicItem, 1, 3));

		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 3, 8), new ItemStack(VenusItems.venusBasicItem, 1, 5), new ItemStack(VenusItems.venusBasicItem, 1, 6), new ItemStack(VenusItems.venusBasicItem, 1, 7));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:32,代码来源:VenusCore.java

示例5: init

import micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes; //导入依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerPluto.idPlutoEnabled) {
		PlutoCore.planetPluto = (Planet) new Planet("pluto").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(2.0F).setRelativeSize(0.5319F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(2.5F, 2.0F)).setRelativeOrbitTime(194.84118291347207009857612267251F);
		PlutoCore.planetPluto.setBodyIcon(new ResourceLocation(PlutoCore.ASSET_PREFIX, "textures/gui/celestialbodies/pluto.png"));
		PlutoCore.planetPluto.setDimensionInfo(ConfigManagerPluto.idDimensionPluto, WorldProviderPluto.class).setTierRequired(3); // 5
		PlutoCore.planetPluto.atmosphereComponent(IAtmosphericGas.CO2).atmosphereComponent(IAtmosphericGas.HELIUM).atmosphereComponent(IAtmosphericGas.ARGON);

		GalaxyRegistry.registerPlanet(PlutoCore.planetPluto);

		GalacticraftRegistry.registerTeleportType(WorldProviderPluto.class, new TeleportTypePluto());

		GalacticraftRegistry.registerRocketGui(WorldProviderPluto.class, new ResourceLocation(PlutoCore.TEXTURE_PREFIX + "textures/gui/plutoRocketGui.png"));

		CompressorRecipes.addShapelessRecipe(new ItemStack(PlutoItems.plutoBasicItem, 2, 3), new ItemStack(PlutoItems.plutoBasicItem, 1, 0));
		CompressorRecipes.addShapelessRecipe(new ItemStack(PlutoItems.plutoBasicItem, 1, 4), new ItemStack(PlutoItems.plutoBasicItem, 1, 2));
		CompressorRecipes.addShapelessRecipe(new ItemStack(PlutoItems.plutoBasicItem, 1, 5), new ItemStack(PlutoItems.plutoBasicItem, 1, 1));

		CompressorRecipes.addShapelessRecipe(new ItemStack(PlutoItems.plutoBasicItem, 3, 6), new ItemStack(PlutoItems.plutoBasicItem, 1, 3), new ItemStack(PlutoItems.plutoBasicItem, 1, 5), new ItemStack(PlutoItems.plutoBasicItem, 1, 4));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:28,代码来源:PlutoCore.java

示例6: updateInput

import micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes; //导入依赖的package包/类
public void updateInput()
{
    this.producingStack = CompressorRecipes.findMatchingRecipe(this.compressingCraftMatrix, this.worldObj);
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:5,代码来源:TileEntityElectricIngotCompressor.java

示例7: isItemCompressorInput

import micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes; //导入依赖的package包/类
public static boolean isItemCompressorInput(ItemStack stack)
{
    for (IRecipe recipe : CompressorRecipes.getRecipeList())
    {
        if (recipe instanceof ShapedRecipes)
        {
            for (ItemStack itemstack1 : ((ShapedRecipes) recipe).recipeItems)
            {
                if (stack.getItem() == itemstack1.getItem() && (itemstack1.getItemDamage() == 32767 || stack.getItemDamage() == itemstack1.getItemDamage()))
                {
                    return true;
                }
            }
        }
        else if (recipe instanceof ShapelessOreRecipe)
        {
            @SuppressWarnings("unchecked")
            ArrayList<Object> required = new ArrayList<Object>(((ShapelessOreRecipe) recipe).getInput());
            
            Iterator<Object> req = required.iterator();

            int match = 0;

            while (req.hasNext())
            {
                Object next = req.next();

                if (next instanceof ItemStack)
                {
                    if ( OreDictionary.itemMatches((ItemStack)next, stack, false)) match++;
                }
                else if (next instanceof ArrayList)
                {
                    Iterator<ItemStack> itr = ((ArrayList<ItemStack>)next).iterator();
                    while (itr.hasNext())
                    {
                        if (OreDictionary.itemMatches(itr.next(), stack, false))
                        {
                        	match++;
                        	break;
                        }
                    }
                }
            }
            
            if (match == 0) continue;
            
            if (match == 1) return true;
            
            return randnum.nextInt(match) == 0;
        }
    }

    return false;
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:56,代码来源:TileEntityIngotCompressor.java


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