Interface BiomeModificationContext.GenerationSettingsContext

Enclosing interface:
BiomeModificationContext

public static interface BiomeModificationContext.GenerationSettingsContext
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addBuiltInCarver(net.minecraft.world.gen.GenerationStep.Carver step, net.minecraft.world.gen.carver.ConfiguredCarver<?> configuredCarver)
    Adds a configured carver from BuiltinRegistries.CONFIGURED_CARVER to this biome.
    default void
    addBuiltInFeature(net.minecraft.world.gen.GenerationStep.Feature step, net.minecraft.world.gen.feature.PlacedFeature placedFeature)
    Adds a placed feature from BuiltinRegistries.PLACED_FEATURE to this biome.
    void
    addCarver(net.minecraft.world.gen.GenerationStep.Carver step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.carver.ConfiguredCarver<?>> carverKey)
    Adds a configured carver to one of this biomes generation steps.
    void
    addFeature(net.minecraft.world.gen.GenerationStep.Feature step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.PlacedFeature> placedFeatureKey)
    Adds a feature to one of this biomes generation steps, identified by the placed feature's registry key.
    default boolean
    removeBuiltInCarver(net.minecraft.world.gen.carver.ConfiguredCarver<?> configuredCarver)
    default boolean
    removeBuiltInCarver(net.minecraft.world.gen.GenerationStep.Carver step, net.minecraft.world.gen.carver.ConfiguredCarver<?> configuredCarver)
    default boolean
    removeBuiltInFeature(net.minecraft.world.gen.feature.PlacedFeature placedFeature)
    default boolean
    removeBuiltInFeature(net.minecraft.world.gen.GenerationStep.Feature step, net.minecraft.world.gen.feature.PlacedFeature placedFeature)
    default boolean
    removeCarver(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.carver.ConfiguredCarver<?>> configuredCarverKey)
    Removes all carvers with the given key from all of this biomes generation steps.
    boolean
    removeCarver(net.minecraft.world.gen.GenerationStep.Carver step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.carver.ConfiguredCarver<?>> configuredCarverKey)
    Removes all carvers with the given key from one of this biomes generation steps.
    default boolean
    removeFeature(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.PlacedFeature> placedFeatureKey)
    Removes a feature from all of this biomes generation steps, and returns if any features were removed.
    boolean
    removeFeature(net.minecraft.world.gen.GenerationStep.Feature step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.PlacedFeature> placedFeatureKey)
    Removes a feature from one of this biomes generation steps, and returns if any features were removed.
  • Method Details

    • removeFeature

      boolean removeFeature(net.minecraft.world.gen.GenerationStep.Feature step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.PlacedFeature> placedFeatureKey)
      Removes a feature from one of this biomes generation steps, and returns if any features were removed.
    • removeFeature

      default boolean removeFeature(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.PlacedFeature> placedFeatureKey)
      Removes a feature from all of this biomes generation steps, and returns if any features were removed.
    • removeBuiltInFeature

      default boolean removeBuiltInFeature(net.minecraft.world.gen.feature.PlacedFeature placedFeature)
    • removeBuiltInFeature

      default boolean removeBuiltInFeature(net.minecraft.world.gen.GenerationStep.Feature step, net.minecraft.world.gen.feature.PlacedFeature placedFeature)
    • addFeature

      void addFeature(net.minecraft.world.gen.GenerationStep.Feature step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.PlacedFeature> placedFeatureKey)
      Adds a feature to one of this biomes generation steps, identified by the placed feature's registry key.
      See Also:
      • BuiltinRegistries.PLACED_FEATURE
    • addBuiltInFeature

      default void addBuiltInFeature(net.minecraft.world.gen.GenerationStep.Feature step, net.minecraft.world.gen.feature.PlacedFeature placedFeature)
      Adds a placed feature from BuiltinRegistries.PLACED_FEATURE to this biome.

      This method is intended for use with the placed features found in classes such as OrePlacedFeatures.

      NOTE: In case the placed feature is overridden in a datapack, the datapacks version will be used.

    • addCarver

      void addCarver(net.minecraft.world.gen.GenerationStep.Carver step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.carver.ConfiguredCarver<?>> carverKey)
      Adds a configured carver to one of this biomes generation steps.
    • addBuiltInCarver

      default void addBuiltInCarver(net.minecraft.world.gen.GenerationStep.Carver step, net.minecraft.world.gen.carver.ConfiguredCarver<?> configuredCarver)
      Adds a configured carver from BuiltinRegistries.CONFIGURED_CARVER to this biome.

      This method is intended for use with the configured carvers found in ConfiguredCarvers.

      NOTE: In case the configured carver is overridden in a datapack, the datapacks version will be used.

    • removeCarver

      boolean removeCarver(net.minecraft.world.gen.GenerationStep.Carver step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.carver.ConfiguredCarver<?>> configuredCarverKey)
      Removes all carvers with the given key from one of this biomes generation steps.
      Returns:
      True if any carvers were removed.
    • removeCarver

      default boolean removeCarver(net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.carver.ConfiguredCarver<?>> configuredCarverKey)
      Removes all carvers with the given key from all of this biomes generation steps.
      Returns:
      True if any carvers were removed.
    • removeBuiltInCarver

      default boolean removeBuiltInCarver(net.minecraft.world.gen.carver.ConfiguredCarver<?> configuredCarver)
    • removeBuiltInCarver

      default boolean removeBuiltInCarver(net.minecraft.world.gen.GenerationStep.Carver step, net.minecraft.world.gen.carver.ConfiguredCarver<?> configuredCarver)