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


Java SieveRegistry类代码示例

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


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

示例1: SieveTConstruct

import exnihilo.registries.SieveRegistry; //导入依赖的package包/类
protected static void SieveTConstruct()
{
	if (Configurations.sieveOreBushes)
	{
		SieveRegistry.register(stone, 0, getIDs(Info.oreberrybush), 0, 256);	//Iron
		SieveRegistry.register(stone, 0, getIDs(Info.oreberrybush), 1, 256);	//Gold
		SieveRegistry.register(stone, 0, getIDs(Info.oreberrybush), 2, 256);	//Copper
		SieveRegistry.register(stone, 0, getIDs(Info.oreberrybush), 3, 256);	//Tin
		SieveRegistry.register(stone, 0, getIDs(Info.oreberrybush2), 0, 256);	//Aluminum
	}
	if (Configurations.sieveEssenceBushes)
	{
		SieveRegistry.register(stone, 0, getIDs(Info.oreberrybush2), 1, 128);
	}
	SieveRegistry.register(soil, 0, getIDs(Info.tinkerfood), 0, 4);
	SieveRegistry.register(soil, 0, getIDs(Info.materials), 1, 3);
	SieveRegistry.register(soil, 0, getIDs(Info.materials), 17, 10);
}
 
开发者ID:Zerokyuuni,项目名称:Ex-Aliquo,代码行数:19,代码来源:Sieving.java

示例2: NEISieveRecipeHandler

import exnihilo.registries.SieveRegistry; //导入依赖的package包/类
public NEISieveRecipeHandler() {

        outputId = "sieverecipes";

        if (others == null) {
            others = new ArrayList<PositionedStack>(4);
            Item sieve = ModId.Sieve.getItem();
            if (sieve != null) {
                for (int i = 0; i < 4; i++) {
                    others.add(new PositionedStack(new ItemStack(sieve, 1, i), 43, 34, false));
                }
            }
        }

        if (recipes == null) {
            recipes = new RewardRecipes();
            for (SiftReward reward : SieveRegistry.rewards) {
                if (reward.sourceID != 0 && reward.id != 0) {
                    recipes.add(reward);
                }
            }
        }

    }
 
开发者ID:RedRockFowl,项目名称:ex-nihilo-nei,代码行数:25,代码来源:NEISieveRecipeHandler.java

示例3: ExTinkerSieves

import exnihilo.registries.SieveRegistry; //导入依赖的package包/类
public static void ExTinkerSieves()
{
	if (Configurations.sieveNetherOres)
	{
		SieveRegistry.register(netherrack, 0, Registries.cobaltOreItem.itemID, 0, 96);
		SieveRegistry.register(netherrack, 0, Registries.arditeOreItem.itemID, 0, 96);
		SieveRegistry.register(soulsand, 0, Registries.cobaltOreItem.itemID, 1, 96);
		SieveRegistry.register(soulsand, 0, Registries.arditeOreItem.itemID, 1, 96);
	}
}
 
开发者ID:Psioptic,项目名称:Ex-AliquoRedux,代码行数:11,代码来源:Sieving.java

示例4: CheckMetals

import exnihilo.registries.SieveRegistry; //导入依赖的package包/类
public static void CheckMetals()
{
	for (Metals metals : Metals.values())
	{
		ArrayList<ItemStack> ores = OreDictionary.getOres(metals.ore);
		if (!ores.isEmpty())
		{
			for (int i = 0; i < metals.dropgroup.length; i++)
			{
				if (metals.meta == -1)
				{
					SieveRegistry.register(metals.dropgroup[i], 0, metals.partial.itemID, i, metals.chance);
				}
				else
				{
					SieveRegistry.register(metals.dropgroup[i], 0, metals.partial.itemID, metals.meta, metals.chance);
				}
			}
			
			for (int i = 0; i < ores.size() ;i++)
			{
				if (metals.meta == -1)
				{
					HammerRegistry.registerOre(ores.get(i).itemID, ores.get(i).getItemDamage(), metals.partial.itemID, 0);
				}
				else
				{
					HammerRegistry.registerOre(ores.get(i).itemID, ores.get(i).getItemDamage(), metals.partial.itemID, metals.meta);
				}
			}
			
			if (metals.full != Block.redstoneWire)
			{
				for (int i = 0; i < metals.dropgroup.length; i++)
				{
					OreDictionary.registerOre(metals.ore, new ItemStack(metals.full,1,i));
				}
			}
		}
		
		ArrayList<ItemStack> ingots = OreDictionary.getOres(metals.ingot);
		if (metals.smeltnum > 0 && !ingots.isEmpty())
		{
			GameRegistry.addSmelting(metals.full.blockID, ingots.get(0), 3);
		}
	}
}
 
开发者ID:Zerokyuuni,项目名称:Ex-Aliquo,代码行数:48,代码来源:OreDictDrops.java

示例5: registerGeneralSieving

import exnihilo.registries.SieveRegistry; //导入依赖的package包/类
public static void registerGeneralSieving()
{
	SieveRegistry.register(Block.lavaStill.blockID, 0, Item.fishCooked.itemID, 0, 1);
	SieveRegistry.register(Block.waterStill.blockID, 0, Item.fishRaw.itemID, 0, 1);
	SieveRegistry.register(Block.dragonEgg.blockID, 0, Registries.dragonEgg.itemID, 0, 1);
}
 
开发者ID:Zerokyuuni,项目名称:Ex-Aliquo,代码行数:7,代码来源:GeneralAliquo.java

示例6: registerGeneralSieving

import exnihilo.registries.SieveRegistry; //导入依赖的package包/类
public static void registerGeneralSieving()
{
	SieveRegistry.register(Block.lavaStill.blockID, 0, Item.fishCooked.itemID, 0, 1);
	SieveRegistry.register(Block.waterStill.blockID, 0, Item.fishRaw.itemID, 0, 1);
}
 
开发者ID:Psioptic,项目名称:Ex-AliquoRedux,代码行数:6,代码来源:GeneralAliquo.java


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