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

AbstractValue - Class in li.cil.oc.api.prefab
Basic implementation for the Value interface.
AbstractValue() - Constructor for class li.cil.oc.api.prefab.AbstractValue
 
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.Node
The address of the node, so that it can be found in the network.
addUser(String) - Method in interface li.cil.oc.api.machine.Machine
Add a player to the machine's list of users, by username.
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.
apply(Context, Arguments) - Method in interface li.cil.oc.api.machine.Value
This is called when the code running on a machine tries to index this value.
apply(Context, Arguments) - Method in class li.cil.oc.api.prefab.AbstractValue
 
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, Container) - 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, Container) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Like FileSystemAPI.asManagedEnvironment(li.cil.oc.api.fs.FileSystem, Label, Container), 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, Container) - 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, Container) - Static method in class li.cil.oc.api.FileSystem
Like FileSystem.asManagedEnvironment(li.cil.oc.api.fs.FileSystem, Label, Container), 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() - Method in interface li.cil.oc.api.detail.ItemInfo
Returns the block type of the represented item.
Block - Interface in li.cil.oc.api.driver
Interface for block component drivers.
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.

C

call(Context, Arguments) - Method in interface li.cil.oc.api.machine.Value
This is called when the code running on a machine tries to call this value as a function.
call(Context, Arguments) - Method in class li.cil.oc.api.prefab.AbstractValue
 
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
 
changeBuffer(double) - Method in interface li.cil.oc.api.network.Connector
Try to apply the specified delta to the global buffer.
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.
clipboard(String, EntityPlayer) - Method in interface li.cil.oc.api.component.TextBuffer
Signals a clipboard paste event for the buffer.
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.
componentCount() - Method in interface li.cil.oc.api.machine.Robot
The number of built-in components in this robot.
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.
Container - Interface in li.cil.oc.api.driver
To be implemented by 'hosts' of components.
containerCount() - Method in interface li.cil.oc.api.machine.Robot
The number of hot-swappable component slots in this robot.
Context - Interface in li.cil.oc.api.network
This is used to provide some context to Callbacks, i.e.
convert(Object, Map<Object, Object>) - Method in interface li.cil.oc.api.driver.Converter
Converts a type to a Map.
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.
copy(int, int, int, int, int, int) - Method in interface li.cil.oc.api.component.TextBuffer
Copy a portion of the text buffer.
count() - Method in interface li.cil.oc.api.network.Arguments
The total number of arguments that were passed to the function.
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, Container) - Method in interface li.cil.oc.api.driver.Item
Create a new managed environment interfacing the specified item.
createItemStack(int) - Method in interface li.cil.oc.api.detail.ItemInfo
Creates a new item stack of the item represended by this descriptor.
CreativeTab - Class in li.cil.oc.api
Allows access to the creative tab used by OpenComputers.

D

damageRate - Variable in class li.cil.oc.api.event.RobotUsedTool
 
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.
direction - Variable in class li.cil.oc.api.event.RobotMoveEvent
The direction in which the robot will be moving.
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.
dispose(Context) - Method in interface li.cil.oc.api.machine.Value
This is called when the object's representation in the machine it was pushed to is garbage collected.
dispose(Context) - Method in class li.cil.oc.api.prefab.AbstractValue
 
documentation(String, String) - Method in interface li.cil.oc.api.machine.Machine
Retrieves the docstring for the specified method of the specified component.
documentation(Value, String) - Method in interface li.cil.oc.api.machine.Machine
Retrieves the docstring for the specified method of the specified value.
Driver - Class in li.cil.oc.api
This API allows registering new drivers with the mod.
DriverAPI - Interface in li.cil.oc.api.detail
 
driverFor(World, int, int, int) - Method in interface li.cil.oc.api.detail.DriverAPI
Looks up a driver for the block at the specified position in the specified world.
driverFor(ItemStack) - Method in interface li.cil.oc.api.detail.DriverAPI
Looks up a driver for the specified item stack.
driverFor(World, int, int, int) - Static method in class li.cil.oc.api.Driver
Looks up a driver for the block at the specified position in the specified world.
driverFor(ItemStack) - Static method in class li.cil.oc.api.Driver
Looks up a driver for the specified item stack.
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
 
exhaustion - Variable in class li.cil.oc.api.event.RobotExhaustionEvent
The amount of exhaustion that was generated.
exists(String) - Method in interface li.cil.oc.api.fs.FileSystem
Tests if a file or directory exists at the specified path.
experience - Variable in class li.cil.oc.api.event.RobotBreakBlockEvent.Post
The amount of experience the block that was broken generated (e.g.

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
 
fill(int, int, int, int, char) - Method in interface li.cil.oc.api.component.TextBuffer
Fill a portion of the text buffer.
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(Object) - Method in interface li.cil.oc.api.detail.FileSystemAPI
Creates a new file system based on a read-only ComputerCraft mount.
fromComputerCraft(Object) - Static method in class li.cil.oc.api.FileSystem
Creates a new file system based on a 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

get(int, int) - Method in interface li.cil.oc.api.component.TextBuffer
Get the character in the text buffer at the specified location.
get(String) - Method in interface li.cil.oc.api.detail.ItemAPI
Get a descriptor object for the block or item with the specified name.
get(ItemStack) - Method in interface li.cil.oc.api.detail.ItemAPI
Get a descriptor object for the block or item represented by the specified item stack.
get(String) - Static method in class li.cil.oc.api.Items
Get a descriptor object for the block or item with the specified name.
get(ItemStack) - Static method in class li.cil.oc.api.Items
Get a descriptor object for the block or item represented by the specified item stack.
getAspectRatio() - Method in interface li.cil.oc.api.component.TextBuffer
Get the aspect ratio of the buffer.
getBackgroundColor() - Method in interface li.cil.oc.api.component.TextBuffer
The active background color.
getBackgroundColor(int, int) - Method in interface li.cil.oc.api.component.TextBuffer
Get the background color of the text buffer at the specified location.
getBreakTime() - Method in class li.cil.oc.api.event.RobotBreakBlockEvent.Pre
Gets the time that it will take to break the block.
getColorDepth() - Method in interface li.cil.oc.api.component.TextBuffer
Get the active color depth of this buffer.
getComponentInSlot(int) - Method in interface li.cil.oc.api.machine.Robot
Get the environment for the component in the specified slot.
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.
getDamageRate() - Method in class li.cil.oc.api.event.RobotUsedTool
The rate at which the used tool should lose durability, where one means it loses durability at full speed, zero means it doesn't lose durability at all.
getEnergyCostPerTick() - Method in interface li.cil.oc.api.component.TextBuffer
Get the energy cost per tick.
getForegroundColor() - Method in interface li.cil.oc.api.component.TextBuffer
The active foreground color.
getForegroundColor(int, int) - Method in interface li.cil.oc.api.component.TextBuffer
Get the foreground color of the text buffer at the specified location.
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).
getHeight() - Method in interface li.cil.oc.api.component.TextBuffer
Get the current vertical resolution.
getLabel() - Method in interface li.cil.oc.api.fs.Label
Get the current value of this label.
getMaximumColorDepth() - Method in interface li.cil.oc.api.component.TextBuffer
Get the maximum color depth supported.
getMaximumHeight() - Method in interface li.cil.oc.api.component.TextBuffer
Get the maximum vertical size of the buffer.
getMaximumWidth() - Method in interface li.cil.oc.api.component.TextBuffer
Get the maximum horizontal size of the buffer.
getPaletteColor(int) - Method in interface li.cil.oc.api.component.TextBuffer
Get the color in the active color palette at the specified index.
getPowerState() - Method in interface li.cil.oc.api.component.TextBuffer
Get the current power state.
getStackInSlot(int) - Method in interface li.cil.oc.api.machine.Robot
Get the item stack in the specified inventory slot.
getTileEntityClass() - Method in class li.cil.oc.api.prefab.DriverTileEntity
 
getWidth() - Method in interface li.cil.oc.api.component.TextBuffer
Get the current horizontal resolution.
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.

H

Handle - Interface in li.cil.oc.api.fs
Represents a handle to a file opened from a FileSystem.
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.Items
 
instance - Static variable in class li.cil.oc.api.Machine
 
instance - Static variable in class li.cil.oc.api.Network
 
invalidate() - Method in class li.cil.oc.api.prefab.TileEntityEnvironment
 
invalidate() - Method in class li.cil.oc.api.prefab.TileEntitySidedEnvironment
 
Inventory - Interface in li.cil.oc.api.driver
This interface marks drivers for robot upgrades that provide inventory space to the robot.
inventoryCapacity(ItemStack) - Method in interface li.cil.oc.api.driver.Inventory
The additional amount of inventory space the specified item provides.
inventorySize() - Method in interface li.cil.oc.api.machine.Robot
The size of the internal inventory in this robot, excluding tool and component slots.
invoke(String, String, Object[]) - Method in interface li.cil.oc.api.machine.Machine
Makes the machine call a component callback.
invoke(Value, String, Object[]) - Method in interface li.cil.oc.api.machine.Machine
Makes the machine call a value 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().
isAllowed() - Method in class li.cil.oc.api.event.RobotPlaceInAirEvent
Whether the placement is allowed.
isBackgroundFromPalette() - Method in interface li.cil.oc.api.component.TextBuffer
true if the background color is from the color palette, meaning the value returned from TextBuffer.getBackgroundColor() is the color palette index.
isBackgroundFromPalette(int, int) - Method in interface li.cil.oc.api.component.TextBuffer
Whether the background color of the text buffer at the specified location if from the color palette.
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.
isForegroundFromPalette() - Method in interface li.cil.oc.api.component.TextBuffer
true if the foreground color is from the color palette, meaning the value returned from TextBuffer.getForegroundColor() is the color palette index.
isForegroundFromPalette(int, int) - Method in interface li.cil.oc.api.component.TextBuffer
Whether the foreground color of the text buffer at the specified location if from the color palette.
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.
isRenderingEnabled() - Method in interface li.cil.oc.api.component.TextBuffer
Gets whether the contents of the buffer should currently be rendered.
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.
isUsableByPlayer(Keyboard, EntityPlayer) - Method in interface li.cil.oc.api.component.Keyboard.UsabilityChecker
Whether the specified keyboard is usable by the specified player.
item() - Method in interface li.cil.oc.api.detail.ItemInfo
Returns the item type of the represented item.
Item - Interface in li.cil.oc.api.driver
Interface for item component drivers.
ItemAPI - Interface in li.cil.oc.api.detail
 
ItemInfo - Interface in li.cil.oc.api.detail
 
Items - Class in li.cil.oc.api
Access to item definitions for all blocks and items provided by OpenComputers.
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 - Interface in li.cil.oc.api.component
This interface is implemented by the keyboard component, to allow more flexible use of it.
Keyboard.UsabilityChecker - Interface in li.cil.oc.api.component
Contract interface that has to implemented for usability check overides.
keyDown(char, int, EntityPlayer) - Method in interface li.cil.oc.api.component.TextBuffer
Signals a key down event for the buffer.
keyUp(char, int, EntityPlayer) - Method in interface li.cil.oc.api.component.TextBuffer
Signals a key up event for the buffer.

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.component - package li.cil.oc.api.component
This package contains component specific interfaces.
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.event - package li.cil.oc.api.event
 
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.AbstractValue
 
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.
markChanged() - Method in interface li.cil.oc.api.driver.Container
Marks the container as "changed" so that it knows it has to be saved again in 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.
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.
Mode - Enum in li.cil.oc.api.fs
Possible file modes.
mountPoints - Variable in class li.cil.oc.api.event.RobotRenderEvent
Points on the robot at which component models may be rendered.
mouseDown(int, int, int, EntityPlayer) - Method in interface li.cil.oc.api.component.TextBuffer
Signals a mouse button down event for the buffer.
mouseDrag(int, int, int, EntityPlayer) - Method in interface li.cil.oc.api.component.TextBuffer
Signals a mouse drag event for the buffer.
mouseScroll(int, int, int, EntityPlayer) - Method in interface li.cil.oc.api.component.TextBuffer
Signals a mouse wheel scroll event for the buffer.
mouseUp(int, int, int, EntityPlayer) - Method in interface li.cil.oc.api.component.TextBuffer
Signals a mouse button release event for the buffer.

N

name() - Method in interface li.cil.oc.api.detail.ItemInfo
The name of this item descriptor.
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
 
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

offset - Variable in class li.cil.oc.api.event.RobotRenderEvent.MountPoint
The position of the mount point, relative to the robot's center.
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 - Variable in class li.cil.oc.api.event.RobotAnalyzeEvent
The player that used the analyzer.
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.
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.
preferredName() - Method in interface li.cil.oc.api.driver.NamedBlock
The preferred name, in case the driver is merged with others.
Processor - Interface in li.cil.oc.api.driver
Use this interface to implement item drivers extending the number of components a server can control.
providedSlot(ItemStack) - Method in interface li.cil.oc.api.driver.UpgradeContainer
Deprecated.
This will be replaced in 1.4, where slot types will then be referred to by name (using Strings) instead, to make this system more flexible (not requiring an API change for each new slot type, e.g.).
providedTier(ItemStack) - Method in interface li.cil.oc.api.driver.UpgradeContainer
The maximum item tier of the items that can be placed into the slot provided by the specified container.

R

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.
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.
renderHeight() - Method in interface li.cil.oc.api.component.TextBuffer
The natural height of the rendered text.
renderText() - Method in interface li.cil.oc.api.component.TextBuffer
Renders the text displayed on the buffer.
renderWidth() - Method in interface li.cil.oc.api.component.TextBuffer
The natural width of the rendered text.
robot - Variable in class li.cil.oc.api.event.RobotEvent
The robot for which this event was fired.
Robot - Interface in li.cil.oc.api.machine
This interface allows interaction with robots.
RobotAnalyzeEvent - Class in li.cil.oc.api.event
Fired when an analyzer is used on a robot.
RobotAnalyzeEvent(Robot, EntityPlayer) - Constructor for class li.cil.oc.api.event.RobotAnalyzeEvent
 
RobotAttackEntityEvent - Class in li.cil.oc.api.event
 
RobotAttackEntityEvent(Robot, Entity) - Constructor for class li.cil.oc.api.event.RobotAttackEntityEvent
 
RobotAttackEntityEvent.Post - Class in li.cil.oc.api.event
Fired after a robot has attacked an entity.
RobotAttackEntityEvent.Post(Robot, Entity) - Constructor for class li.cil.oc.api.event.RobotAttackEntityEvent.Post
 
RobotAttackEntityEvent.Pre - Class in li.cil.oc.api.event
Fired when a robot is about to attack an entity.
RobotAttackEntityEvent.Pre(Robot, Entity) - Constructor for class li.cil.oc.api.event.RobotAttackEntityEvent.Pre
 
RobotBreakBlockEvent - Class in li.cil.oc.api.event
 
RobotBreakBlockEvent(Robot) - Constructor for class li.cil.oc.api.event.RobotBreakBlockEvent
 
RobotBreakBlockEvent.Post - Class in li.cil.oc.api.event
Fired after a robot broke a block.
RobotBreakBlockEvent.Post(Robot, double) - Constructor for class li.cil.oc.api.event.RobotBreakBlockEvent.Post
 
RobotBreakBlockEvent.Pre - Class in li.cil.oc.api.event
Fired when a robot is about to break a block.
RobotBreakBlockEvent.Pre(Robot, World, int, int, int, double) - Constructor for class li.cil.oc.api.event.RobotBreakBlockEvent.Pre
 
RobotEvent - Class in li.cil.oc.api.event
Base class for events generated by robots.
RobotEvent(Robot) - Constructor for class li.cil.oc.api.event.RobotEvent
 
RobotExhaustionEvent - Class in li.cil.oc.api.event
Fired when a robot performed an action that would cause exhaustion for a player.
RobotExhaustionEvent(Robot, double) - Constructor for class li.cil.oc.api.event.RobotExhaustionEvent
 
RobotMoveEvent - Class in li.cil.oc.api.event
 
RobotMoveEvent(Robot, ForgeDirection) - Constructor for class li.cil.oc.api.event.RobotMoveEvent
 
RobotMoveEvent.Post - Class in li.cil.oc.api.event
Fired after a robot moved.
RobotMoveEvent.Post(Robot, ForgeDirection) - Constructor for class li.cil.oc.api.event.RobotMoveEvent.Post
 
RobotMoveEvent.Pre - Class in li.cil.oc.api.event
Fired when a robot is about to move.
RobotMoveEvent.Pre(Robot, ForgeDirection) - Constructor for class li.cil.oc.api.event.RobotMoveEvent.Pre
 
RobotPlaceBlockEvent - Class in li.cil.oc.api.event
 
RobotPlaceBlockEvent(Robot, ItemStack, World, int, int, int) - Constructor for class li.cil.oc.api.event.RobotPlaceBlockEvent
 
RobotPlaceBlockEvent.Post - Class in li.cil.oc.api.event
Fired after a robot placed a block.
RobotPlaceBlockEvent.Post(Robot, ItemStack, World, int, int, int) - Constructor for class li.cil.oc.api.event.RobotPlaceBlockEvent.Post
 
RobotPlaceBlockEvent.Pre - Class in li.cil.oc.api.event
Fired when a robot is about to place a block.
RobotPlaceBlockEvent.Pre(Robot, ItemStack, World, int, int, int) - Constructor for class li.cil.oc.api.event.RobotPlaceBlockEvent.Pre
 
RobotPlaceInAirEvent - Class in li.cil.oc.api.event
This event is fired when a robot tries to place a block and has no point of reference, i.e.
RobotPlaceInAirEvent(Robot) - Constructor for class li.cil.oc.api.event.RobotPlaceInAirEvent
 
RobotRenderEvent - Class in li.cil.oc.api.event
Fired directly before the robot's chassis is rendered.
RobotRenderEvent(Robot, RobotRenderEvent.MountPoint[]) - Constructor for class li.cil.oc.api.event.RobotRenderEvent
 
RobotRenderEvent.MountPoint - Class in li.cil.oc.api.event
Describes points on the robot model at which components are "mounted", i.e.
RobotRenderEvent.MountPoint() - Constructor for class li.cil.oc.api.event.RobotRenderEvent.MountPoint
 
RobotUsedTool - Class in li.cil.oc.api.event
 
RobotUsedTool(Robot, ItemStack, ItemStack, double) - Constructor for class li.cil.oc.api.event.RobotUsedTool
 
RobotUsedTool.ApplyDamageRate - Class in li.cil.oc.api.event
Fired when a robot used a tool and the previously fired damage rate computation returned a value smaller than one.
RobotUsedTool.ApplyDamageRate(Robot, ItemStack, ItemStack, double) - Constructor for class li.cil.oc.api.event.RobotUsedTool.ApplyDamageRate
 
RobotUsedTool.ComputeDamageRate - Class in li.cil.oc.api.event
Fired when a robot used a tool and is about to apply the damage rate to partially undo the durability loss.
RobotUsedTool.ComputeDamageRate(Robot, ItemStack, ItemStack, double) - Constructor for class li.cil.oc.api.event.RobotUsedTool.ComputeDamageRate
 
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.
rotation - Variable in class li.cil.oc.api.event.RobotRenderEvent.MountPoint
The orientation of the mount point specified by the angle and the vector to rotate around.
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.AbstractValue
 
save(NBTTagCompound) - Method in class li.cil.oc.api.prefab.ManagedEnvironment
 
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.
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.
set(int, int, String, boolean) - Method in interface li.cil.oc.api.component.TextBuffer
Write a string into the text buffer.
setAllowed(boolean) - Method in class li.cil.oc.api.event.RobotPlaceInAirEvent
Set whether the placement is allowed, can be used to allow robots to place blocks in thin air.
setAspectRatio(double, double) - Method in interface li.cil.oc.api.component.TextBuffer
Set the 'aspect ratio' of the buffer.
setBackgroundColor(int) - Method in interface li.cil.oc.api.component.TextBuffer
Set the active background color, not using a palette.
setBackgroundColor(int, boolean) - Method in interface li.cil.oc.api.component.TextBuffer
Set the active background color.
setBreakTime(double) - Method in class li.cil.oc.api.event.RobotBreakBlockEvent.Pre
Sets the time it should take the robot to break the block.
setColorDepth(TextBuffer.ColorDepth) - Method in interface li.cil.oc.api.component.TextBuffer
Set the active color depth for this buffer.
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.
setDamageRate(double) - Method in class li.cil.oc.api.event.RobotUsedTool.ComputeDamageRate
Set the rate at which the tool actually gets damaged.
setEnergyCostPerTick(double) - Method in interface li.cil.oc.api.component.TextBuffer
Controls how much energy the buffer will consume per tick.
setForegroundColor(int) - Method in interface li.cil.oc.api.component.TextBuffer
Set the active foreground color, not using a palette.
setForegroundColor(int, boolean) - Method in interface li.cil.oc.api.component.TextBuffer
Set the active foreground color.
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.
setMaximumColorDepth(TextBuffer.ColorDepth) - Method in interface li.cil.oc.api.component.TextBuffer
Sets the maximum color depth supported by this buffer.
setMaximumResolution(int, int) - Method in interface li.cil.oc.api.component.TextBuffer
Sets the maximum resolution supported by this buffer.
setPaletteColor(int, int) - Method in interface li.cil.oc.api.component.TextBuffer
Set the color of the active color palette at the specified index.
setPowerState(boolean) - Method in interface li.cil.oc.api.component.TextBuffer
Set whether the buffer is powered on.
setRenderingEnabled(boolean) - Method in interface li.cil.oc.api.component.TextBuffer
Set whether the contents of the buffer should currently be rendered.
setResolution(int, int) - Method in interface li.cil.oc.api.component.TextBuffer
Set the buffer's active resolution.
setUsableOverride(Keyboard.UsabilityChecker) - Method in interface li.cil.oc.api.component.Keyboard
Sets a custom usability override.
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.
size() - Method in interface li.cil.oc.api.network.Packet
The size of the packet's payload.
slot(ItemStack) - Method in interface li.cil.oc.api.driver.Item
Deprecated.
This will be replaced in 1.4, where slot types will then be referred to by name (using Strings) instead, to make this system more flexible (not requiring an API change for each new slot type, e.g.).
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.
stack - Variable in class li.cil.oc.api.event.RobotPlaceBlockEvent
The item that is used to place the block.
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.
synchronizeSlot(int) - Method in interface li.cil.oc.api.machine.Robot
Sends the state of the item in the specified slot to the client if it is an upgrade.

T

target - Variable in class li.cil.oc.api.event.RobotAttackEntityEvent
The entity that the robot will attack.
TextBuffer - Interface in li.cil.oc.api.component
This interface implements functionality for displaying and manipulating text, like screens and robots.
TextBuffer.ColorDepth - Enum in li.cil.oc.api.component
Used when setting a buffer's maximum color depth.
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).
toGlobal(ForgeDirection) - Method in interface li.cil.oc.api.Rotatable
Converts a facing relative to the block's local coordinate system to a global orientation, using south as the standard orientation.
toLocal(ForgeDirection) - Method in interface li.cil.oc.api.Rotatable
Converts a global orientation to a facing relative to the block's local coordinate system, using south as the standard orientation.
toolAfterUse - Variable in class li.cil.oc.api.event.RobotUsedTool
The tool that was used, before and after use.
toolBeforeUse - Variable in class li.cil.oc.api.event.RobotUsedTool
The tool that was used, before and after use.
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

unapply(Context, Arguments) - Method in interface li.cil.oc.api.machine.Value
This is called when the code running on a machine tries to assign a new value at the specified index of this value.
unapply(Context, Arguments) - Method in class li.cil.oc.api.prefab.AbstractValue
 
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.
UpgradeContainer - Interface in li.cil.oc.api.driver
May be implemented by drivers for robot upgrades that act as hotswap bays, i.e.
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

Value - Interface in li.cil.oc.api.machine
A value object can be pushed to a machine like a primitive value.
valueOf(String) - Static method in enum li.cil.oc.api.component.TextBuffer.ColorDepth
Returns the enum constant of this type with the specified name.
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.component.TextBuffer.ColorDepth
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.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.
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.driver.Container
The world the container lives in.
world - Variable in class li.cil.oc.api.event.RobotBreakBlockEvent.Pre
The world in which the block will be broken.
world - Variable in class li.cil.oc.api.event.RobotPlaceBlockEvent
The world in which the block will be placed.
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 - Variable in class li.cil.oc.api.event.RobotBreakBlockEvent.Pre
The coordinates at which the block will be broken.
x - Variable in class li.cil.oc.api.event.RobotPlaceBlockEvent
The coordinates at which the block will be placed.
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.
xPosition() - Method in interface li.cil.oc.api.driver.Container
The container's X position in the world.

Y

y - Variable in class li.cil.oc.api.event.RobotBreakBlockEvent.Pre
The coordinates at which the block will be broken.
y - Variable in class li.cil.oc.api.event.RobotPlaceBlockEvent
The coordinates at which the block will be placed.
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.
yPosition() - Method in interface li.cil.oc.api.driver.Container
The container's Y position in the world.

Z

z - Variable in class li.cil.oc.api.event.RobotBreakBlockEvent.Pre
The coordinates at which the block will be broken.
z - Variable in class li.cil.oc.api.event.RobotPlaceBlockEvent
The coordinates at which the block will be placed.
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.
zPosition() - Method in interface li.cil.oc.api.driver.Container
The container's Z position in the world.
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