Difference between revisions of "Redstone (API)"

From ComputerCraft Wiki
Jump to: navigation, search
Line 34: Line 34:

Revision as of 19:09, 4 February 2012


The redstone API contains methods to control attached RedPower cables/bundled cables


Method name Description
getBundledInput( side )
getBundledOutput( side ) returns the state of a redpower wire inside a bundle connected to side
setBundledOutput( side, colors ) Sets one or multiple colored signals in a redpower bundled wire connected to Side
testBundledInput( side, color ) Returns true or false whether or not a colored signal is active in a redpower bundled wire connected to Side
getInput( side ) Returns the current redstone signal state on side
getSides() Returns an array of possible sides
setOutput( side,boolean ) Set or reset a redstone signal on side