Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / NbtRead

Interface: NbtRead โ€‹

Defined in: core/report/cost/types.ts:66

One NBT read in a tick-reachable function.

Properties โ€‹

allowed? โ€‹

optional allowed?: string

Defined in: core/report/cost/types.ts:72

Why it's fine, when allowed via dp.allowNbtRead.


count? โ€‹

optional count?: number

Defined in: core/report/cost/types.ts:80

Identical reads in the same function collapsed into this one.


fn โ€‹

fn: string

Defined in: core/report/cost/types.ts:67


guarded? โ€‹

optional guarded?: boolean

Defined in: core/report/cost/types.ts:78

Every path to it passes an if/unless, so period is a ceiling, not a rate.


hint? โ€‹

optional hint?: string

Defined in: core/report/cost/types.ts:74

A cheaper check for what this read is after, when the line says.


line โ€‹

line: string

Defined in: core/report/cost/types.ts:70


period โ€‹

period: number

Defined in: core/report/cost/types.ts:69

Fastest cadence the function is reached at, in ticks (1 = every tick).


source? โ€‹

optional source?: string

Defined in: core/report/cost/types.ts:76

The author line that emitted it, with debug.sources on.

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.