blob: 7e3da89e045fac02f827dfb148dc5832722c464c [file] [log] [blame] [raw]
package li.cil.oc.common.block
import cpw.mods.fml.common.registry.GameRegistry
import li.cil.oc.common.tileentity
import net.minecraft.world.World
import li.cil.oc.Config
import net.minecraftforge.common.ForgeDirection
import net.minecraft.client.renderer.texture.IconRegister
import net.minecraft.util.Icon
class Keyboard(val parent: SpecialDelegator) extends SpecialDelegate {
GameRegistry.registerTileEntity(classOf[tileentity.Keyboard], "oc.keyboard")
val unlocalizedName = "Keyboard"
var icon:Icon = null
override def icon(side: ForgeDirection) = Some(icon)
override def registerIcons(iconRegister: IconRegister) = {
icon = iconRegister.registerIcon(Config.resourceDomain + ":keyboard")
}
override def hasTileEntity = true
override def createTileEntity(world: World) = Some(new tileentity.Keyboard)
}