added a generic wrapper for cc peripherals that can be enabled via config, should be used with caution since depending on what the peripheral's methods do this may crash or deadlock the game. the recommended approach would be to add explicit drivers for tested peripherals (that's just a matter of extending DriverPeripheral and overriding the getTileEntityClass method then).
4 files changed
tree: 65646c76cd8fba1cee9eff6156b2e9b35eee2067
  1. README.md
  2. src/main/
README.md

This is an addon for OpenComputers, providing drivers for additional blocks to be accessible via the Adapter block. It is not a full re-implementation of OpenPeripherals for OpenComputers, it's a little more simplistic in its architecture only provides drivers for a subset of the blocks OP supports - for now, anyway.

Contributing

Please refer to the existing code to get an idea for the code conventions. Formatting is generally done using the IntelliJ autoformatter, so if you can use that or a compatible configuration that will help greatly.

We'd be happy for added compatibility for any mod, as long as this mod does not become dependent on the other mod. All mod support must be purely optional. This mod must work fine in a Minecraft installation that has OpenComputers as the only other mod in it. Please also stick to read-only behavior for the most part. There are always exceptions to the rule, of course. For example, the IInventory driver allows manipulating inventories in a fashion similar to how robots can manipulate their own inventory.