API reference / @jsprismarine/worldgen / SharedClimateParameterList
Class: SharedClimateParameterList
Defined in: biome/Climate.ts:689
Reads one climate tree from a shared buffer without rebuilding its object tree.
Implements
ClimateParameterIndex<string>
Constructors
Constructor
new SharedClimateParameterList(
buffer):SharedClimateParameterList
Defined in: biome/Climate.ts:705
Maps the packed search arrays without copying them.
Parameters
buffer
SharedArrayBuffer
The shared table emitted by ClimateParameterList.toSharedArrayBuffer.
Returns
SharedClimateParameterList
Throws
TypeError when the buffer has an unsupported version, invalid offsets, or an invalid value dictionary.
Accessors
entries
Get Signature
get entries(): readonly
ClimateEntry<string>[]
Defined in: biome/Climate.ts:772
Source entries, materialized only when a caller asks for them.
Returns
readonly ClimateEntry<string>[]
The boxes in the order the source data lists them.
Implementation of
Methods
distinctValues()
distinctValues(): readonly
string[]
Defined in: biome/Climate.ts:806
Returns unique entry values in first-occurrence order.
Returns
readonly string[]
Implementation of
ClimateParameterIndex.distinctValues
find()
find(
target):string
Defined in: biome/Climate.ts:783
Returns the value of the nearest box, breaking exact ties by first tree order.
Parameters
target
Returns
string
Implementation of
findBruteForce()
findBruteForce(
target):string
Defined in: biome/Climate.ts:792
Returns the value of the nearest box by scanning each source entry in order.
Parameters
target
Returns
string