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