Mention interface renaming in scripting docs and vice versa.
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
|
||||
Bus interfaces connect external devices to [computers](computer.md). This includes explicit device blocks, such as the [redstone interface](redstone_interface.md). Some generic functionality blocks of blocks is also available, such as information on energy storage.
|
||||
|
||||
It is possible to configure an explicit name for a bus interface using a [wrench](../item/wrench.md). This is useful when attaching multiple devices of the same type to a computer: when searching devices by name, these custom names will also work.
|
||||
It is possible to configure an explicit name for a bus interface using a [wrench](../item/wrench.md). This is useful when attaching multiple devices of the same type to a computer: when searching devices by type name (`devices:find(typeName)`), these custom names will also work.
|
||||
|
||||
Note that [computers](computer.md) must also be explicitly connected to a [bus](bus_cable.md) with a bus connector.
|
||||
Note that [computers](computer.md) must also be explicitly connected to a [bus](bus_cable.md) with a bus connector.
|
||||
|
||||
@@ -14,7 +14,7 @@ To use the `devices` library, import it using `require("devices")`.
|
||||
- `id` is the unique identifier of the device.
|
||||
- Returns a wrapper for the specified device.
|
||||
|
||||
`find(typeName):Device` returns a wrapper for a device of the specified type. If there are many devices of this type, it is undefined which one will be returned.
|
||||
`find(typeName):Device` returns a wrapper for a device of the specified type. If there are many devices of this type, it is undefined which one will be returned. Aliases set in [Bus Interfaces](block/bus_interface.md) may also be used.
|
||||
- `typeName` is the device type for which to find a device.
|
||||
- Returns a wrapper for a device of the specified device.
|
||||
|
||||
@@ -72,4 +72,4 @@ The lamp should now light up!
|
||||
|
||||

|
||||
|
||||
With this, you have the tools to learn the names of connected devices, which methods they offer and how to obtain their documentation. Go ahead and experiment with the other methods of the redstone interface to read incoming redstone signals, or try out other devices!
|
||||
With this, you have the tools to learn the names of connected devices, which methods they offer and how to obtain their documentation. Go ahead and experiment with the other methods of the redstone interface to read incoming redstone signals, or try out other devices!
|
||||
|
||||
Reference in New Issue
Block a user