API reference Obsidian.API.World.Generator.RandomSources
IPositionalRandomFactory interface
Port of vanilla's PositionalRandomFactory: derives independent, deterministic randoms from a block position, a name (e.g. "minecraft:terrain") or a seed.
public interface IPositionalRandomFactory
In Obsidian.API.
Methods
At(int, int, int)
IRandomSource At(int x, int y, int z);Creates a random for the block at the given position.
FromHashOf(string)
IRandomSource FromHashOf(string name);Creates a random keyed by name, usually a resource location string.
FromSeed(long)
IRandomSource FromSeed(long seed);Creates a random from seed.