當前位置: 首頁>>代碼示例>>Java>>正文


Java CompressorRecipes.addShapelessRecipe方法代碼示例

本文整理匯總了Java中micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes.addShapelessRecipe方法的典型用法代碼示例。如果您正苦於以下問題:Java CompressorRecipes.addShapelessRecipe方法的具體用法?Java CompressorRecipes.addShapelessRecipe怎麽用?Java CompressorRecipes.addShapelessRecipe使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes的用法示例。


在下文中一共展示了CompressorRecipes.addShapelessRecipe方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的micdoodle8.mods.galacticraft.api.recipe.CompressorRecipes.addShapelessRecipe方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。