Appearance
helix / Detector
Type Alias: Detector โ
Detector = (
chain) =>void
Defined in: core/frontend/detect.ts:32
A condition, as clauses appended to an execute chain.
Only guards and context shifts: no run or side effects, since detectors get combined and emitted at several sites. detect finishes the chain.
ts
const pressed: Detector = (c) => c.ifBlock(pos, Block.STONE_BUTTON.state({ powered: true
}));Parameters โ
chain โ
Returns โ
void