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 upgrades.
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
This file is part of the public ComputerCraft API - http://www.computercraft.info Copyright Daniel Ratcliffe, 2011-2016.
dan200.computercraft.api.filesystem - package dan200.computercraft.api.filesystem
This file is part of the public ComputerCraft API - http://www.computercraft.info Copyright Daniel Ratcliffe, 2011-2016.
dan200.computercraft.api.lua - package dan200.computercraft.api.lua
This file is part of the public ComputerCraft API - http://www.computercraft.info Copyright Daniel Ratcliffe, 2011-2016.
dan200.computercraft.api.media - package dan200.computercraft.api.media
This file is part of the public ComputerCraft API - http://www.computercraft.info Copyright Daniel Ratcliffe, 2011-2016.
dan200.computercraft.api.peripheral - package dan200.computercraft.api.peripheral
This file is part of the public ComputerCraft API - http://www.computercraft.info Copyright Daniel Ratcliffe, 2011-2016.
dan200.computercraft.api.permissions - package dan200.computercraft.api.permissions
This file is part of the public ComputerCraft API - http://www.computercraft.info Copyright Daniel Ratcliffe, 2011-2016.
dan200.computercraft.api.redstone - package dan200.computercraft.api.redstone
This file is part of the public ComputerCraft API - http://www.computercraft.info Copyright Daniel Ratcliffe, 2011-2016.
dan200.computercraft.api.turtle - package dan200.computercraft.api.turtle
This file is part of the public ComputerCraft API - http://www.computercraft.info Copyright Daniel Ratcliffe, 2011-2016.
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() - Method in interface dan200.computercraft.api.lua.ILuaTask
 
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.
executeMainThreadTask(ILuaTask) - Method in interface dan200.computercraft.api.lua.ILuaContext
TODO: Document me
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

getAPIVersion() - Static method in class dan200.computercraft.api.ComputerCraftAPI
 
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, BlockPos, EnumFacing) - 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, BlockPos, EnumFacing) - 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 upgrade.
getDirection() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
Returns the world direction the turtle is currently facing.
getDyeColour() - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
Gets the colour the turtle has been dyed.
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
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.
getInstalledVersion() - Static method in class dan200.computercraft.api.ComputerCraftAPI
 
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.
getLegacyUpgradeID() - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
Gets a numerical identifier representing this type of turtle upgrade, for backwards compatibility with pre-1.76 worlds.
getLevel() - Method in exception dan200.computercraft.api.lua.LuaException
 
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.
getModel(ITurtleAccess, TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
Called to obtain the model to be used when rendering a turtle peripheral.
getPeripheral(World, BlockPos, EnumFacing) - 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.
getResults() - Method in class dan200.computercraft.api.turtle.TurtleCommandResult
 
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.
getUnlocalisedAdjective() - Method in interface dan200.computercraft.api.turtle.ITurtleUpgrade
Return a String to describe this type of turtle in turtle item names.
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 identifier representing this type of turtle upgrade.
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.
ILuaTask - Interface in dan200.computercraft.api.lua
 
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
isBlockEditable(World, BlockPos) - Method in interface dan200.computercraft.api.permissions.ITurtlePermissionProvider
 
isBlockEnterable(World, BlockPos) - Method in interface dan200.computercraft.api.permissions.ITurtlePermissionProvider
 
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
isInstalled() - Static method in class dan200.computercraft.api.ComputerCraftAPI
 
isSuccess() - Method in class dan200.computercraft.api.turtle.TurtleCommandResult
 
issueMainThreadTask(ILuaTask) - Method in interface dan200.computercraft.api.lua.ILuaContext
TODO: Document me
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
ITurtlePermissionProvider - Interface in dan200.computercraft.api.permissions
This interface is used to restrict where turtles can move or build
ITurtleUpgrade - Interface in dan200.computercraft.api.turtle
The primary interface for defining an update 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.
LuaException - Exception in dan200.computercraft.api.lua
An exception representing an error in Lua, like that raised by the error() function
LuaException() - Constructor for exception dan200.computercraft.api.lua.LuaException
 
LuaException(String) - Constructor for exception dan200.computercraft.api.lua.LuaException
 
LuaException(String, int) - Constructor for exception dan200.computercraft.api.lua.LuaException
 

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.
mount(String, IMount, String) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
TODO: Document me
mountWritable(String, IWritableMount) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
Mount a mount onto the computers' file system in a writable mode.
mountWritable(String, IWritableMount, String) - Method in interface dan200.computercraft.api.peripheral.IComputerAccess
TODO: Document me

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.
registerPermissionProvider(ITurtlePermissionProvider) - Static method in class dan200.computercraft.api.ComputerCraftAPI
Registers a permission handler to restrict where turtles can move or build
registerTurtleUpgrade(ITurtleUpgrade) - Static method in class dan200.computercraft.api.ComputerCraftAPI
Registers a new turtle turtle for use in ComputerCraft.

S

setDirection(EnumFacing) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
TODO: Document me
setDyeColour(int) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
Sets the colour of the turtle, as if the player had dyed it with a dye item.
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
 
success(Object[]) - Static method in class dan200.computercraft.api.turtle.TurtleCommandResult
 

T

teleportTo(World, BlockPos) - 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
Called once per tick for each turtle which has the upgrade equipped.
updateUpgradeNBTData(TurtleSide) - Method in interface dan200.computercraft.api.turtle.ITurtleAccess
TODO: Document me
useTool(ITurtleAccess, TurtleSide, TurtleVerb, EnumFacing) - 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