API reference / @jsprismarine/worldgen / XoroshiroPositionalRandomFactory
Class: XoroshiroPositionalRandomFactory
Defined in: random/XoroshiroRandomSource.ts:326
The positional factory Xoroshiro-seeded worlds use for noise instances and feature placement.
Implements
Constructors
Constructor
new XoroshiroPositionalRandomFactory(
seedLo,seedHi):XoroshiroPositionalRandomFactory
Defined in: random/XoroshiroRandomSource.ts:332
Parameters
seedLo
bigint
seedHi
bigint
Returns
XoroshiroPositionalRandomFactory
Methods
at()
at(
x,y,z):RandomSource
Defined in: random/XoroshiroRandomSource.ts:343
Returns the stream for one block position.
Parameters
x
number
y
number
z
number
Returns
Implementation of
fromHashOf()
fromHashOf(
name):RandomSource
Defined in: random/XoroshiroRandomSource.ts:349
Returns the stream for a registry name, hashed with MD5 for Xoroshiro and String.hashCode for the legacy source.
Parameters
name
string
Returns
Implementation of
PositionalRandomFactory.fromHashOf
fromSeed()
fromSeed(
seed):RandomSource
Defined in: random/XoroshiroRandomSource.ts:354
Returns the stream for a raw 64-bit seed.
Parameters
seed
bigint