fix: add redstone.getSides()

This commit is contained in:
2025-06-04 04:04:31 +09:00
parent d7e6405cc2
commit 2f674ff43e
2 changed files with 7 additions and 1 deletions

6
types/index.d.ts vendored
View File

@@ -1116,6 +1116,12 @@ declare global {
* Get and set redstone signals adjacent to this computer.
*/
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.
* @param side The side to get