GT5-Unofficial/src/main/java/gregtech/common/blocks/GT_Item_Casings1.java

28 lines
934 B
Java
Raw Normal View History

2015-06-23 22:29:05 +00:00
package gregtech.common.blocks;
2016-07-18 11:56:21 +00:00
import java.util.List;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
2015-06-23 22:29:05 +00:00
import net.minecraft.block.Block;
2016-07-18 11:56:21 +00:00
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
2015-10-22 02:06:25 +00:00
2015-06-23 22:29:05 +00:00
public class GT_Item_Casings1
2015-10-22 02:06:25 +00:00
extends GT_Item_Casings_Abstract {
public GT_Item_Casings1(Block par1) {
super(par1);
}
2016-07-18 11:56:21 +00:00
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H) {
super.addInformation(aStack, aPlayer, aList, aF3_H);
int tMeta = getDamage(aStack);
if (tMeta >= 12 && tMeta <= 14) {
aList.add(EnumChatFormatting.ITALIC + this.mCoilOverheated1Tooltip);
aList.add(EnumChatFormatting.ITALIC + this.mCoilOverheated2Tooltip);
}
}
2015-06-23 22:29:05 +00:00
}