Disk (API)

From ComputerCraft Wiki
Revision as of 00:01, 29 January 2012 by Kaleb702 (Talk | contribs)

Jump to: navigation, search

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.