finish basic access control system

This commit is contained in:
2025-10-09 14:09:47 +08:00
parent d3cbc15450
commit 11d138751a
32 changed files with 4687 additions and 345 deletions

View File

@@ -0,0 +1,38 @@
/// <reference path="./shared.d.ts" />
/**
* Represents the Block Reader peripheral from Advanced Peripherals.
* Used to read data about blocks in front of it.
*
* @see https://docs.advanced-peripherals.de/0.7/peripherals/block_reader/
*/
/** @noSelf **/
declare interface BlockReaderPeripheral extends IPeripheral {
/**
* Returns the registry name of the block (ex. minecraft:dirt).
*
* @returns The registry name of the block
*/
getBlockName(): string;
/**
* Returns the block data of the block if block is a tile entity.
*
* @returns The block data table if the block is a tile entity, otherwise nil
*/
getBlockData(): BlockDetailData | undefined;
/**
* Returns the properties of a block and its state.
*
* @returns The block states table if available, otherwise nil
*/
getBlockStates(): Record<string, unknown> | undefined;
/**
* Returns true whether the block is a tile entity or not.
*
* @returns Boolean indicating if the block is a tile entity, or nil if unable to determine
*/
isTileEntity(): boolean | undefined;
}