From ComputerCraft Wiki
Revision as of 22:23, 9 March 2012 by (Talk) (Added info on turtles)

Jump to: navigation, search
API's being listed with the 'apis' command run in a computer.
An API (Application Programming Interface) is a fairly large block of code inserted or called into a program to ease on the coder. An example is a game development API that adds in features that make game development easier.

Currently there are 20 default API's that come with ComputerCraft: bit, color, colour (same as color), coroutine, disk, fs, help, http, io, math, OS, parallel, rednet, redstone, rs (shortened redstone), shell, string, table, term, Turtle (For Turtles) and textutils. Users can also use their own API's.

Users can view all the currently enabled API's by entering 'api' in their terminal.

APIs can be used in one of 3 ways. They can be inserted directly into the code, called in through means of running it at the same time as the other code or it can be run all the time by the BIOS. So far however, there are no APIs that run straight from the BIOS, that's just a theory.

APIs tend to be ~200 lines of code. Some APIs may be used as databases or memory storage for people. Some may be serial encoders/decoders, and some may be to assist in other forms of coding.

Here is a list of all APIs for ComputerCraft:


This category has the following 2 subcategories, out of 2 total.