Interface BiomeFilter

All Superinterfaces:
PlacementFilter, PlacementModifier, Wrapper

@NullMarked @AsOf("3.0.0") public interface BiomeFilter extends PlacementFilter
Returns the current position if the biome at that position includes this placed feature, otherwise returns empty. In effect, this predicate restricts features from being placed outside the edges of any biome that generates the feature.

This modifier type cannot be used in placed features that are referenced from other configured features (for example, from entries in a FeatureType.RANDOM_SELECTOR type feature). Minecraft does not catch this type of error automatically on trying to load the world; instead, the game runs normally until it tries to generate the feature, which causes the game to crash.

Since:
3.0.0
See Also: