Difference between revisions of "Redstone (API)"
From ComputerCraft Wiki
m |
(→Methods: Tidy up the explanations) |
||
Line 12: | Line 12: | ||
|- | |- | ||
|[[Redstone_getBundledInput(side)|getBundledInput]]( side ) | |[[Redstone_getBundledInput(side)|getBundledInput]]( side ) | ||
− | | | + | |Returns the state of a redpower wire inside a bundle connected to ''side'' |
|- | |- | ||
|[[Redstone_getBundledOutput|getBundledOutput]]( side ) | |[[Redstone_getBundledOutput|getBundledOutput]]( side ) | ||
− | | | + | |Returns the set of redpower wires inside a bundle on ''side'' that are being driven high by the local console (not those that are driven high by another device on the bundle but not driven high by the local console) |
|- | |- | ||
|[[Redstone_setBundledOutput|setBundledOutput]]( side, colors ) | |[[Redstone_setBundledOutput|setBundledOutput]]( side, colors ) |
Revision as of 07:36, 21 February 2012
Description
The redstone API contains methods to control attached RedPower cables/bundled cables
Methods
Method name | Description |
---|---|
getBundledInput( side ) | Returns the state of a redpower wire inside a bundle connected to side |
getBundledOutput( side ) | Returns the set of redpower wires inside a bundle on side that are being driven high by the local console (not those that are driven high by another device on the bundle but not driven high by the local console) |
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 |