Interface BiomeSelectionContext


@Deprecated public interface BiomeSelectionContext
Deprecated.
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.

  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.biome.Biome
    Deprecated.
    Returns the biome with modifications by biome modifiers of higher priority already applied.
    net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome>
    Deprecated.
     
    Optional<net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,​?>>>
    getFeatureKey​(net.minecraft.world.gen.feature.ConfiguredFeature<?,​?> configuredFeature)
    Deprecated.
    Tries to retrieve the registry key for the given configured feature, which should be from this biomes current feature list.
    Optional<net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,​?>>>
    getStructureKey​(net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,​?> configuredStructure)
    Deprecated.
    Tries to retrieve the registry key for the given configured feature, which should be from this biomes current feature list.
    Optional<net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.surfacebuilder.ConfiguredSurfaceBuilder<?>>>
    Deprecated.
    Tries to retrieve the registry key for this biomes current surface builder, which may be empty, if the surface builder is not registered.
    default boolean
    hasBuiltInFeature​(net.minecraft.world.gen.feature.ConfiguredFeature<?,​?> configuredFeature)
    Deprecated.
    Returns true if this biome has the given configured feature, which must be registered in the BuiltinRegistries.
    default boolean
    hasBuiltInStructure​(net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,​?> configuredStructure)
    Deprecated.
    Returns true if the given built-in configured structure from BuiltinRegistries can start in this biome.
    default boolean
    hasBuiltInSurfaceBuilder​(net.minecraft.world.gen.surfacebuilder.ConfiguredSurfaceBuilder<?> surfaceBuilder)
    Deprecated.
    Returns true if this biome uses the given built-in surface builder, which must be registered in the BuiltinRegistries.
    default boolean
    hasFeature​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,​?>> key)
    Deprecated.
    Returns true if this biome contains a configured feature with the given key.
    default boolean
    hasStructure​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,​?>> key)
    Deprecated.
    Returns true if the configured structure with the given key can start in this biome.
    default boolean
    hasSurfaceBuilder​(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.surfacebuilder.ConfiguredSurfaceBuilder<?>> key)
    Deprecated.
    Returns true if this biome uses a surface builder that has the given key.
  • Method Details

    • getBiomeKey

      net.minecraft.util.registry.RegistryKey<net.minecraft.world.biome.Biome> getBiomeKey()
      Deprecated.
    • getBiome

      net.minecraft.world.biome.Biome getBiome()
      Deprecated.
      Returns the biome with modifications by biome modifiers of higher priority already applied.
    • hasBuiltInSurfaceBuilder

      default boolean hasBuiltInSurfaceBuilder(net.minecraft.world.gen.surfacebuilder.ConfiguredSurfaceBuilder<?> surfaceBuilder)
      Deprecated.
      Returns true if this biome uses the given built-in surface builder, which must be registered in the BuiltinRegistries.

      This method is intended for use with the Vanilla surface builders found in ConfiguredSurfaceBuilders.

    • hasSurfaceBuilder

      default boolean hasSurfaceBuilder(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.surfacebuilder.ConfiguredSurfaceBuilder<?>> key)
      Deprecated.
      Returns true if this biome uses a surface builder that has the given key.
    • getSurfaceBuilderKey

      Optional<net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.surfacebuilder.ConfiguredSurfaceBuilder<?>>> getSurfaceBuilderKey()
      Deprecated.
      Tries to retrieve the registry key for this biomes current surface builder, which may be empty, if the surface builder is not registered.
    • hasBuiltInFeature

      default boolean hasBuiltInFeature(net.minecraft.world.gen.feature.ConfiguredFeature<?,​?> configuredFeature)
      Deprecated.
      Returns true if this biome has the given configured feature, which must be registered in the BuiltinRegistries.

      This method is intended for use with the Vanilla configured features found in ConfiguredFeatures.

    • hasFeature

      default boolean hasFeature(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,​?>> key)
      Deprecated.
      Returns true if this biome contains a configured feature with the given key.
    • getFeatureKey

      Optional<net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,​?>>> getFeatureKey(net.minecraft.world.gen.feature.ConfiguredFeature<?,​?> configuredFeature)
      Deprecated.
      Tries to retrieve the registry key for the given configured feature, which should be from this biomes current feature list. May be empty if the configured feature is not registered, or does not come from this biomes feature list.
    • hasBuiltInStructure

      default boolean hasBuiltInStructure(net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,​?> configuredStructure)
      Deprecated.
      Returns true if the given built-in configured structure from BuiltinRegistries can start in this biome.

      This method is intended for use with the Vanilla configured structures found in ConfiguredStructureFeatures.

    • hasStructure

      default boolean hasStructure(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,​?>> key)
      Deprecated.
      Returns true if the configured structure with the given key can start in this biome.
    • getStructureKey

      Optional<net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,​?>>> getStructureKey(net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,​?> configuredStructure)
      Deprecated.
      Tries to retrieve the registry key for the given configured feature, which should be from this biomes current feature list. May be empty if the configured feature is not registered, or does not come from this biomes feature list.