blob: c6be84ae46c43bcbd8b12e7db880020bd693551b [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(stack) + 1))
}
}
}