blob: 4f0e879431ccfe8d5cf43e31b83942218dd9e041 [file] [log] [blame] [raw]
package li.cil.oc.server.drivers
import li.cil.oc.Blocks
import li.cil.oc.api.IBlockDriver
import net.minecraft.world.World
object KeyboardDriver extends IBlockDriver {
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
}