BiomeSelectionContextImpl

public class BiomeSelectionContextImpl implements BiomeSelectionContext

Constructors

BiomeSelectionContextImpl
Link copied to clipboard
void BiomeSelectionContextImpl(DynamicRegistryManager dynamicRegistries, RegistryKey<Biome> key, Biome biome)

Functions

getBiome
Link copied to clipboard
Biome getBiome()
Returns the biome with modifications by biome modifiers of higher priority already applied.
getBiomeKey
Link copied to clipboard
RegistryKey<BiomegetBiomeKey()
getFeatureKey
Link copied to clipboard
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
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
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.

Properties

biome
Link copied to clipboard
private final Biome biome

Sources

jvm source
Link copied to clipboard