blob: aa6eb4f86591cee06a87913ce7c0f789a6eb372f [file] [log] [blame] [raw]
package li.cil.oc.common.item
import java.util
import cpw.mods.fml.relauncher.Side
import cpw.mods.fml.relauncher.SideOnly
import li.cil.oc.Localization
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.item.ItemStack
trait ItemTier extends Delegate {
self: Delegate =>
@SideOnly(Side.CLIENT)
override def tooltipLines(stack: ItemStack, player: EntityPlayer, tooltip: util.List[String], advanced: Boolean) {
super.tooltipLines(stack, player, tooltip, advanced)
if (advanced) {
tooltip.add(Localization.Tooltip.Tier(tierFromDriver + 1))
}
}
}