SpawnConditionsBuilder

sealed interface SpawnConditionsBuilder

Builder for Spawn Conditions.

Functions

Link copied to clipboard
abstract fun always(priority: Int)

Adds a spawn condition of priority that always returns true.

Link copied to clipboard
abstract fun biome(priority: Int, biome: TagKey<Biome>)
abstract fun biome(priority: Int, biome: TypedKey<Biome>, vararg biomes: TypedKey<Biome>)

Adds a spawn condition of priority that tests if the spawn position is inside any of the specified biomes.

Link copied to clipboard
abstract fun moonBrightness(priority: Int, range: ClosedRange<Double>)

Adds a spawn condition of priority that tests if the moon brightness is in the specified range.

Link copied to clipboard
abstract fun structure(priority: Int, structure: TagKey<*>)
abstract fun structure(priority: Int, structure: TypedKey<*>, vararg structures: TypedKey<*>)

Adds a spawn condition of priority that tests if the spawn position is inside any of the specified structures.