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


Java ItemTerra类代码示例

本文整理汇总了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));
            }
        }
    }
}
 
开发者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: 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)));
		}
	}
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:13,代码来源:CWTFCFoodRecipes.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);		
	
	addExtraInformation(is, player, arraylist);
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:9,代码来源:ItemGourdBlock.java

示例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"));
	}
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:29,代码来源:ItemTFCAdjutableFood.java

示例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;
		}

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

示例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());
	}
}
 
开发者ID:emris,项目名称:LeatherWaterSacTFC,代码行数:13,代码来源:ItemLeatherWaterSac.java

示例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);
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:6,代码来源:ItemSlingshot.java

示例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);
}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:7,代码来源:PowderAsh.java

示例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"));
		}
	}
}
 
开发者ID:StrayWolfe,项目名称:TFC-Tweaker,代码行数:71,代码来源:PlayerInteractionHandler.java

示例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);
}
 
开发者ID:Aleksey-Terzi,项目名称:DecorationsTFC,代码行数:6,代码来源:ItemLantern.java


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