本文整理汇总了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);
}
示例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);
}
}
}
}
示例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);
}
}
示例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);
}
}
}
示例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);
}
示例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);
}