Difference between revisions of "Disk (API)"

From ComputerCraft Wiki
Jump to: navigation, search
(made page)
 
Line 11: Line 11:
 
* disk.stopAudio( side ) which stops the audio
 
* disk.stopAudio( side ) which stops the audio
 
* disk.eject( side ) which ejects the disk.
 
* disk.eject( side ) which ejects the disk.
 +
[[Category:APIs]]

Revision as of 00:01, 29 January 2012

The Disk API allows you to mess around with disk drives.

Its functions include:

  • disk.isPresent( side ) which checks for a disk
  • disk.hasData( side) which checks if the disk is not blank
  • disk.getMountPath( side )
  • disk.setLabel( side ) which sets the label
  • disk.getLabel( side ) which gets the label
  • disk.hasAudio( side ) which checks if it is a music disk
  • disk.playAudio( side ) which plays the audio
  • disk.stopAudio( side ) which stops the audio
  • disk.eject( side ) which ejects the disk.