mirror of
https://github.com/MincoMK/computercraft-ts.git
synced 2025-12-10 06:23:19 +00:00
fix: add redstone.getSides()
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "computercraft-ts",
|
"name": "computercraft-ts",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|||||||
6
types/index.d.ts
vendored
6
types/index.d.ts
vendored
@@ -1116,6 +1116,12 @@ declare global {
|
|||||||
* Get and set redstone signals adjacent to this computer.
|
* Get and set redstone signals adjacent to this computer.
|
||||||
*/
|
*/
|
||||||
namespace redstone {
|
namespace redstone {
|
||||||
|
/**
|
||||||
|
* Returns a table containing the six sides of the computer. Namely, "top", "bottom", "left", "right", "front" and "back".
|
||||||
|
* @returns A table of valid sides.
|
||||||
|
*/
|
||||||
|
function getSides(): string[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current redstone output on a specific side.
|
* Gets the current redstone output on a specific side.
|
||||||
* @param side The side to get
|
* @param side The side to get
|
||||||
|
|||||||
Reference in New Issue
Block a user