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