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


Java ItemTerra.addSizeInformation方法代码示例

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


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

示例1: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
    ItemTerra.addSizeInformation(is, arraylist);

    if (is.hasTagCompound())
    {
        if(TFC_ItemHeat.hasTemp(is))
        {
            float temp = TFC_ItemHeat.getTemp(is);
            float meltTemp = TFC_ItemHeat.isCookable(is);

            if(meltTemp != -1)
            {
                if(is.getItem() == TFCItems.stick)
                    arraylist.add(TFC_ItemHeat.getHeatColorTorch(temp, meltTemp));
                else
                    arraylist.add(TFC_ItemHeat.getHeatColor(temp, meltTemp));
            }
        }
    }
}
 
开发者ID:Bunsan,项目名称:TerraFirmaStuff,代码行数:24,代码来源:ItemBlockBase.java

示例2: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@SuppressWarnings({ "unchecked", "rawtypes"})
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
	ItemTerra.addSizeInformation(is, arraylist);

	if (is.hasTagCompound())
	{
		ItemFoodTFC.addFoodHeatInformation(is, arraylist);
		addFoodInformation(is, player, arraylist);
		
		if(Settings.diminishingReturns)
		{
			if(this.isEdible(is))
				CWTFC_Core.getFoodUse(is, player, arraylist);
			else
				arraylist.add(EnumChatFormatting.DARK_GRAY + "Not currently edible");
		}
	}
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:21,代码来源:ItemTFCMealTransform.java

示例3: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{		
	ItemTerra.addSizeInformation(is, arraylist);
	arraylist.add(ItemFoodTFC.getFoodGroupName(getFoodGroup()));
	

	if (is.hasTagCompound())
	{
		ItemFoodTFC.addFoodHeatInformation(is, arraylist);
		addFoodInformation(is, player, arraylist);
		
		if(Settings.diminishingReturns)
		{
			if(isEdible(is))
				CWTFC_Core.getFoodUse(is, player, arraylist);
			else
				arraylist.add(EnumChatFormatting.DARK_GRAY + "Not currently edible");
		}
	}
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:23,代码来源:ItemTFCFoodTransform.java

示例4: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
    int meta = is.getItemDamage();
    String tip = (meta == 0 ? "Place exposed to sun" : "Break to achieve paper");
    arraylist.add(tip);
	ItemTerra.addSizeInformation(is, arraylist);
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:9,代码来源:ItemBlockWoodenPressWet.java

示例5: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag) 
{

	ItemTerra.addSizeInformation(is, arraylist);

	if(is.getItem() instanceof ICausesDamage)
		arraylist.add(EnumChatFormatting.AQUA + TFC_Core.translate(((ICausesDamage) this).getDamageType().toString()));
	addExtraInformation(is, player, arraylist);
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:10,代码来源:ItemWoodenClub.java

示例6: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
	if(TFC_ItemHeat.hasTemp(is))
	{
		arraylist.add(TFC_ItemHeat.getHeatColor(TFC_ItemHeat.getTemp(is), TFC_ItemHeat.isCookable(is)));
	}
	ItemTerra.addSizeInformation(is, arraylist);
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:11,代码来源:ItemWoodenTwig.java

示例7: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{		
	ItemTerra.addSizeInformation(is, arraylist);		
	
	addExtraInformation(is, player, arraylist);
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:9,代码来源:ItemGourdBlock.java

示例8: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{		
	ItemTerra.addSizeInformation(is, arraylist);
	arraylist.add(ItemFoodTFC.getFoodGroupName(this.getFoodGroup()));
	

	if (is.hasTagCompound())
	{
		ItemFoodTFC.addFoodHeatInformation(is, arraylist);
		addFoodInformation(is, player, arraylist);
		
		if(Settings.diminishingReturns)
		{
			if(this.isEdible(is))
				CWTFC_Core.getFoodUse(is, player, arraylist);
			else
				arraylist.add(EnumChatFormatting.DARK_GRAY + "Not currently edible");
		}
	}
	else
	{
		arraylist.add(TFC_Core.translate("gui.badnbt"));
		TerraFirmaCraft.LOG.error(TFC_Core.translate("error.error") + " " + is.getUnlocalizedName() + " " +
				TFC_Core.translate("error.NBT") + " " + TFC_Core.translate("error.Contact"));
	}
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:29,代码来源:ItemTFCAdjutableFood.java

示例9: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
	ItemTerra.addSizeInformation(is, arraylist);

	SkillRank rank = TFC_Core.getSkillStats(player).getSkillRank(Global.SKILL_AGRICULTURE);
	
	CWTFCCropIndex id = CropManager.getInstance().getCropFromId(cropId);
	int nutrient = 0;
	
	if(id != null)
		nutrient = id.getCycleType();
	
	
	if (rank == SkillRank.Expert || rank == SkillRank.Master)
	{
		switch (nutrient)
		{
		case 0:
			arraylist.add(EnumChatFormatting.RED + TFC_Core.translate("gui.Nutrient.A"));
			break;
		case 1:
			arraylist.add(EnumChatFormatting.GOLD + TFC_Core.translate("gui.Nutrient.B"));
			break;
		case 2:
			arraylist.add(EnumChatFormatting.YELLOW + TFC_Core.translate("gui.Nutrient.C"));
			break;
		default:
			break;
		}

	}
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:35,代码来源:ItemCustomSeeds.java

示例10: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
	ItemTerra.addSizeInformation(is, arraylist);
	FluidStack fs = this.getFluid(is);
	if(fs != null)
	{
		arraylist.add(EnumChatFormatting.DARK_AQUA + fs.getLocalizedName());
		//arraylist.add(EnumChatFormatting.DARK_GRAY + "" + fs.amount + ":" + is.getItemDamage());
	}
}
 
开发者ID:emris,项目名称:LeatherWaterSacTFC,代码行数:13,代码来源:ItemLeatherWaterSac.java

示例11: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag) 
{
	ItemTerra.addSizeInformation(is, arraylist);
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:6,代码来源:ItemSlingshot.java

示例12: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
	ItemTerra.addSizeInformation(is, arraylist);
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:7,代码来源:PowderAsh.java

示例13: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
    ItemTerra.addSizeInformation(is, arraylist);
}
 
开发者ID:Aleksey-Terzi,项目名称:DecorationsTFC,代码行数:6,代码来源:ItemLantern.java

示例14: addInformation

import com.bioxx.tfc.Items.ItemTerra; //导入方法依赖的package包/类
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
    ItemTerra.addSizeInformation(is, arraylist);
    readFromItemNBT(is.getTagCompound(), arraylist);
}
 
开发者ID:Aleksey-Terzi,项目名称:MerchantsTFC,代码行数:7,代码来源:ItemStall.java


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