- 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.
- 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.
- 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.
- 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.