BiomeInjectionBuilder

Builder for BiomeInjections. Use build to get the BiomeInjection instance or register to register it. Check out the docs page on biome injections for more information.

See also

Constructors

Link copied to clipboard
constructor(id: ResourceLocation)

Properties

Link copied to clipboard
val id: ResourceLocation

Functions

Link copied to clipboard
fun biome(biome: String)

Adds a Biome's String id to the list of biomes this BiomeInjection should be applied to. (e.g. "minecraft:plains")

fun biome(biome: ResourceKey<Biome>)

Adds a Biome's ResourceKey to the list of biomes this BiomeInjection should be applied to.

fun biome(biome: ResourceLocation)

Adds a Biome's ResourceLocation to the list of biomes this BiomeInjection should be applied to.

Link copied to clipboard
fun biomes(vararg biomes: String)

Adds multiple Biome's String ids to the list of biomes this BiomeInjection should be applied to. (e.g. "minecraft:plains")

fun biomes(vararg biomes: ResourceKey<Biome>)

Adds multiple Biome's ResourceKeys to the list of biomes this BiomeInjection should be applied to.

fun biomes(vararg biomes: ResourceLocation)

Adds multiple Biome's ResourceLocations to the list of biomes this BiomeInjection should be applied to.

fun biomes(biomeTag: TagKey<Biome>)

Adds a TagKey of Biomes to the list of biomes this BiomeInjection should be applied to.

Link copied to clipboard
fun feature(index: GenerationStep.Decoration, feature: Holder<PlacedFeature>)

Adds a PlacedFeature via a Holder that either already contains the PlacedFeature, or is set later by the PlacedFeature Registry at the specified GenerationStep.Decoration to the list of features this BiomeInjection should add.

fun feature(index: GenerationStep.Decoration, featureKey: ResourceKey<PlacedFeature>)

Adds a PlacedFeature to the list of features via its ResourceKey to the list of features this BiomeInjection should add. If the PlacedFeature is not yet registered, an empty Holder will be created and the PlacedFeature will be set later by the PlacedFeature Registry.

fun feature(index: GenerationStep.Decoration, featureId: ResourceLocation)

Adds a PlacedFeature to the list of features via its ResourceLocation to the list of features this BiomeInjection should add. If the PlacedFeature is not yet registered, an empty Holder will be created and the PlacedFeature will be set later by the PlacedFeature Registry.

fun feature(index: GenerationStep.Decoration, feature: PlacedFeature)

Adds a PlacedFeature at the specified GenerationStep.Decoration to the list of features this BiomeInjection should add.

Link copied to clipboard
fun features(index: GenerationStep.Decoration, vararg placedFeatures: Holder<PlacedFeature>)

Adds multiple PlacedFeatures via Holders that either already contain a PlacedFeature, or are set later by the PlacedFeature Registry at the specified GenerationStep.Decoration to the list of features this BiomeInjection should add.

fun features(index: GenerationStep.Decoration, vararg placedFeatureKeys: ResourceKey<PlacedFeature>)

Adds multiple PlacedFeatures to the list of features via their ResourceKey to the list of features this BiomeInjection should add. If a PlacedFeature is not yet registered, an empty Holder will be created and the PlacedFeature will be set later by the PlacedFeature Registry.

fun features(index: GenerationStep.Decoration, vararg placedFeatureIds: ResourceLocation)

Adds multiple PlacedFeatures to the list of features via their ResourceLocation to the list of features this BiomeInjection should add. If a PlacedFeature is not yet registered, an empty Holder will be created and the PlacedFeature will be set later by the PlacedFeature Registry.

fun features(index: GenerationStep.Decoration, vararg placedFeatures: PlacedFeature)

Adds multiple PlacedFeatures at the specified GenerationStep.Decoration to the list of features this BiomeInjection should add.