BiomeSelectionContext

public interface BiomeSelectionContext

Context given to a biome selector for deciding whether it applies to a biome or not.

Experimental feature, may be removed or changed without further notice.

Functions

getBiome
Link copied to clipboard
abstract Biome getBiome()
Returns the biome with modifications by biome modifiers of higher priority already applied.
getBiomeKey
Link copied to clipboard
abstract RegistryKey<BiomegetBiomeKey()
getFeatureKey
Link copied to clipboard
abstract Optional<RegistryKey<ConfiguredFeature<? extends Object, ? extends Object>>> getFeatureKey(ConfiguredFeature<? extends Object, ? extends Object> configuredFeature)
Tries to retrieve the registry key for the given configured feature, which should be from this biomescurrent feature list.
getStructureKey
Link copied to clipboard
abstract Optional<RegistryKey<ConfiguredStructureFeature<? extends Object, ? extends Object>>> getStructureKey(ConfiguredStructureFeature<? extends Object, ? extends Object> configuredStructure)
Tries to retrieve the registry key for the given configured feature, which should be from this biomescurrent feature list.
getSurfaceBuilderKey
Link copied to clipboard
abstract Optional<RegistryKey<ConfiguredSurfaceBuilder<? extends Object>>> getSurfaceBuilderKey()
Tries to retrieve the registry key for this biomes current surface builder, which may be empty, if thesurface builder is not registered.
hasBuiltInFeature
Link copied to clipboard
boolean hasBuiltInFeature(ConfiguredFeature<? extends Object, ? extends Object> configuredFeature)
Returns true if this biome has the given configured feature, which must be registeredin the net.minecraft.util.registry.BuiltinRegistries.
hasBuiltInStructure
Link copied to clipboard
boolean hasBuiltInStructure(ConfiguredStructureFeature<? extends Object, ? extends Object> configuredStructure)
Returns true if the given built-in configured structure from net.minecraft.util.registry.BuiltinRegistries can start in this biome.
hasBuiltInSurfaceBuilder
Link copied to clipboard
boolean hasBuiltInSurfaceBuilder(ConfiguredSurfaceBuilder<? extends Object> surfaceBuilder)
Returns true if this biome uses the given built-in surface builder, which must be registeredin the net.minecraft.util.registry.BuiltinRegistries.
hasFeature
Link copied to clipboard
boolean hasFeature(RegistryKey<ConfiguredFeature<? extends Object, ? extends Object>> key)
Returns true if this biome contains a configured feature with the given key.
hasStructure
Link copied to clipboard
boolean hasStructure(RegistryKey<ConfiguredStructureFeature<? extends Object, ? extends Object>> key)
Returns true if the configured structure with the given key can start in this biome.
hasSurfaceBuilder
Link copied to clipboard
boolean hasSurfaceBuilder(RegistryKey<ConfiguredSurfaceBuilder<? extends Object>> key)
Returns true if this biome uses a surface builder that has the given key.

Inheritors

BiomeSelectionContextImpl
Link copied to clipboard

Sources

jvm source
Link copied to clipboard