Category:APIs

From ComputerCraft Wiki
Revision as of 03:01, 16 April 2012 by Thesbros (Talk | contribs)

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 22 default API's that come with ComputerCraft: bit, color, colour (same as color, but for the lovers of british spelling), coroutine, disk, fs, gps, help, http, io, math, OS, parallel, rednet, redstone, rs (shortened redstone), shell, string, table, term, Turtle (For Turtles), textutils and vector. 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:

Subcategories

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