A B C D E F G H I J K L M N O P R S T U V W X Y Z 

A

AbstractBusCard - Static variable in class li.cil.oc.api.Items
 
AccessPoint - Static variable in class li.cil.oc.api.Blocks
 
Acid - Static variable in class li.cil.oc.api.Items
 
Adapter - Static variable in class li.cil.oc.api.Blocks
 
add(Block) - Method in interface li.cil.oc.api.detail.DriverAPI
Registers a new driver for a block component.
add(Item) - Method in interface li.cil.oc.api.detail.DriverAPI
Registers a new driver for an item component.
add(Converter) - Method in interface li.cil.oc.api.detail.DriverAPI
Registers a new type converter.
add(Class<? extends Architecture>) - Method in interface li.cil.oc.api.detail.MachineAPI
Register an architecture that can be used to create new machines.
add(Block) - Static method in class li.cil.oc.api.Driver
Registers a new block driver.
add(Item) - Static method in class li.cil.oc.api.Driver
Registers a new item driver.
add(Converter) - Static method in class li.cil.oc.api.Driver
Registers a new type converter.
add(Class<? extends Architecture>) - Static method in class li.cil.oc.api.Machine
Register an architecture that can be used to create new machines.
addedToNetwork - Variable in class li.cil.oc.api.prefab.TileEntityEnvironment
 
addedToNetwork - Variable in class li.cil.oc.api.prefab.TileEntitySidedEnvironment
 
address() - Method in interface li.cil.oc.api.network.Context
Deprecated.
Use node().address() instead.
address() - Method in interface li.cil.oc.api.network.Node
The address of the node, so that it can be found in the network.
addRomResource(Class<? extends Architecture>, Callable<FileSystem>, String) - Method in interface li.cil.oc.api.detail.MachineAPI
Adds a file system to use for the composite file system that is made available as the ROM to each machine of the specified architecture.
addRomResource(Class<? extends Architecture>, Callable<FileSystem>, String) - Static method in class li.cil.oc.api.Machine
Adds a file system to use for the composite file system that is made available as the ROM to each machine of the specified architecture.
addUser(String) - Method in interface li.cil.oc.api.machine.Machine
Add a player to the machine's list of users, by username.
ALU - Static variable in class li.cil.oc.api.Items
 
amount(ItemStack) - Method in interface li.cil.oc.api.driver.Memory
The amount of RAM this component provides, in bytes.
Analyzable - Interface in li.cil.oc.api.network
Allows defining a callback for when a block is right-clicked with an analyzer.
Analyzer - Static variable in class li.cil.oc.api.Items
 
Architecture - Interface in li.cil.oc.api.machine
This interface abstracts away any language specific details for the Machine.
architecture() - Method in interface li.cil.oc.api.machine.Machine
The underlying architecture of the machine.
architectures() - Method in interface li.cil.oc.api.detail.MachineAPI
A list of all registered architectures.
architectures() - Static method in class li.cil.oc.api.Machine
A list of all registered architectures.
args() - Method in interface li.cil.oc.api.machine.Signal
The list of arguments for the signal.
Arguments - Interface in li.cil.oc.api.network
This interface provides access to arguments passed to a Callback.
asManagedEnvironment(FileSystem, Label, TileEntity) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Creates a network node that makes the specified file system available via the common file system driver.
asManagedEnvironment(FileSystem, String, TileEntity) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Like FileSystemAPI.asManagedEnvironment(li.cil.oc.api.fs.FileSystem, Label, TileEntity), but creates a read-only label initialized to the specified value.
asManagedEnvironment(FileSystem, Label) - Method in interface li.cil.oc.api.detail.FileSystemAPI
asManagedEnvironment(FileSystem, String) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Like FileSystemAPI.asManagedEnvironment(li.cil.oc.api.fs.FileSystem, Label), but creates a read-only label initialized to the specified value.
asManagedEnvironment(FileSystem) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Like FileSystemAPI.asManagedEnvironment(li.cil.oc.api.fs.FileSystem, Label), but creates an unlabeled file system (i.e.
asManagedEnvironment(FileSystem, Label, TileEntity) - Static method in class li.cil.oc.api.FileSystem
Creates a network node that makes the specified file system available via the common file system driver.
asManagedEnvironment(FileSystem, String, TileEntity) - Static method in class li.cil.oc.api.FileSystem
Like FileSystem.asManagedEnvironment(li.cil.oc.api.fs.FileSystem, Label, TileEntity), but creates a read-only label initialized to the specified value.
asManagedEnvironment(FileSystem, Label) - Static method in class li.cil.oc.api.FileSystem
asManagedEnvironment(FileSystem, String) - Static method in class li.cil.oc.api.FileSystem
Like FileSystem.asManagedEnvironment(li.cil.oc.api.fs.FileSystem, Label), but creates a read-only label initialized to the specified value.
asManagedEnvironment(FileSystem) - Static method in class li.cil.oc.api.FileSystem
Like FileSystem.asManagedEnvironment(li.cil.oc.api.fs.FileSystem, Label), but creates an unlabeled file system (i.e.

B

Block - Interface in li.cil.oc.api.driver
Interface for block component drivers.
Blocks - Class in li.cil.oc.api
Item stacks for all blocks OpenComputers defines.
Builder<T extends Node> - Interface in li.cil.oc.api.detail
Builder.ComponentBuilder - Interface in li.cil.oc.api.detail
Builder for component nodes.
Builder.ComponentConnectorBuilder - Interface in li.cil.oc.api.detail
Builder for nodes that are both component and connector node.
Builder.ConnectorBuilder - Interface in li.cil.oc.api.detail
Builder for connector nodes.
Builder.NodeBuilder - Interface in li.cil.oc.api.detail
Builder for basic nodes.
ButtonArrows - Static variable in class li.cil.oc.api.Items
 
ButtonGroup - Static variable in class li.cil.oc.api.Items
 
ButtonNumPad - Static variable in class li.cil.oc.api.Items
 

C

Cable - Static variable in class li.cil.oc.api.Blocks
 
Callback - Annotation Type in li.cil.oc.api.network
This annotation can be used for methods in an Environment to mark them for exposure to computers.
canBeReachedFrom(Node) - Method in interface li.cil.oc.api.network.Node
Checks whether this node can be reached from the specified node.
canBeSeenFrom(Node) - Method in interface li.cil.oc.api.network.Component
Tests whether this component can be seen by the specified node, usually representing a computer in the network.
cancel() - Method in interface li.cil.oc.api.network.Message
Stop further propagation of a broadcast message.
canConnect(ForgeDirection) - Method in interface li.cil.oc.api.network.SidedEnvironment
Whether the environment provides a node to connect to on the specified side.
canInteract(String) - Method in interface li.cil.oc.api.network.Context
Tests whether a player is allowed to use the computer.
canUpdate() - Method in interface li.cil.oc.api.network.ManagedEnvironment
Like the method of the same name on tile entities, this is used to decide whether to put a component in the list of components that need updating, i.e.
canUpdate() - Method in class li.cil.oc.api.prefab.ManagedEnvironment
 
Capacitor - Static variable in class li.cil.oc.api.Blocks
 
CardBase - Static variable in class li.cil.oc.api.Items
 
CaseTier1 - Static variable in class li.cil.oc.api.Blocks
 
CaseTier2 - Static variable in class li.cil.oc.api.Blocks
 
CaseTier3 - Static variable in class li.cil.oc.api.Blocks
 
changeBuffer(double) - Method in interface li.cil.oc.api.network.Connector
Try to apply the specified delta to the global buffer.
Charger - Static variable in class li.cil.oc.api.Blocks
 
checkAny(int) - Method in interface li.cil.oc.api.network.Arguments
Get whatever is at the specified index.
checkBoolean(int) - Method in interface li.cil.oc.api.network.Arguments
Try to get a boolean value at the specified index.
checkByteArray(int) - Method in interface li.cil.oc.api.network.Arguments
Try to get a byte array at the specified index.
checkDouble(int) - Method in interface li.cil.oc.api.network.Arguments
Try to get a double value at the specified index.
checkInteger(int) - Method in interface li.cil.oc.api.network.Arguments
Try to get an integer value at the specified index.
checkString(int) - Method in interface li.cil.oc.api.network.Arguments
Try to get a string value at the specified index.
checkTable(int) - Method in interface li.cil.oc.api.network.Arguments
Try to get a table at the specified index.
CircuitBoard - Static variable in class li.cil.oc.api.Items
 
close() - Method in interface li.cil.oc.api.fs.FileSystem
Called when the file system is destroyed.
close() - Method in interface li.cil.oc.api.fs.Handle
Closes the handle.
close() - Method in interface li.cil.oc.api.machine.Architecture
Called when a machine stopped.
Component - Interface in li.cil.oc.api.network
Components are nodes that can be addressed computers via drivers.
ComponentConnector - Interface in li.cil.oc.api.network
For nodes that are both component and connector.
componentCount() - Method in interface li.cil.oc.api.machine.Machine
The number of connected components.
components() - Method in interface li.cil.oc.api.machine.Machine
The list of components attached to this machine.
connect(Node, Node) - Method in interface li.cil.oc.api.network.Network
Adds a new node connection in the network.
connect(Node) - Method in interface li.cil.oc.api.network.Node
Connects the specified node to this node.
Connector - Interface in li.cil.oc.api.network
Interface for nodes that act as power connectors between their network and some power producer or consumer.
Context - Interface in li.cil.oc.api.network
This is used to provide some context to Callbacks, i.e.
ControlUnit - Static variable in class li.cil.oc.api.Items
 
convert(Object, Map<Object, Object>) - Method in interface li.cil.oc.api.driver.Converter
Converts a type to a Map that only contains valid values, i.e.
Converter - Interface in li.cil.oc.api.driver
A converter is a callback that can be used to transparently convert Java types to something that can be pushed to a machine's architecture.
count() - Method in interface li.cil.oc.api.network.Arguments
The total number of arguments that were passed to the function.
CPUTier1 - Static variable in class li.cil.oc.api.Items
 
CPUTier2 - Static variable in class li.cil.oc.api.Items
 
CPUTier3 - Static variable in class li.cil.oc.api.Items
 
cpuTime() - Method in interface li.cil.oc.api.machine.Machine
The time spent running the underlying architecture in execution threads, i.e.
crash(String) - Method in interface li.cil.oc.api.machine.Machine
Crashes the computer.
create() - Method in interface li.cil.oc.api.detail.Builder
Finalizes the construction of the node.
create(Owner, Class<? extends Architecture>) - Method in interface li.cil.oc.api.detail.MachineAPI
Creates a new machine using the specified architecture.
create(Owner, Class<? extends Architecture>) - Static method in class li.cil.oc.api.Machine
Creates a new machine using the specified architecture.
create(Owner) - Static method in class li.cil.oc.api.Machine
Creates a new machine using the default architecture (Lua).
createEnvironment(World, int, int, int) - Method in interface li.cil.oc.api.driver.Block
Create a new managed environment interfacing the specified block.
createEnvironment(ItemStack, TileEntity) - Method in interface li.cil.oc.api.driver.Item
Create a new managed environment interfacing the specified item.
CreativeTab - Class in li.cil.oc.api
Allows access to the creative tab used by OpenComputers.
CuttingWire - Static variable in class li.cil.oc.api.Items
 

D

data() - Method in interface li.cil.oc.api.network.Message
The values passed along in the message.
data() - Method in interface li.cil.oc.api.network.Packet
The payload of the packet.
dataTag(ItemStack) - Method in interface li.cil.oc.api.driver.Item
Get the tag compound based on the item stack to use for persisting the environment associated with the specified item stack.
dataTag(ItemStack) - Method in class li.cil.oc.api.prefab.DriverItem
 
delete(String) - Method in interface li.cil.oc.api.fs.FileSystem
Deletes a file or folder.
destination() - Method in interface li.cil.oc.api.network.Packet
The address of the destination of the packet.
disconnect(Node, Node) - Method in interface li.cil.oc.api.network.Network
Removes a node connection in the network.
disconnect(Node) - Method in interface li.cil.oc.api.network.Node
Disconnects the specified node from this node.
DiskDrive - Static variable in class li.cil.oc.api.Blocks
 
DiskPlatter - Static variable in class li.cil.oc.api.Items
 
documentation(String, String) - Method in interface li.cil.oc.api.machine.Machine
Retrieves the docstring for the specified method of the specified component.
Driver - Class in li.cil.oc.api
This API allows registering new drivers with the mod.
DriverAPI - Interface in li.cil.oc.api.detail
 
DriverItem - Class in li.cil.oc.api.prefab
If you wish to create item components such as the network card or hard drives you will need an item driver.
DriverItem(ItemStack...) - Constructor for class li.cil.oc.api.prefab.DriverItem
 
DriverTileEntity - Class in li.cil.oc.api.prefab
 
DriverTileEntity() - Constructor for class li.cil.oc.api.prefab.DriverTileEntity
 

E

Environment - Interface in li.cil.oc.api.network
The environment of a node.
ExecutionResult - Class in li.cil.oc.api.machine
Used by the Machine to determine the result of a call to Architecture.runThreaded(boolean).
ExecutionResult() - Constructor for class li.cil.oc.api.machine.ExecutionResult
 
ExecutionResult.Error - Class in li.cil.oc.api.machine
Indicates that an error occurred and the computer should crash.
ExecutionResult.Error(String) - Constructor for class li.cil.oc.api.machine.ExecutionResult.Error
 
ExecutionResult.Shutdown - Class in li.cil.oc.api.machine
Indicates tha the computer should shutdown or reboot.
ExecutionResult.Shutdown(boolean) - Constructor for class li.cil.oc.api.machine.ExecutionResult.Shutdown
 
ExecutionResult.Sleep - Class in li.cil.oc.api.machine
Indicates the machine may sleep for the specified number of ticks.
ExecutionResult.Sleep(int) - Constructor for class li.cil.oc.api.machine.ExecutionResult.Sleep
 
ExecutionResult.SynchronizedCall - Class in li.cil.oc.api.machine
Indicates that a synchronized call should be performed.
ExecutionResult.SynchronizedCall() - Constructor for class li.cil.oc.api.machine.ExecutionResult.SynchronizedCall
 
exists(String) - Method in interface li.cil.oc.api.fs.FileSystem
Tests if a file or directory exists at the specified path.

F

facing() - Method in interface li.cil.oc.api.Rotatable
The current facing of a tile entity implementing this interface.
FileSystem - Class in li.cil.oc.api
This class provides factory methods for creating file systems that are compatible with the built-in file system driver.
FileSystem - Interface in li.cil.oc.api.fs
Interface for file system driver compatible file systems.
FileSystemAPI - Interface in li.cil.oc.api.detail
 
FloppyDisk - Static variable in class li.cil.oc.api.Items
 
fromClass(Class<?>, String, String) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Creates a new file system based on the location of a class.
fromClass(Class<?>, String, String) - Static method in class li.cil.oc.api.FileSystem
Creates a new file system based on the location of a class.
fromComputerCraft(dan200.computer.api.IMount) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Creates a new file system based on a read-only ComputerCraft mount.
fromComputerCraft(dan200.computer.api.IWritableMount) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Creates a new file system based on a read-write ComputerCraft mount.
fromComputerCraft(dan200.computercraft.api.filesystem.IMount) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Creates a new file system based on a read-only ComputerCraft mount.
fromComputerCraft(dan200.computercraft.api.filesystem.IWritableMount) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Creates a new file system based on a read-write ComputerCraft mount.
fromComputerCraft(dan200.computer.api.IMount) - Static method in class li.cil.oc.api.FileSystem
Creates a new file system based on a read-only ComputerCraft mount.
fromComputerCraft(dan200.computer.api.IWritableMount) - Static method in class li.cil.oc.api.FileSystem
Creates a new file system based on a read-write ComputerCraft mount.
fromComputerCraft(dan200.computercraft.api.filesystem.IMount) - Static method in class li.cil.oc.api.FileSystem
Creates a new file system based on a read-only ComputerCraft mount.
fromComputerCraft(dan200.computercraft.api.filesystem.IWritableMount) - Static method in class li.cil.oc.api.FileSystem
Creates a new file system based on a read-write ComputerCraft mount.
fromMemory(long) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Creates a new writable file system that resides in memory.
fromMemory(long) - Static method in class li.cil.oc.api.FileSystem
Creates a new writable file system that resides in memory.
fromSaveDirectory(String, long, boolean) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Creates a new writable file system in the save folder.
fromSaveDirectory(String, long, boolean) - Static method in class li.cil.oc.api.FileSystem
Creates a new writable file system in the save folder.
fromSaveDirectory(String, long) - Static method in class li.cil.oc.api.FileSystem
Same as FileSystem.fromSaveDirectory(String, long, boolean) with the buffered parameter being true, i.e.

G

getComponentName() - Method in interface li.cil.oc.api.network.SimpleComponent
The name the component should be made available as.
getCostPerTick() - Method in interface li.cil.oc.api.machine.Machine
Gets the amount of energy this machine consumes per tick when it is running.
getHandle(int) - Method in interface li.cil.oc.api.fs.FileSystem
Gets a wrapper for a file previously opened using FileSystem.open(java.lang.String, li.cil.oc.api.fs.Mode).
getLabel() - Method in interface li.cil.oc.api.fs.Label
Get the current value of this label.
getTileEntityClass() - Method in class li.cil.oc.api.prefab.DriverTileEntity
 
globalBuffer() - Method in interface li.cil.oc.api.network.Connector
The accumulative energy stored across all buffers in the node's network.
globalBufferSize() - Method in interface li.cil.oc.api.network.Connector
The accumulative size of all buffers in the node's network.
GraphicsCardTier1 - Static variable in class li.cil.oc.api.Items
 
GraphicsCardTier2 - Static variable in class li.cil.oc.api.Items
 
GraphicsCardTier3 - Static variable in class li.cil.oc.api.Items
 

H

Handle - Interface in li.cil.oc.api.fs
Represents a handle to a file opened from a FileSystem.
HardDiskTier2 - Static variable in class li.cil.oc.api.Items
 
HardDiskTier3 - Static variable in class li.cil.oc.api.Items
 
HardDriveTier1 - Static variable in class li.cil.oc.api.Items
 
HologramProjector - Static variable in class li.cil.oc.api.Blocks
 
hop() - Method in interface li.cil.oc.api.network.Packet
Generates a copy of the packet, with a reduced time to live.
host() - Method in interface li.cil.oc.api.network.Node
The environment hosting this node.

I

initialize() - Method in interface li.cil.oc.api.machine.Architecture
Called when a machine starts up.
installedMemory() - Method in interface li.cil.oc.api.machine.Owner
The amount of memory (RAM) made available to the machine, in bytes.
Instance - Static variable in class li.cil.oc.api.CreativeTab
The creative tab used by OpenComputers.
instance - Static variable in class li.cil.oc.api.Driver
 
instance - Static variable in class li.cil.oc.api.FileSystem
 
instance - Static variable in class li.cil.oc.api.Machine
 
instance - Static variable in class li.cil.oc.api.Network
 
InternetCard - Static variable in class li.cil.oc.api.Items
 
invalidate() - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
invalidate() - Method in class li.cil.oc.api.prefab.TileEntitySidedEnvironment
 
invoke(String, String, Object[]) - Method in interface li.cil.oc.api.machine.Machine
Makes the machine call a component callback.
invoke(String, Context, Object...) - Method in interface li.cil.oc.api.network.Component
Tries to call a function with the specified name on this component.
invoke(String, Context, Arguments) - Method in interface li.cil.oc.api.network.ManagedPeripheral
Calls a method from the list provided by ManagedPeripheral.methods().
IronNugget - Static variable in class li.cil.oc.api.Items
 
isBoolean(int) - Method in interface li.cil.oc.api.network.Arguments
Tests whether the argument at the specified index is a boolean value.
isByteArray(int) - Method in interface li.cil.oc.api.network.Arguments
Tests whether the argument at the specified index is a byte array.
isDirectory(String) - Method in interface li.cil.oc.api.fs.FileSystem
Tests whether the object at the specified path is a directory.
isDouble(int) - Method in interface li.cil.oc.api.network.Arguments
Tests whether the argument at the specified index is a double value.
isInitialized() - Method in interface li.cil.oc.api.machine.Architecture
Used to check if the machine is fully initialized.
isInteger(int) - Method in interface li.cil.oc.api.network.Arguments
Tests whether the argument at the specified index is an integer value.
isNeighborOf(Node) - Method in interface li.cil.oc.api.network.Node
Checks whether this node is a neighbor of the specified node.
isPaused() - Method in interface li.cil.oc.api.network.Context
Whether the computer is currently in a paused state.
isReadOnly() - Method in interface li.cil.oc.api.fs.FileSystem
Whether this file system is read-only.
isRunning() - Method in interface li.cil.oc.api.network.Context
Whether the computer is currently in a running state, i.e.
isString(int) - Method in interface li.cil.oc.api.network.Arguments
Tests whether the argument at the specified index is a string value.
isTable(int) - Method in interface li.cil.oc.api.network.Arguments
Tests whether the argument at the specified index is a table.
Item - Interface in li.cil.oc.api.driver
Interface for item component drivers.
Items - Class in li.cil.oc.api
Item stacks for all items OpenComputers defines.
items - Variable in class li.cil.oc.api.prefab.DriverItem
 

J

joinNewNetwork(Node) - Method in interface li.cil.oc.api.detail.NetworkAPI
Creates a new network with the specified node as its initial node.
joinNewNetwork(Node) - Static method in class li.cil.oc.api.Network
Creates a new network with the specified node as its initial node.
joinOrCreateNetwork(TileEntity) - Method in interface li.cil.oc.api.detail.NetworkAPI
Tries to add a tile entity's network node(s) at the specified coordinates to adjacent networks.
joinOrCreateNetwork(TileEntity) - Static method in class li.cil.oc.api.Network
Tries to add a tile entity's network node(s) at the specified coordinates to adjacent networks.
joinWirelessNetwork(WirelessEndpoint) - Method in interface li.cil.oc.api.detail.NetworkAPI
Makes a wireless endpoint join the wireless network defined by the mod.
joinWirelessNetwork(WirelessEndpoint) - Static method in class li.cil.oc.api.Network
Makes a wireless endpoint join the wireless network defined by the mod.

K

Keyboard - Static variable in class li.cil.oc.api.Blocks
 

L

Label - Interface in li.cil.oc.api.fs
Used by file system components to get and set the file system's label.
lastError() - Method in interface li.cil.oc.api.machine.Machine
A string with the last error message.
lastModified(String) - Method in interface li.cil.oc.api.fs.FileSystem
Gets the timestamp of the last time the file at the specified path was written to.
leaveWirelessNetwork(WirelessEndpoint) - Method in interface li.cil.oc.api.detail.NetworkAPI
Removes a wireless endpoint from the wireless network.
leaveWirelessNetwork(WirelessEndpoint) - Static method in class li.cil.oc.api.Network
Removes a wireless endpoint from the wireless network.
length() - Method in interface li.cil.oc.api.fs.Handle
The total length of the file.
li.cil.oc.api - package li.cil.oc.api
This API provides interfaces and factory methods for the OpenComputers mod.
li.cil.oc.api.detail - package li.cil.oc.api.detail
This package contains implementation detail interfaces.
li.cil.oc.api.driver - package li.cil.oc.api.driver
This package contains driver related interfaces.
li.cil.oc.api.fs - package li.cil.oc.api.fs
This package contains interfaces used by the file system implementation.
li.cil.oc.api.machine - package li.cil.oc.api.machine
This package provides low level machine access.
li.cil.oc.api.network - package li.cil.oc.api.network
 
li.cil.oc.api.prefab - package li.cil.oc.api.prefab
 
LimitReachedException - Exception in li.cil.oc.api.machine
Used to signal that the direct call limit for the current server tick has been reached in Machine.invoke(String, String, Object[]).
LimitReachedException() - Constructor for exception li.cil.oc.api.machine.LimitReachedException
 
list(String) - Method in interface li.cil.oc.api.fs.FileSystem
Gets a list of all items in the specified folder.
load(NBTTagCompound) - Method in interface li.cil.oc.api.machine.Architecture
Restores the state of this architecture as previously saved in Architecture.save(NBTTagCompound).
load(NBTTagCompound) - Method in interface li.cil.oc.api.Persistable
Restores a previous state of the object from the specified NBT tag.
load(NBTTagCompound) - Method in class li.cil.oc.api.prefab.ManagedEnvironment
 
localBuffer() - Method in interface li.cil.oc.api.network.Connector
The energy stored in the local buffer.
localBufferSize() - Method in interface li.cil.oc.api.network.Connector
The size of the local buffer.
LuaArchitecture - Static variable in class li.cil.oc.api.Machine
The built-in Lua architecture.

M

Machine - Class in li.cil.oc.api
This API is intended for people who would like to implement custom computer blocks or anything else hosting a computer.
Machine - Interface in li.cil.oc.api.machine
This interface allows interacting with a Machine obtained via the factory method Machine.create(Owner, Class).
MachineAPI - Interface in li.cil.oc.api.detail
 
makeDirectory(String) - Method in interface li.cil.oc.api.fs.FileSystem
Create the specified directory.
ManagedEnvironment - Interface in li.cil.oc.api.network
This kind of environment is managed by either a compatible inventory, such as a computer or floppy drive, or by an adapter block or similar.
ManagedEnvironment - Class in li.cil.oc.api.prefab
Simple base implementation of the ManagedEnvironment interface, so unused methods don't clutter the implementing class.
ManagedEnvironment() - Constructor for class li.cil.oc.api.prefab.ManagedEnvironment
 
ManagedPeripheral - Interface in li.cil.oc.api.network
This interface can be used with an Environment and is intended to be used for environments wrapping a ComputerCraft peripheral.
markAsChanged() - Method in interface li.cil.oc.api.machine.Owner
This is called by the machine when its state changed (which can be multiple times per actual game tick), to notify the owner that it should save its state on the next world save.
maxComponents() - Method in interface li.cil.oc.api.machine.Owner
The number of components the machine can address without crashing.
Memory - Interface in li.cil.oc.api.driver
Use this interface to implement item drivers extending the memory of a computer.
MemoryTier1 - Static variable in class li.cil.oc.api.Items
 
MemoryTier2 - Static variable in class li.cil.oc.api.Items
 
MemoryTier3 - Static variable in class li.cil.oc.api.Items
 
MemoryTier4 - Static variable in class li.cil.oc.api.Items
 
MemoryTier5 - Static variable in class li.cil.oc.api.Items
 
message - Variable in class li.cil.oc.api.machine.ExecutionResult.Error
The error message.
Message - Interface in li.cil.oc.api.network
This type is used to deliver messages sent in a component network.
methods() - Method in interface li.cil.oc.api.network.Component
The list of names of methods exposed by this component.
methods() - Method in interface li.cil.oc.api.network.ManagedPeripheral
Get the list of methods provided by this environment, in addition to methods marked as callbacks.
MethodWhitelist - Interface in li.cil.oc.api.driver
This interface can be implemented by environments to enforce a method whitelist.
MicrochipTier1 - Static variable in class li.cil.oc.api.Items
 
MicroChipTier2 - Static variable in class li.cil.oc.api.Items
 
MicroChipTier3 - Static variable in class li.cil.oc.api.Items
 
Mode - Enum in li.cil.oc.api.fs
Possible file modes.

N

name() - Method in interface li.cil.oc.api.machine.Architecture
A display friendly name of the architecture, mainly intended to be used when iterating all Machine.architectures().
name() - Method in interface li.cil.oc.api.machine.Signal
The name of the signal.
name() - Method in interface li.cil.oc.api.network.Component
The name of the node.
name() - Method in interface li.cil.oc.api.network.Message
The name of this message.
NamedBlock - Interface in li.cil.oc.api.driver
This interface can be added to environments generated by block drivers to provide a 'preferred name' in case the driver is merged with other block drivers (interface based drivers such as for IInventory).
neighbors(Node) - Method in interface li.cil.oc.api.network.Network
The list of nodes the specified node is directly connected to.
neighbors() - Method in interface li.cil.oc.api.network.Node
Get the list of neighbor nodes, i.e.
Network - Class in li.cil.oc.api
This class provides factories for networks and nodes.
Network - Interface in li.cil.oc.api.network
Interface for interacting with networks.
network() - Method in interface li.cil.oc.api.network.Node
The network this node is currently in.
NetworkAPI - Interface in li.cil.oc.api.detail
 
NetworkCard - Static variable in class li.cil.oc.api.Items
 
newNode(Environment, Visibility) - Method in interface li.cil.oc.api.detail.NetworkAPI
Factory function for creating new nodes.
newNode(Environment, Visibility) - Static method in class li.cil.oc.api.Network
Factory function for creating new nodes.
newPacket(String, String, int, Object[]) - Method in interface li.cil.oc.api.detail.NetworkAPI
Creates a new network packet as it would be sent or received by a network card.
newPacket(NBTTagCompound) - Method in interface li.cil.oc.api.detail.NetworkAPI
Re-creates a network packet from a previously stored state.
newPacket(String, String, int, Object[]) - Static method in class li.cil.oc.api.Network
Creates a new network packet as it would be sent or received by a network card.
newPacket(NBTTagCompound) - Static method in class li.cil.oc.api.Network
Re-creates a network packet from a previously stored state.
node() - Method in interface li.cil.oc.api.network.Context
The node through which the computer is attached to the component network.
node() - Method in interface li.cil.oc.api.network.Environment
The node this environment wraps.
node(String) - Method in interface li.cil.oc.api.network.Network
Get the network node with the specified address.
Node - Interface in li.cil.oc.api.network
A single node in a Network.
node - Variable in class li.cil.oc.api.prefab.ManagedEnvironment
 
node() - Method in class li.cil.oc.api.prefab.ManagedEnvironment
 
node - Variable in class li.cil.oc.api.prefab.TileEntityEnvironment
This must be set in subclasses to the node that is used to represent this tile entity.
node() - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
nodes() - Method in interface li.cil.oc.api.network.Network
The list of all nodes in this network.
nodes(Node) - Method in interface li.cil.oc.api.network.Network
The list of addressed nodes in the network visible to the specified node.
nodes - Variable in class li.cil.oc.api.prefab.TileEntitySidedEnvironment
 

O

onAnalyze(EntityPlayer, int, float, float, float) - Method in interface li.cil.oc.api.network.Analyzable
Called when a player uses the analyzer tool on the tile entity's block.
onChunkUnload() - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
onChunkUnload() - Method in class li.cil.oc.api.prefab.TileEntitySidedEnvironment
 
onConnect() - Method in interface li.cil.oc.api.machine.Architecture
Called when the owning machine was connected to the component network.
onConnect(Node) - Method in interface li.cil.oc.api.network.Environment
This is called when a node is added to a network.
onConnect(Node) - Method in class li.cil.oc.api.prefab.ManagedEnvironment
 
onConnect(Node) - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
onDisconnect(Node) - Method in interface li.cil.oc.api.network.Environment
This is called when a node is removed from the network.
onDisconnect(Node) - Method in class li.cil.oc.api.prefab.ManagedEnvironment
 
onDisconnect(Node) - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
onMachineConnect(Node) - Method in interface li.cil.oc.api.machine.Owner
This is called on the owner when the machine's Environment.onConnect(Node) method gets called.
onMachineDisconnect(Node) - Method in interface li.cil.oc.api.machine.Owner
Like Owner.onMachineConnect(Node), except that this is called whenever the machine's Environment.onDisconnect(Node) method is called.
onMessage(Message) - Method in interface li.cil.oc.api.network.Environment
This is the generic message handler.
onMessage(Message) - Method in class li.cil.oc.api.prefab.ManagedEnvironment
 
onMessage(Message) - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
open(String, Mode) - Method in interface li.cil.oc.api.fs.FileSystem
Opens a file for reading or writing.
owner() - Method in interface li.cil.oc.api.machine.Machine
The owner of the machine, usually a tile entity hosting the machine.
Owner - Interface in li.cil.oc.api.machine
This interface has to be implemented by 'owners' of machine instances.

P

Packet - Interface in li.cil.oc.api.network
These packets represent messages sent using a network card or wireless network card, and can be relayed by the switch and access point blocks.
pause(double) - Method in interface li.cil.oc.api.network.Context
Pauses the computer for the specified duration.
Persistable - Interface in li.cil.oc.api
An object that can be persisted to an NBT tag and restored back from it.
player() - Method in interface li.cil.oc.api.machine.Robot
Returns the fake player used to represent the robot as an entity for certain actions that require one.
player() - Method in interface li.cil.oc.api.network.RobotContext
Deprecated.
Returns the fake player used to represent the robot as an entity for certain actions that require one.
popSignal() - Method in interface li.cil.oc.api.machine.Machine
Tries to pop a signal from the queue and returns it.
port() - Method in interface li.cil.oc.api.network.Packet
The port this packet is being sent to.
position() - Method in interface li.cil.oc.api.fs.Handle
The current position in the file.
PowerConverter - Static variable in class li.cil.oc.api.Blocks
 
PowerDistributor - Static variable in class li.cil.oc.api.Blocks
 
preferredName() - Method in interface li.cil.oc.api.driver.NamedBlock
The preferred name, in case the driver is merged with others.
PrintedCircuitBoard - Static variable in class li.cil.oc.api.Items
 
Processor - Interface in li.cil.oc.api.driver
Use this interface to implement item drivers extending the number of components a server can control.

R

RawCircuitBoard - Static variable in class li.cil.oc.api.Items
 
reachability() - Method in interface li.cil.oc.api.network.Node
The reachability of this node.
reachableNodes() - Method in interface li.cil.oc.api.network.Node
Get the list of nodes reachable from this node, based on their Node.reachability().
read(byte[]) - Method in interface li.cil.oc.api.fs.Handle
Tries to read as much data from the file as fits into the specified array.
readFromNBT(NBTTagCompound) - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
readFromNBT(NBTTagCompound) - Method in class li.cil.oc.api.prefab.TileEntitySidedEnvironment
 
reboot - Variable in class li.cil.oc.api.machine.ExecutionResult.Shutdown
Whether to reboot.
receivePacket(Packet, double) - Method in interface li.cil.oc.api.network.WirelessEndpoint
Makes the endpoint receive a single packet.
recomputeMemory() - Method in interface li.cil.oc.api.machine.Architecture
This is called when the amount of memory in the machine may have changed.
RedstoneCard - Static variable in class li.cil.oc.api.Items
 
RedstoneIO - Static variable in class li.cil.oc.api.Blocks
 
remove(Node) - Method in interface li.cil.oc.api.network.Network
Removes a node from the network.
remove() - Method in interface li.cil.oc.api.network.Node
Removes this node from its network.
removeUser(String) - Method in interface li.cil.oc.api.machine.Machine
Removes a player as a user from this machine, by username.
rename(String, String) - Method in interface li.cil.oc.api.fs.FileSystem
Moves / renames a file or folder.
Robot - Static variable in class li.cil.oc.api.Blocks
 
Robot - Interface in li.cil.oc.api.machine
This interface allows interaction with robots.
RobotContext - Interface in li.cil.oc.api.network
Deprecated.
romAddress() - Method in interface li.cil.oc.api.machine.Machine
The address of the file system that holds the machine's read only data (rom).
Rotatable - Interface in li.cil.oc.api
This interface is implemented by the computer case and robot tile entities to allow item components to query the orientation of their host, i.e.
runSynchronized() - Method in interface li.cil.oc.api.machine.Architecture
Performs a synchronized call initialized in a previous call to Architecture.runThreaded(boolean).
runThreaded(boolean) - Method in interface li.cil.oc.api.machine.Architecture
Continues execution of the machine.

S

save(NBTTagCompound) - Method in interface li.cil.oc.api.machine.Architecture
Saves the architecture for later restoration, e.g.
save(NBTTagCompound) - Method in interface li.cil.oc.api.network.Packet
Saves the packet's data to the specified compound tag.
save(NBTTagCompound) - Method in interface li.cil.oc.api.Persistable
Saves the current state of the object into the specified NBT tag.
save(NBTTagCompound) - Method in class li.cil.oc.api.prefab.ManagedEnvironment
 
saveUpgrade() - Method in interface li.cil.oc.api.machine.Robot
Deprecated.
saveUpgrade() - Method in interface li.cil.oc.api.network.RobotContext
Deprecated.
Causes the currently installed upgrade to be saved and synchronized.
ScreenTier1 - Static variable in class li.cil.oc.api.Blocks
 
ScreenTier2 - Static variable in class li.cil.oc.api.Blocks
 
ScreenTier3 - Static variable in class li.cil.oc.api.Blocks
 
seek(long) - Method in interface li.cil.oc.api.fs.Handle
Jump to the specified position in the file, if possible.
selectedSlot() - Method in interface li.cil.oc.api.machine.Robot
Gets the index of the currently selected slot in the robot's inventory.
selectedSlot() - Method in interface li.cil.oc.api.network.RobotContext
Deprecated.
Gets the index of the currently selected slot in the robot's inventory.
sendToAddress(Node, String, String, Object...) - Method in interface li.cil.oc.api.network.Network
Sends a message to the node with the specified address.
sendToAddress(String, String, Object...) - Method in interface li.cil.oc.api.network.Node
Send a message to a node with the specified address.
sendToNeighbors(Node, String, Object...) - Method in interface li.cil.oc.api.network.Network
Sends a message to all addressed, visible neighbors of the source node.
sendToNeighbors(String, Object...) - Method in interface li.cil.oc.api.network.Node
Send a message to all neighbors of this node.
sendToReachable(Node, String, Object...) - Method in interface li.cil.oc.api.network.Network
Sends a message to all addressed nodes reachable to the source node.
sendToReachable(String, Object...) - Method in interface li.cil.oc.api.network.Node
Send a message to all nodes reachable from this node.
sendToVisible(Node, String, Object...) - Method in interface li.cil.oc.api.network.Network
Sends a message to all addressed nodes visible to the source node.
sendToVisible(String, Object...) - Method in interface li.cil.oc.api.network.Node
Send a message to all nodes visible from this node.
sendWirelessPacket(WirelessEndpoint, double, Packet) - Method in interface li.cil.oc.api.detail.NetworkAPI
Sends a packet via the wireless network.
sendWirelessPacket(WirelessEndpoint, double, Packet) - Static method in class li.cil.oc.api.Network
Sends a packet via the wireless network.
ServerRack - Static variable in class li.cil.oc.api.Blocks
 
ServerTier1 - Static variable in class li.cil.oc.api.Items
 
ServerTier2 - Static variable in class li.cil.oc.api.Items
 
ServerTier3 - Static variable in class li.cil.oc.api.Items
 
setCostPerTick(double) - Method in interface li.cil.oc.api.machine.Machine
Sets the amount of energy this machine consumes per tick when it is running.
setLabel(String) - Method in interface li.cil.oc.api.fs.Label
Set the new value of this label.
setLastModified(String, long) - Method in interface li.cil.oc.api.fs.FileSystem
Sets the time a file or folder was supposedly last modified.
setLocalBufferSize(double) - Method in interface li.cil.oc.api.network.Connector
Change the size of the connectors local buffer.
setVisibility(Visibility) - Method in interface li.cil.oc.api.network.Component
Set the visibility of this component.
SidedEnvironment - Interface in li.cil.oc.api.network
This interface is like ISidedInventory is to IInventory, it allows an environment to specify different node access for its different sides.
sidedNode(ForgeDirection) - Method in interface li.cil.oc.api.network.SidedEnvironment
The node this environment uses for the specified side.
sidedNode(ForgeDirection) - Method in class li.cil.oc.api.prefab.TileEntitySidedEnvironment
 
Signal - Interface in li.cil.oc.api.machine
A single signal that was queued on a machine.
signal(String, Object...) - Method in interface li.cil.oc.api.network.Context
Push a signal into the computer.
SimpleComponent - Interface in li.cil.oc.api.network
This interface can be used to easily convert tile entities to components, without having to implement Environment themselves.
size(String) - Method in interface li.cil.oc.api.fs.FileSystem
Gets the size of a file.
slot(ItemStack) - Method in interface li.cil.oc.api.driver.Item
The slot type of the specified item this driver supports.
Slot - Enum in li.cil.oc.api.driver
List of possible item component types.
source() - Method in interface li.cil.oc.api.network.Message
The node that sent the message.
source() - Method in interface li.cil.oc.api.network.Packet
The address of the original sender of this packet.
spaceTotal() - Method in interface li.cil.oc.api.fs.FileSystem
The total storage capacity of the file system, in bytes.
spaceUsed() - Method in interface li.cil.oc.api.fs.FileSystem
The used storage capacity of the file system, in bytes.
start() - Method in interface li.cil.oc.api.network.Context
Starts the computer.
stop() - Method in interface li.cil.oc.api.network.Context
Stops the computer.
supportedComponents(ItemStack) - Method in interface li.cil.oc.api.driver.Processor
The additional number of components supported if this processor is installed in the server.
Switch - Static variable in class li.cil.oc.api.Blocks
 

T

Terminal - Static variable in class li.cil.oc.api.Items
 
ticks - Variable in class li.cil.oc.api.machine.ExecutionResult.Sleep
The number of ticks to sleep.
tier(ItemStack) - Method in interface li.cil.oc.api.driver.Item
The tier of the specified item this driver supports.
tier(ItemStack) - Method in class li.cil.oc.api.prefab.DriverItem
 
TileEntityEnvironment - Class in li.cil.oc.api.prefab
TileEntities can implement the Environment interface to allow them to interact with the component network, by providing a Node and connecting it to said network.
TileEntityEnvironment() - Constructor for class li.cil.oc.api.prefab.TileEntityEnvironment
 
TileEntitySidedEnvironment - Class in li.cil.oc.api.prefab
TileEntities can implement the SidedEnvironment interface to allow them to interact with the component network, by providing a separate Node for each block face, and connecting it to said network.
TileEntitySidedEnvironment(Node...) - Constructor for class li.cil.oc.api.prefab.TileEntitySidedEnvironment
This expects a node per face that is used to represent this tile entity.
tmpAddress() - Method in interface li.cil.oc.api.machine.Machine
The address of the file system that holds the machine's temporary files (tmpfs).
Transistor - Static variable in class li.cil.oc.api.Items
 
tryChangeBuffer(double) - Method in interface li.cil.oc.api.network.Connector
Like Connector.changeBuffer(double), but will only store/consume the specified amount of energy if there is enough capacity/energy available.
ttl() - Method in interface li.cil.oc.api.network.Packet
The remaining 'time to live' for this packet.

U

update() - Method in interface li.cil.oc.api.network.ManagedEnvironment
This is called by the host of this managed environment once per tick.
update() - Method in class li.cil.oc.api.prefab.ManagedEnvironment
 
updateEntity() - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
updateEntity() - Method in class li.cil.oc.api.prefab.TileEntitySidedEnvironment
 
updateWirelessNetwork(WirelessEndpoint) - Method in interface li.cil.oc.api.detail.NetworkAPI
Updates a wireless endpoint in the wireless network.
updateWirelessNetwork(WirelessEndpoint) - Static method in class li.cil.oc.api.Network
Updates a wireless endpoint in the wireless network.
UpgradeCrafting - Static variable in class li.cil.oc.api.Items
 
UpgradeGenerator - Static variable in class li.cil.oc.api.Items
 
UpgradeNavigation - Static variable in class li.cil.oc.api.Items
 
UpgradeSign - Static variable in class li.cil.oc.api.Items
 
UpgradeSolarGenerator - Static variable in class li.cil.oc.api.Items
 
upTime() - Method in interface li.cil.oc.api.machine.Machine
The time that has passed since the machine was started, in seconds.
users() - Method in interface li.cil.oc.api.machine.Machine
The list of users registered on this machine.

V

valueOf(String) - Static method in enum li.cil.oc.api.driver.Slot
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum li.cil.oc.api.fs.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum li.cil.oc.api.network.Visibility
Returns the enum constant of this type with the specified name.
values() - Static method in enum li.cil.oc.api.driver.Slot
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum li.cil.oc.api.fs.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum li.cil.oc.api.network.Visibility
Returns an array containing the constants of this enum type, in the order they are declared.
visibility() - Method in interface li.cil.oc.api.network.Component
Get the visibility of this component.
Visibility - Enum in li.cil.oc.api.network
Possible reachability values for nodes.

W

whitelistedMethods() - Method in interface li.cil.oc.api.driver.MethodWhitelist
The list of methods allowed to be exposed for blocks this driver is used for.
WirelessEndpoint - Interface in li.cil.oc.api.network
Interface for wireless endpoints that can be registered with the internal wireless network registry.
WirelessNetworkCard - Static variable in class li.cil.oc.api.Items
 
withComponent(String, Visibility) - Method in interface li.cil.oc.api.detail.Builder.ConnectorBuilder
Makes the node a component.
withComponent(String) - Method in interface li.cil.oc.api.detail.Builder.ConnectorBuilder
Makes the node a component.
withComponent(String, Visibility) - Method in interface li.cil.oc.api.detail.Builder.NodeBuilder
Makes the node a component.
withComponent(String) - Method in interface li.cil.oc.api.detail.Builder.NodeBuilder
Makes the node a component.
withConnector(double) - Method in interface li.cil.oc.api.detail.Builder.ComponentBuilder
Makes the node a connector.
withConnector() - Method in interface li.cil.oc.api.detail.Builder.ComponentBuilder
Makes the node a connector.
withConnector(double) - Method in interface li.cil.oc.api.detail.Builder.NodeBuilder
Makes the node a connector.
withConnector() - Method in interface li.cil.oc.api.detail.Builder.NodeBuilder
Makes the node a connector.
worksWith(World, int, int, int) - Method in interface li.cil.oc.api.driver.Block
Used to determine the block types this driver handles.
worksWith(ItemStack) - Method in interface li.cil.oc.api.driver.Item
Used to determine the item types this driver handles.
worksWith(ItemStack) - Method in class li.cil.oc.api.prefab.DriverItem
 
worksWith(World, int, int, int) - Method in class li.cil.oc.api.prefab.DriverTileEntity
 
world() - Method in interface li.cil.oc.api.machine.Owner
The world the machine is running in, e.g.
world() - Method in interface li.cil.oc.api.network.WirelessEndpoint
The world this endpoint lives in.
worldTime() - Method in interface li.cil.oc.api.machine.Machine
The current world time.
write(byte[]) - Method in interface li.cil.oc.api.fs.Handle
Tries to write all the data from the specified array into the file.
writeToNBT(NBTTagCompound) - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
writeToNBT(NBTTagCompound) - Method in class li.cil.oc.api.prefab.TileEntitySidedEnvironment
 

X

x() - Method in interface li.cil.oc.api.machine.Owner
The X coordinate of this machine owner in the world, in block coordinates.
x() - Method in interface li.cil.oc.api.network.WirelessEndpoint
The X coordinate of the endpoint in the world, in block coordinates.

Y

y() - Method in interface li.cil.oc.api.machine.Owner
The Y coordinate of this machine owner in the world, in block coordinates.
y() - Method in interface li.cil.oc.api.network.WirelessEndpoint
The Y coordinate of the endpoint in the world, in block coordinates.

Z

z() - Method in interface li.cil.oc.api.machine.Owner
The Z coordinate of this machine owner in the world, in block coordinates.
z() - Method in interface li.cil.oc.api.network.WirelessEndpoint
The Z coordinate of the endpoint in the world, in block coordinates.
A B C D E F G H I J K L M N O P R S T U V W X Y Z