3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/math/IRandom.h"
7#include "mc/deps/core/math/IRandomSeeded.h"
8#include "mc/util/SimpleRandom.h"
9#include "mc/util/random/XoroshiroRandom.h"
20namespace br::worldgen {
26 ::ll::TypedStorage<8, 56, ::std::variant<::SimpleRandom, ::XoroshiroRandom>> mSource;
33 virtual int nextInt() ;
36 virtual int nextInt(
int bound) ;
39 virtual int64 nextLong() ;
42 virtual bool nextBoolean() ;
45 virtual float nextFloat() ;
48 virtual double nextDouble() ;
51 virtual double nextGaussianDouble() ;
54 virtual void consumeCount(uint count) ;
57 virtual ::std::unique_ptr<::IRandom> fork() ;
60 virtual ::std::unique_ptr<::IPositionalRandomFactory> forkPositional() ;
63 virtual void setSeed(int64 seed) ;
69 virtual int64 seed64()
const ;
72 virtual ::Seed128Bit seed128()
const ;
89 MCNAPI static ::br::worldgen::WorldGenRandom
createDecoration(int64 seed,
int chunkX,
int chunkZ);
117 MCNAPI ::std::unique_ptr<::IRandom>
$fork();
Definition IPositionalRandomFactory.h:11
Definition IRandomSeeded.h:10
Definition SimpleRandom.h:15
Definition XoroshiroRandom.h:15
Definition Seed128Bit.h:5
Definition WorldGenRandom.h:22
MCAPI void $consumeCount(uint count)
static MCAPI void ** $vftableForIRandomSeeded()
MCAPI::Seed128Bit $seed128() const
static MCAPI void ** $vftableForIRandom()
MCAPI::br::worldgen::WorldGenRandom forkPositional(::BlockPos pos)
static MCAPI ::br::worldgen::WorldGenRandom createDecoration(int64 seed, int chunkX, int chunkZ)
MCAPI int $nextInt(int bound)
MCAPI::br::worldgen::WorldGenRandom & setLargeFeatureSeed(int64 seed, int chunkX, int chunkZ)
MCAPI void $setSeed(::Seed128Bit seed)
MCAPI void $setSeed(int64 seed)
MCAPI ::std::unique_ptr<::IRandom > $fork()
MCAPI double $nextDouble()
MCAPI int64 $seed64() const
MCAPI ::std::unique_ptr<::IPositionalRandomFactory > $forkPositional()
MCAPI double $nextGaussianDouble()
MCAPI bool $nextBoolean()