Block/adapter: Difference between revisions

From OpenComputers: Rebooted
Jump to navigation Jump to search
imported>OCDoc Import
Imported from legacy OpenComputers documentation at ocdoc.cil.li
 
Remove ancient references to OpenComponents
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
[[File:blocks_adapter.png|128px]]
[[File:blocks_adapter.png|128px]]


Used to control non-component blocks, such as vanilla blocks or blocks from other mods. <s>You will most likely also install [OpenComponents](https://github.com/MightyPirates/OpenComponents) to make this block more useful.</s>
Used to control non-component blocks, such as vanilla blocks or blocks from other mods.


This block allows interfacing with all kinds of blocks, as long as a driver is made available to OpenComputers. For example, <s>OpenComponents</s> OpenComputers comes with such drivers for the vanilla Command Block and Note Block, as well as drivers for a bunch of tech mods such as BuildCraft IndustrialCraft2 and ThermalExpansion. <s>OpenComponents</s> OpenComputers will also allow the Adapter to interface with most ComputerCraft peripherals.
This block allows interfacing with all kinds of blocks, as long as a driver is made available to OpenComputers. For example, OpenComputers comes with such drivers for the vanilla Command Block and Note Block, as well as drivers for a bunch of tech mods such as BuildCraft IndustrialCraft2 and ThermalExpansion. OpenComputers will also allow the Adapter to interface with most ComputerCraft peripherals.


If you're a modder it's pretty easy to write a driver, you just have to implement the corresponding interface from the API and register it with OpenComputers in the init phase. <s>Have a look at the implementation of OpenComponents, if you find [the documentation](https://github.com/MightyPirates/OpenComputers/tree/master/src/main/java/li/cil/oc/api) in the interfaces is insufficient.</s> Have a look at existing implementations within [OpenComputers](https://github.com/MightyPirates/OpenComputers/tree/master-MC1.8/src/main/scala/li/cil/oc/integration) if you find the documentations in the interfaces is insufficient.
If you're a modder it's pretty easy to write a driver, you just have to implement the corresponding interface from the API and register it with OpenComputers in the init phase. Have a look at existing implementations within [https://github.com/MightyPirates/OpenComputers/tree/master-MC1.8/src/main/scala/li/cil/oc/integration OpenComputers] if you find the documentations in the interfaces is insufficient.


The Adapter is crafted using the following recipe:
The Adapter is crafted using the following recipe:
Line 21: Line 21:


{{:Block/contents}}
{{:Block/contents}}

Latest revision as of 01:54, 15 October 2026

Adapter

Used to control non-component blocks, such as vanilla blocks or blocks from other mods.

This block allows interfacing with all kinds of blocks, as long as a driver is made available to OpenComputers. For example, OpenComputers comes with such drivers for the vanilla Command Block and Note Block, as well as drivers for a bunch of tech mods such as BuildCraft IndustrialCraft2 and ThermalExpansion. OpenComputers will also allow the Adapter to interface with most ComputerCraft peripherals.

If you're a modder it's pretty easy to write a driver, you just have to implement the corresponding interface from the API and register it with OpenComputers in the init phase. Have a look at existing implementations within OpenComputers if you find the documentations in the interfaces is insufficient.

The Adapter is crafted using the following recipe:

Contents

Blocks
Computers Computer Case - Server Rack - Microcontrollers
Display Hologram Projector - Keyboard - Projector - Screen
Power and Networking Capacitor - Net Splitter - Power Converter - Power Distributor - Relay
Extensions Adapter - Cable - Disassembler - Disk Drive - Geolyzer - Motion Sensor - Redstone I/O - Transposer - 3D Printer
Robotics Assembler - Charger - Drone - Robot - Waypoint