本文整理汇总了Java中com.bioxx.tfc.Items.ItemTerra类的典型用法代码示例。如果您正苦于以下问题:Java ItemTerra类的具体用法?Java ItemTerra怎么用?Java ItemTerra使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ItemTerra类属于com.bioxx.tfc.Items包,在下文中一共展示了ItemTerra类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: CraftingGridRecipes
import com.bioxx.tfc.Items.ItemTerra; //导入依赖的package包/类
public static void CraftingGridRecipes()
{
for(ItemTerra i : CWTFCItems.subfoodList)
{
for(int j = 1; j < i.metaNames.length; j++)
{
addSubFoodMergeRecipe(i, j);
GameRegistry.addRecipe(new ShapelessOreRecipe(ItemFoodTFC.createTag(new ItemStack(i, 1, j)), ItemFoodTFC.createTag(new ItemStack(i, 1, j)), "itemKnife"));
GameRegistry.addShapelessRecipe(ItemFoodTFC.createTag(new ItemStack(i, 1, j)), ItemFoodTFC.createTag(new ItemStack(i, 1, j)));
}
}
}
示例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);
addExtraInformation(is, player, arraylist);
}
示例9: 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"));
}
}
示例10: 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;
}
}
}
示例11: 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());
}
}
示例12: addInformation
import com.bioxx.tfc.Items.ItemTerra; //导入依赖的package包/类
@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包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
ItemTerra.addSizeInformation(is, arraylist);
}
示例14: onToolTip
import com.bioxx.tfc.Items.ItemTerra; //导入依赖的package包/类
@SubscribeEvent
public void onToolTip(ItemTooltipEvent event)
{
ItemStack object = event.itemStack;
if(!(object.getItem() instanceof ItemTerra || object.getItem() instanceof ItemTerraBlock
|| object.getItem() instanceof ItemTFCArmor))
{
if (object.hasTagCompound())
{
if(TFC_ItemHeat.hasTemp(object))
{
float temp = TFC_ItemHeat.getTemp(object);
float meltTemp = -1;
HeatIndex hi = HeatRegistry.getInstance().findMatchingIndex(object);
if(hi != null)
meltTemp = hi.meltTemp;
if(meltTemp != -1)
{
event.toolTip.add(TFC_ItemHeat.getHeatColor(temp, meltTemp));
}
}
}
}
if(!(object.getItem() instanceof ItemIngot ||
object.getItem() instanceof ItemMetalSheet ||
object.getItem() instanceof ItemUnfinishedArmor ||
object.getItem() instanceof ItemBloom ||
object.getItem() == TFCItems.wroughtIronKnifeHead))
{
if (object.hasTagCompound())
{
if(TFC_ItemHeat.hasTemp(object))
{
if(ReferenceList.getInstance().isAnvilInged(object))
{
String s = "";
if(HeatRegistry.getInstance().isTemperatureDanger(object))
{
s += EnumChatFormatting.WHITE + TFC_Core.translate("gui.ingot.danger") + " | ";
}
if(HeatRegistry.getInstance().isTemperatureWeldable(object))
{
s += EnumChatFormatting.WHITE + TFC_Core.translate("gui.ingot.weldable") + " | ";
}
if(HeatRegistry.getInstance().isTemperatureWorkable(object))
{
s += EnumChatFormatting.WHITE + TFC_Core.translate("gui.ingot.workable");
}
if (!"".equals(s))
event.toolTip.add(s);
}
}
}
}
if(!(object.getItem() instanceof ItemTerra))
{
if (object.hasTagCompound())
{
if (object.getTagCompound().hasKey(TEAnvil.ITEM_CRAFTING_VALUE_TAG) || object.getTagCompound().hasKey(TEAnvil.ITEM_CRAFTING_RULE_1_TAG))
event.toolTip.add(TFC_Core.translate("gui.ItemWorked"));
}
}
}
示例15: addInformation
import com.bioxx.tfc.Items.ItemTerra; //导入依赖的package包/类
@Override
public void addInformation(ItemStack is, EntityPlayer player, List arraylist, boolean flag)
{
ItemTerra.addSizeInformation(is, arraylist);
}