Properties
Readonly length
length: number
Methods
fill
fill<R>( value: R | ( ( x: number , y: number , z: number ) => R ) ) : void
Type parameters
R: Record < string | number , unknown >
Parameters
value: R | ( ( x: number , y: number , z: number ) => R )
Returns void
forEach
forEach( callback: ( block: T , x: number , y: number , z: number ) => unknown ) : boolean
Parameters
callback: ( block: T , x: number , y: number , z: number ) => unknown
( block: T , x: number , y: number , z: number ) : unknown
Parameters
block: T
x: number
y: number
z: number
Returns unknown
Returns boolean
Optional forEachUntil
forEachUntil( callback: ( block: T , x: number , y: number , z: number ) => unknown ) : boolean
Parameters
callback: ( block: T , x: number , y: number , z: number ) => unknown
( block: T , x: number , y: number , z: number ) : unknown
Parameters
block: T
x: number
y: number
z: number
Returns unknown
Returns boolean
get
get( x: number , y: number , z: number ) : T
Parameters
x: number
y: number
z: number
Returns T
Optional mirror
mirror( orientation: "XY" | "XZ" | "YZ" ) : void
Parameters
orientation: "XY" | "XZ" | "YZ"
Returns void
set
set( x: number , y: number , z: number , value: T ) : void
Parameters
x: number
y: number
z: number
value: T
Returns void
swap
swap( ax: number , ay: number , az: number , bx: number , by: number , bz: number ) : void
Parameters
ax: number
ay: number
az: number
bx: number
by: number
bz: number
Returns void
transform
transform( x: number , y: number , z: number , transformer: ( value: T ) => T ) : void
Parameters
x: number
y: number
z: number
transformer: ( value: T ) => T
Returns void
Legend
Variable
Function
Function with type parameter
Type alias
Type alias with type parameter
Interface
Interface with type parameter
Property
Method
Class
Class with type parameter
Fill all holder with value or with result of callback value