blob: 426f2e65cdb1f392f76eb9270286ce2f27a5f1ae [file] [log] [blame] [raw]
package li.cil.oc
import li.cil.oc.common.items.{ItemMulti, ItemRedstoneCard, ItemGraphicsCard, ItemHdd}
import li.cil.oc.common.util.ItemComponentCache
import li.cil.oc.server.components.{Disk, RedstoneCard, GraphicsCard}
object Items {
var multi: ItemMulti = null
var gpu: ItemGraphicsCard = null
var hdd: ItemHdd = null
var rs: ItemRedstoneCard = null
def init() {
multi = new ItemMulti(Config.itemId)
gpu = new ItemGraphicsCard(multi)
hdd = new ItemHdd(multi)
rs = new ItemRedstoneCard(multi)
ItemComponentCache.register(gpu.itemId, nbt => new GraphicsCard(nbt))
ItemComponentCache.register(hdd.itemId, nbt => new Disk(nbt))
ItemComponentCache.register(rs.itemId, nbt => new RedstoneCard(nbt))
}
}