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

30 lines
952 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 net.minecraft.util.text.TextFormatting;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.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;
2015-10-22 02:06:25 +00:00
public class GT_Item_Casings1 extends GT_Item_Casings_Abstract {
2015-10-22 02:06:25 +00:00
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<String> aList, boolean aF3_H) {
2016-07-18 11:56:21 +00:00
super.addInformation(aStack, aPlayer, aList, aF3_H);
int tMeta = getDamage(aStack);
if (tMeta >= 12 && tMeta <= 14) {
aList.add(TextFormatting.ITALIC + this.mCoilOverheated1Tooltip);
aList.add(TextFormatting.ITALIC + this.mCoilOverheated2Tooltip);
2016-07-18 11:56:21 +00:00
}
}
2015-06-23 22:29:05 +00:00
}