跳转至

BlockPistonComponent

文档版本:1.21.0.24

BlockPistonComponent类,扩展自BlockComponent。script_api.minecraft/server.blockpistoncomponent.description

常量

componentId
static read-only componentId = "minecraft:piston";

属性

isMoving
read-only isMoving: boolean;
state
read-only state: BlockPistonState;

方法

getAttachedBlocks

script_api.minecraft/server.blockpistoncomponent.getattachedblocks.description

getAttachedBlocks(): Block[]
getAttachedBlocksLocations

script_api.minecraft/server.blockpistoncomponent.getattachedblockslocations.description

getAttachedBlocksLocations(): Vector3[]