blob: 3e7e113d572bf22b64758b209f92f7fff3df9001 [file] [log] [blame] [raw]
package li.cil.oc.server.driver
import li.cil.oc.Blocks
import li.cil.oc.api.driver
import net.minecraft.world.World
object Keyboard extends driver.Block {
override def api = Option(getClass.getResourceAsStream("/assets/opencomputers/lua/keyboard.lua"))
override def worksWith(world: World, x: Int, y: Int, z: Int) =
world.getBlockId(x, y, z) == Blocks.keyboard.blockId
}