Difference between revisions of "Disk (API)"
From ComputerCraft Wiki
Scarfacial (Talk | contribs) |
Scarfacial (Talk | contribs) |
||
Line 25: | Line 25: | ||
|[[disk.hasAudio|hasAudio]]([[string (type)|string]] side ) | |[[disk.hasAudio|hasAudio]]([[string (type)|string]] side ) | ||
|Checks if the disk is a music disk | |Checks if the disk is a music disk | ||
+ | |- | ||
+ | |[[disk.getAudioTitle|getAudioTitle]]([[string (type)|string]] side ) | ||
+ | |Returns the audio title on the disk | ||
|- | |- | ||
|[[disk.playAudio|playAudio]]([[string (type)|string]] side ) | |[[disk.playAudio|playAudio]]([[string (type)|string]] side ) |
Revision as of 12:26, 26 February 2012
If you were looking for disks as-in Floppies, go to Floppy Disk.
The Disk API allows you to mess around with disk drives.
Method name | Description |
---|---|
isPresent(string side ) | Checks the given side for a disk |
hasData(string side ) | Checks the disk for data |
getMountPath(string side ) | Returns the directory path on which the disk on side has been mount (ex. /disk) |
setLabel(string side ) | Sets the label |
getLabel(string side ) | Finds label |
hasAudio(string side ) | Checks if the disk is a music disk |
getAudioTitle(string side ) | Returns the audio title on the disk |
playAudio(string side ) | Plays the audio |
stopAudio(string side ) | Stops the audio |
eject(string side ) | Ejects the disk. |