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


Java ItemList.items方法代码示例

本文整理汇总了Java中codechicken.nei.ItemList.items方法的典型用法代码示例。如果您正苦于以下问题:Java ItemList.items方法的具体用法?Java ItemList.items怎么用?Java ItemList.items使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在codechicken.nei.ItemList的用法示例。


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

示例1: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels()
{
    IngotCompressorRecipeHandler.afuels = new ArrayList<FuelPair>();
    for (ItemStack item : ItemList.items)
    {
        if (!IngotCompressorRecipeHandler.efuels.contains(Item.getIdFromItem(item.getItem())))
        {
            int burnTime = TileEntityFurnace.getItemBurnTime(item);
            if (burnTime > 0)
            {
                FuelPair fuelPair = new FuelPair(item.copy(), burnTime);
                fuelPair.stack.relx = 57;
                fuelPair.stack.rely = 83;
                IngotCompressorRecipeHandler.afuels.add(fuelPair);
            }
        }
    }
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:19,代码来源:IngotCompressorRecipeHandler.java

示例2: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels()
{
	afuels = new ArrayList<>();
	Set<Item> efuels = excludedFuels();

	for (ItemStack item : ItemList.items)
	{
		Block block = Block.getBlockFromItem(item.getItem());
		if (block instanceof BlockDoor)
		{
			continue;
		}

		if (efuels.contains(item.getItem()))
		{
			continue;
		}

		int burnTime = TileEntityBrickOven.getItemBurnTime(item);
		if (burnTime > 0)
		{
			afuels.add(new FuelPair(item.copy(), burnTime));
		}
	}
}
 
开发者ID:einsteinsci,项目名称:betterbeginnings-MC1.7,代码行数:26,代码来源:NEIBrickOvenRecipeHandler.java

示例3: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels()
{
	afuels = new ArrayList<>();
	Set<Item> efuels = excludedFuels();

	for (ItemStack item : ItemList.items)
	{
		Block block = Block.getBlockFromItem(item.getItem());
		if (block instanceof BlockDoor)
		{
			continue;
		}

		if (efuels.contains(item.getItem()))
		{
			continue;
		}

		int burnTime = TileEntitySmelter.getItemBurnTime(item);
		if (burnTime > 0)
		{
			afuels.add(new FurnaceRecipeHandler.FuelPair(item.copy(), burnTime));
		}
	}
}
 
开发者ID:einsteinsci,项目名称:betterbeginnings-MC1.7,代码行数:26,代码来源:NEISmelterRecipeHandler.java

示例4: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels()
{
	afuels = new ArrayList<>();
	Set<Item> efuels = excludedFuels();

	for (ItemStack item : ItemList.items)
	{
		Block block = Block.getBlockFromItem(item.getItem());
		if (block instanceof BlockDoor)
		{
			continue;
		}

		if (efuels.contains(item.getItem()))
		{
			continue;
		}

		int burnTime = TileEntityKiln.getItemBurnTime(item);
		if (burnTime > 0)
		{
			afuels.add(new FurnaceRecipeHandler.FuelPair(item.copy(), burnTime));
		}
	}
}
 
开发者ID:einsteinsci,项目名称:betterbeginnings-MC1.7,代码行数:26,代码来源:NEIKilnRecipeHandler.java

示例5: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels()
{
	afuels = new ArrayList<>();
	Set<Item> efuels = excludedFuels();

	for (ItemStack item : ItemList.items)
	{
		Block block = Block.getBlockFromItem(item.getItem());
		if (block instanceof BlockDoor)
		{
			continue;
		}

		if (efuels.contains(item.getItem()))
		{
			continue;
		}

		int burnTime = TileEntityCampfire.getBurnTimeForFuel(item);
		if (burnTime > 0)
		{
			afuels.add(new FuelPair(item.copy(), burnTime));
		}
	}
}
 
开发者ID:einsteinsci,项目名称:betterbeginnings-MC1.7,代码行数:26,代码来源:NEICampfireRecipeHandler.java

示例6: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels() {
    afuels = new ArrayList<FuelPair>();
    Set<Item> efuels = excludedFuels();
    for (ItemStack item : ItemList.items)
        if (!efuels.contains(item.getItem())) {
            int burnTime = TileEntityFurnace.getItemBurnTime(item);
            if (burnTime > 0)
                afuels.add(new FuelPair(item.copy(), burnTime));
        }
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:11,代码来源:FurnaceRecipeHandler.java

示例7: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels() {
    afuels = new ArrayList<FuelPair>();
    Set<Item> efuels = excludedFuels();
    for (ItemStack item : ItemList.items) {
        Block block = Block.getBlockFromItem(item.getItem());
        if (block instanceof BlockDoor)
            continue;
        if (efuels.contains(item.getItem()))
            continue;

        int burnTime = TileEntityFurnace.getItemBurnTime(item);
        if (burnTime > 0)
            afuels.add(new FuelPair(item.copy(), burnTime));
    }
}
 
开发者ID:SneakyTactician,项目名称:BIGB,代码行数:16,代码来源:FurnaceRecipeHandler.java

示例8: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels() {
    afuels = new ArrayList<FuelPair>();
    Set<Item> efuels = excludedFuels();
    for (ItemStack item : ItemList.items)
        if (!efuels.contains(item.getItem())) {
            int burnTime = TileEntityInfusionAltar.isMagicalItem(item);
            if (burnTime > 0)
                afuels.add(new FuelPair(item, burnTime));
        }
}
 
开发者ID:BRForgers,项目名称:DynamicCraft,代码行数:11,代码来源:InfusionAltarHandler.java

示例9: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels() {
    afuels = new ArrayList<FuelPair>();
    Set<Item> efuels = excludedFuels();
    for (ItemStack item : ItemList.items)
        if (!efuels.contains(item.getItem())) {
            int burnTime = TileChemicalExtractor.getItemBurnTime(item);
            if (burnTime > 0)
                afuels.add(new FuelPair(item.copy(), burnTime));
        }
}
 
开发者ID:jasonmpen,项目名称:CarbonMod,代码行数:11,代码来源:ChemicalExtractorRecipeHandler.java

示例10: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels() {
    afuels = new ArrayList<FuelPair>();
    Set<Item> efuels = excludedFuels();
    for (ItemStack item : ItemList.items)
        if (!efuels.contains(item.getItem())) {
            int burnTime = TileCompressionChamber.getItemBurnTime(item);
            if (burnTime > 0)
                afuels.add(new FuelPair(item.copy(), burnTime));
        }
}
 
开发者ID:jasonmpen,项目名称:CarbonMod,代码行数:11,代码来源:CompressionChamberRecipeHandler.java

示例11: newInstance

import codechicken.nei.ItemList; //导入方法依赖的package包/类
@Override
public TemplateRecipeHandler newInstance() {
    for (ItemStack stack : ItemList.items) {
        if (stack != null && stack.getItem() instanceof ItemMoarSign) {
            moarSigns.add(stack);
        }
    }

    return super.newInstance();
}
 
开发者ID:GoryMoon,项目名称:MoarSigns,代码行数:11,代码来源:NEIShapedMoarSignHandler.java

示例12: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels()
{        
    afuels = new ArrayList<FuelPair>();
    for(ItemStack item : ItemList.items)
    {
        if(!efuels.contains(item.itemID))
        {
            int burnTime = TileEntityKilnSmeltery.getItemBurnTime(item);
            if(burnTime > 0)
                afuels.add(new FuelPair(item.copy(), burnTime));
        }
    }
}
 
开发者ID:scott181182,项目名称:NeoCraft,代码行数:14,代码来源:KilnSmelteryNEI.java

示例13: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
private static void findFuels()
{        
    afuels = new ArrayList<FuelPair>();
    for(ItemStack item : ItemList.items)
    {
        if(!efuels.contains(item.itemID))
        {
            int burnTime = TileEntityKilnBakery.getItemBurnTime(item);
            if(burnTime > 0) { afuels.add(new FuelPair(item.copy(), burnTime)); }
        }
    }
}
 
开发者ID:scott181182,项目名称:NeoCraft,代码行数:13,代码来源:KilnBakeryNEI.java

示例14: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
protected void findFuels()
{
    IceBoxHandler.afuels = new ArrayList<LocalFuelPair>();
    for (final ItemStack item : ItemList.items)
    {
        if (!IceBoxHandler.efuels.contains(item.itemID))
        {
            final int burnTime = getItemBurnTime(item);
            if (burnTime > 0)
            {
                IceBoxHandler.afuels.add(new LocalFuelPair(item.copy(), burnTime));
            }
        }
    }
}
 
开发者ID:TeamMetallurgy,项目名称:Agriculture,代码行数:16,代码来源:IceBoxHandler.java

示例15: findFuels

import codechicken.nei.ItemList; //导入方法依赖的package包/类
protected void findFuels()
{
    OvenHandler.afuels = new ArrayList<LocalFuelPair>();
    for (final ItemStack item : ItemList.items)
    {
        if (!OvenHandler.efuels.contains(item.itemID))
        {
            final int burnTime = getItemBurnTime(item);
            if (burnTime > 0)
            {
                OvenHandler.afuels.add(new LocalFuelPair(item.copy(), burnTime));
            }
        }
    }
}
 
开发者ID:TeamMetallurgy,项目名称:Agriculture,代码行数:16,代码来源:OvenHandler.java


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