Computer API
|
|||||||||||
Returns the ID of a computer. | |||||||||||
Syntax | computer.getID() | ||||||||||
Returns | number id | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | computer | ||||||||||
|
|
|||||||||||
Returns the label of a computer peripheral. Returns nil, if the computer has no label. | |||||||||||
Syntax | computer.getLabel() | ||||||||||
Returns | string label | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | computer | ||||||||||
|
|
|||||||||||
Returns if a computer peripheral is running. | |||||||||||
Syntax | computer.isOn() | ||||||||||
Returns | boolean isOn | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | computer | ||||||||||
|
|
|||||||||
Reboot a computer peripheral. | |||||||||
Syntax | computer.reboot() | ||||||||
Returns | nil | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | computer | ||||||||
|
|
|||||||||
Shutdown a computer peripheral. | |||||||||
Syntax | computer.shutdown() | ||||||||
Returns | nil | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | computer | ||||||||
|
|
|||||||||
Turns a computer peripheral on. | |||||||||
Syntax | computer.turnOn() | ||||||||
Returns | nil | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | computer | ||||||||
|
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.