blob: 2fbdbee935ac69e3e5737edc96775d62e8c1f415 [file] [log] [blame] [raw]
package li.cil.oc
import net.minecraft.creativetab.CreativeTabs
object CreativeTab extends CreativeTabs(CreativeTabs.getNextID, "OpenComputers") {
override def getTabIconItem = Items.multi
override def getIconItemStack = Blocks.case1.createItemStack()
override def displayAllReleventItems(list: java.util.List[_]) = {
def add[T](list: java.util.List[T], value: Any) = list.add(value.asInstanceOf[T])
super.displayAllReleventItems(list)
Loot.disks.foreach(add(list, _))
}
override def getTranslatedTabLabel = getTabLabel
}