Block/adapter: Difference between revisions
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. | 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, | 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. | 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:
- 4 x Iron Ingot
- 3 x Cable
- 1 x Microchip (Tier 1)
- 1 x Printed Circuit Board
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 |
