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