A C D E F G I L M O P Q R S T U V Y

## A

addFuel(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
attach(IComputerAccess) - Method in interface dan200.computercraft.api.peripheral.IPeripheral
  Is called when canAttachToSide has returned true, and a computercraft is attaching to the peripheral.

## C

callMethod(ILuaContext, int, Object[]) - Method in interface dan200.computercraft.api.lua.ILuaObject
  Called when a user calls one of the methods that this object implements.
callMethod(IComputerAccess, ILuaContext, int, Object[]) - Method in interface dan200.computercraft.api.peripheral.IPeripheral
  This is called when a lua program on an attached computercraft calls peripheral.call() with one of the methods exposed by getMethodNames().
  Be aware that this will be called from the ComputerCraft Lua thread, and must be thread-safe when interacting with minecraft objects.
ComputerCraftAPI - Class in dan200.computercraft.api
  The static entry point to the ComputerCraft API.
ComputerCraftAPI() - Constructor for class dan200.computercraft.api.ComputerCraftAPI
consumeFuel(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  Removes some fuel from the turtles fuel supply.
createDataMount(ItemStack, World) - Method in interface dan200.computercraft.api.media.IMedia
  If this disk represents an item with data (like a floppy disk), get a mount representing it's contents.
createPeripheral(ITurtleAccess, TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
  Will only be called for Peripheral turtle.
createResourceMount(Class, String, String) - Static method in class dan200.computercraft.api.ComputerCraftAPI
  Creates a file system mount to a resource folder, and returns it.
  Use in conjuction with IComputerAccess.mount() or IComputerAccess.mountWritable() to mount a resource folder onto a computers file system.
  The files in this mount will be a combination of files in the specified mod jar, and resource packs that contain resources with the same domain and path.
createSaveDirMount(World, String, long) - Static method in class dan200.computercraft.api.ComputerCraftAPI
  Creates a file system mount that maps to a subfolder of the save directory for a given world, and returns it.
  Use in conjuction with IComputerAccess.mount() or IComputerAccess.mountWritable() to mount a folder from the users save directory onto a computers file system.
createUniqueNumberedSaveDir(World, String) - Static method in class dan200.computercraft.api.ComputerCraftAPI
  Creates a numbered directory in a subfolder of the save directory for a given world, and returns that number.
  Use in conjuction with createSaveDirMount() to create a unique place for your peripherals or media items to store files.

## D

dan200.computercraft.api - package dan200.computercraft.api
dan200.computercraft.api.filesystem - package dan200.computercraft.api.filesystem
dan200.computercraft.api.lua - package dan200.computercraft.api.lua
dan200.computercraft.api.media - package dan200.computercraft.api.media
dan200.computercraft.api.peripheral - package dan200.computercraft.api.peripheral
dan200.computercraft.api.redstone - package dan200.computercraft.api.redstone
dan200.computercraft.api.turtle - package dan200.computercraft.api.turtle
delete(String) - Method in interface dan200.computercraft.api.filesystem.IWritableMount
  Deletes a directory at a given path inside the virtual file system.
detach(IComputerAccess) - Method in interface dan200.computercraft.api.peripheral.IPeripheral
  Is called when a computercraft is detaching from the peripheral.

## E

equals(IPeripheral) - Method in interface dan200.computercraft.api.peripheral.IPeripheral
  TODO: Document me
execute(ITurtleAccess) - Method in interface dan200.computercraft.api.turtle.ITurtleCommand
  Will be called by the turtle on the main thread when it is time to execute the custom command.
executeCommand(ILuaContext, ITurtleCommand) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  Adds a custom command to the turtles command queue.
exists(String) - Method in interface dan200.computercraft.api.filesystem.IMount
  Returns whether a file with a given path exists or not.

## F

failure() - Static method in class dan200.computercraft.api.turtle.TurtleCommandResult
failure(String) - Static method in class dan200.computercraft.api.turtle.TurtleCommandResult

## G

getAdjective() - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
  Return a String to describe this type of turtle in turtle item names.
getAttachmentName() - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
  Get a string, unique to the computercraft, by which the computercraft refers to this peripheral.
getAudioRecordName(ItemStack) - Method in interface dan200.computercraft.api.media.IMedia
  If this disk represents an item with audio (like a record), get the resource name of the audio track to play.
getAudioTitle(ItemStack) - Method in interface dan200.computercraft.api.media.IMedia
  If this disk represents an item with audio (like a record), get the readable name of the audio track.
getBundledRedstoneOutput(World, int, int, int, int) - Static method in class dan200.computercraft.api.ComputerCraftAPI
  If there is a Computer or Turtle at a certain position in the world, get it's bundled redstone output.
getBundledRedstoneOutput(World, int, int, int, int) - Method in interface dan200.computercraft.api.redstone.IBundledRedstoneProvider
  Produce an bundled redstone output from a block location.
getCraftingItem() - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
  Return an item stack representing the type of item that a turtle must be crafted with to create a turtle which holds this turtle.
getDirection() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  Returns the world direction the turtle is currently facing.
getErrorMessage() - Method in class dan200.computercraft.api.turtle.TurtleCommandResult
getFuelLevel() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
getFuelLimit() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
getIcon(ITurtleAccess, TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
  Called to obtain the Icon to be used when rendering a turtle peripheral.
getID() - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
  Returns the numerical ID of this computercraft.
  This is the same number obtained by calling os.getComputerID() or running the "id" program from lua, and is guarunteed unique.
getInventory() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
getLabel(ItemStack) - Method in interface dan200.computercraft.api.media.IMedia
  Get a string representing the label of this item.
getMedia(ItemStack) - Method in interface dan200.computercraft.api.media.IMediaProvider
  Produce an IMedia implementation from an ItemStack.
getMethodNames() - Method in interface dan200.computercraft.api.lua.ILuaObject
  Get the names of the methods that this object implements.
getMethodNames() - Method in interface dan200.computercraft.api.peripheral.IPeripheral
  Should return an array of strings that identify the methods that this peripheral exposes to Lua.
getPeripheral(World, int, int, int, int) - Method in interface dan200.computercraft.api.peripheral.IPeripheralProvider
  Produce an peripheral implementation from a block location.
getPeripheral(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  Returns the peripheral created by the upgrade on the specified side of the turtle, if there is one.
getPosition() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  Returns a vector containing the integer co-ordinates at which the turtle resides.
getRemainingSpace() - Method in interface dan200.computercraft.api.filesystem.IWritableMount
  Get the ammount of free space on the mount, in bytes.
getSelectedSlot() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
getSize(String) - Method in interface dan200.computercraft.api.filesystem.IMount
  Returns the size of a file with a given path, in bytes
getType() - Method in interface dan200.computercraft.api.peripheral.IPeripheral
  Should return a string that uniquely identifies this type of peripheral.
getType() - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
  Return whether this turtle adds a tool or a peripheral to the turtle.
getUpgrade(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  Returns the turtle on the specified side of the turtle, if there is one.
getUpgradeID() - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
  Gets a unique numerical identifier representing this type of turtle turtle.
getUpgradeNBTData(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
getVisualPosition(float) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  Returns a vector containing the floating point co-ordinates at which the turtle is rendered.
getVisualYaw(float) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
getWorld() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  Returns the world in which the turtle resides.

## I

IBundledRedstoneProvider - Interface in dan200.computercraft.api.redstone
  This interface is used to provide bundled redstone output for blocks
IComputerAccess - Interface in dan200.computercraft.api.peripheral
  The interface passed to peripherals by computers or turtles, providing methods that they can call.
ILuaContext - Interface in dan200.computercraft.api.lua
  An interface passed to peripherals and ILuaObjects' by computers or turtles, providing methods that allow the peripheral call to wait for events before returning, just like in lua.
ILuaObject - Interface in dan200.computercraft.api.lua
  An interface for representing custom objects returned by IPeripheral.callMethod() calls.
IMedia - Interface in dan200.computercraft.api.media
  Represents an item that can be placed in a disk drive and used by a Computer.
IMediaProvider - Interface in dan200.computercraft.api.media
  This interface is used to provide IMedia implementations for ItemStack
IMount - Interface in dan200.computercraft.api.filesystem
  Represents a read only part of a virtual filesystem that can be mounted onto a computercraft using IComputerAccess.mount().
IPeripheral - Interface in dan200.computercraft.api.peripheral
  The interface that defines a peripheral.
IPeripheralProvider - Interface in dan200.computercraft.api.peripheral
  This interface is used to create peripheral implementations for blocks
isDirectory(String) - Method in interface dan200.computercraft.api.filesystem.IMount
  Returns whether a file with a given path is a directory or not.
isFuelNeeded() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
isSuccess() - Method in class dan200.computercraft.api.turtle.TurtleCommandResult
ITurtleAccess - Interface in dan200.computercraft.api.turtle
  The interface passed to turtle by turtles, providing methods that they can call.
ITurtleCommand - Interface in dan200.computercraft.api.turtle
  An interface for objects executing custom turtle commands, used with ITurtleAccess.issueCommand
ITurtleUpgrade - Interface in dan200.computercraft.api.turtle
  The primary interface for defining an turtle for Turtles.
IWritableMount - Interface in dan200.computercraft.api.filesystem
  Represents a part of a virtual filesystem that can be mounted onto a computercraft using IComputerAccess.mount() or IComputerAccess.mountWritable(), that can also be written to.

## L

list(String, List<String>) - Method in interface dan200.computercraft.api.filesystem.IMount
  Returns the file names of all the files in a directory.

## M

makeDirectory(String) - Method in interface dan200.computercraft.api.filesystem.IWritableMount
  Creates a directory at a given path inside the virtual file system.
mount(String, IMount) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
  Mount a mount onto the computers' file system in a read only mode.
mountWritable(String, IWritableMount) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
  Mount a mount onto the computers' file system in a writable mode.

## O

openForAppend(String) - Method in interface dan200.computercraft.api.filesystem.IWritableMount
  Opens a file with a given path, and returns an outputstream for appending to it.
openForRead(String) - Method in interface dan200.computercraft.api.filesystem.IMount
  Opens a file with a given path, and returns an inputstream representing it's contents.
openForWrite(String) - Method in interface dan200.computercraft.api.filesystem.IWritableMount
  Opens a file with a given path, and returns an outputstream for writing to it.

## P

playAnimation(TurtleAnimation) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
pullEvent(String) - Method in interface dan200.computercraft.api.lua.ILuaContext
  Wait for an event to occur on the computercraft, suspending the thread until it arises.
pullEventRaw(String) - Method in interface dan200.computercraft.api.lua.ILuaContext
  The same as pullEvent(), except "terminated" events are ignored.

## Q

queueEvent(String, Object[]) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
  Causes an event to be raised on this computercraft, which the computercraft can respond to by calling os.pullEvent().

## R

registerBundledRedstoneProvider(IBundledRedstoneProvider) - Static method in class dan200.computercraft.api.ComputerCraftAPI
  Registers a bundled redstone handler to provide bundled redstone output for blocks
registerMediaProvider(IMediaProvider) - Static method in class dan200.computercraft.api.ComputerCraftAPI
  Registers a media handler to provide IMedia implementations for Items
registerPeripheralProvider(IPeripheralProvider) - Static method in class dan200.computercraft.api.ComputerCraftAPI
  Registers a peripheral handler to convert blocks into IPeripheral implementations.
registerTurtleUpgrade(ITurtleUpgrade) - Static method in class dan200.computercraft.api.ComputerCraftAPI
  Registers a new turtle turtle for use in ComputerCraft.

## S

setDirection(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
setFuelLevel(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
setLabel(ItemStack, String) - Method in interface dan200.computercraft.api.media.IMedia
  Set a string representing the label of this item.
setSelectedSlot(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
setUpgrade(TurtleSide, ITurtleUpgrade) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
success() - Static method in class dan200.computercraft.api.turtle.TurtleCommandResult

## T

teleportTo(World, int, int, int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
TurtleAnimation - Enum in dan200.computercraft.api.turtle
TurtleCommandResult - Class in dan200.computercraft.api.turtle
TurtleSide - Enum in dan200.computercraft.api.turtle
  An enum representing the two sides of the turtle that a turtle turtle might reside.
TurtleUpgradeType - Enum in dan200.computercraft.api.turtle
  An enum representing the two different types of turtle that an ITurtleUpgrade implementation can add to a turtle.
TurtleVerb - Enum in dan200.computercraft.api.turtle
  An enum representing the two different actions that an ITurtleUpgrade of type Tool may be called on to perform by a turtle.

## U

unmount(String) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
  Unmounts a directory previously mounted onto the computers file system by mount() or mountWritable().
  When a directory is unmounted, it will disappear from the computers file system, and the user will no longer be able to access it.
update(ITurtleAccess, TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
  TODO: Document me
updateUpgradeNBTData(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
  TODO: Document me
useTool(ITurtleAccess, TurtleSide, TurtleVerb, int) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
  Will only be called for Tool turtle.

## V

valueOf(String) - Static method in enum dan200.computercraft.api.turtle.TurtleAnimation
  Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dan200.computercraft.api.turtle.TurtleSide
  Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dan200.computercraft.api.turtle.TurtleUpgradeType
  Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum dan200.computercraft.api.turtle.TurtleVerb
  Returns the enum constant of this type with the specified name.
values() - Static method in enum dan200.computercraft.api.turtle.TurtleAnimation
  Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dan200.computercraft.api.turtle.TurtleSide
  Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dan200.computercraft.api.turtle.TurtleUpgradeType
  Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum dan200.computercraft.api.turtle.TurtleVerb
  Returns an array containing the constants of this enum type, in the order they are declared.

## Y

yield(Object[]) - Method in interface dan200.computercraft.api.lua.ILuaContext
  Yield the current coroutine with some arguments until it is resumed.

A C D E F G I L M O P Q R S T U V Y