blob: 2b1ee4eece5cb01ce659b23548e2a0f93538c975 [file] [log] [blame] [raw]
package li.cil.oc.common.item
import li.cil.oc.Config
import net.minecraft.client.renderer.texture.IconRegister
class Memory(val parent: Delegator, val kiloBytes: Int) extends Delegate {
def unlocalizedName = "Memory" + kiloBytes + "k"
override def registerIcons(iconRegister: IconRegister) {
super.registerIcons(iconRegister)
icon = iconRegister.registerIcon(Config.resourceDomain + ":ram" + kiloBytes)
}
}