Retrieves a set of block locations that this piston is
connected with.
抛出
This function can throw errors.
isValid
isValid(): boolean
实验性
返回 boolean
Whether the component is valid.
备注
Returns whether the component is valid. A component is
considered valid if its owner is valid, in addition to any
addition to any additional validation required by the
component.
When present, this block has piston-like behavior. Contains additional properties for discovering block piston state.