Difference between revisions of "Peripheral.getMethods"
From ComputerCraft Wiki
KillaVanilla (Talk | contribs) (Added page for peripheral.getMethods()) |
m (Moved to CAT:LuaCoreFunctions) |
||
Line 15: | Line 15: | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Revision as of 18:50, 28 November 2012
Function peripheral.getMethods | |
Returns a table with all available methods for the peripheral on side. | |
Syntax | peripheral.getMethods((string) side) |
Returns | A table with all available methods for the peripheral on side. |
Part of | ComputerCraft |
API | peripheral |
Examples
Example | |
Prints all of the available methods for the peripheral on the right side of the computer/turtle. | |
Code |
for i,v in ipairs(peripheral.getMethods("right")) do print(i..". "..v) end |
Output | Depends on whatever is attached to the right hand side of the computer; there is a list on the page for the peripheral API. |