Package net.fabricmc.fabric.api.biome.v1
Interface BiomeModificationContext.GenerationSettingsContext
- Enclosing interface:
BiomeModificationContext
public static interface BiomeModificationContext.GenerationSettingsContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addBuiltInCarver
(GenerationStep.Carver step, ConfiguredCarver<?> configuredCarver) Adds a configured carver fromBuiltinRegistries.CONFIGURED_CARVER
to this biome.default void
addBuiltInFeature
(GenerationStep.Feature step, PlacedFeature placedFeature) Adds a placed feature fromBuiltinRegistries.PLACED_FEATURE
to this biome.void
addCarver
(GenerationStep.Carver step, RegistryKey<ConfiguredCarver<?>> carverKey) Adds a configured carver to one of this biomes generation steps.void
addFeature
(GenerationStep.Feature step, RegistryKey<PlacedFeature> placedFeatureKey) Adds a feature to one of this biomes generation steps, identified by the placed feature's registry key.default boolean
removeBuiltInCarver
(ConfiguredCarver<?> configuredCarver) removeCarver(RegistryKey)
for built-in carvers (seeaddBuiltInCarver(GenerationStep.Carver, ConfiguredCarver)
).default boolean
removeBuiltInCarver
(GenerationStep.Carver step, ConfiguredCarver<?> configuredCarver) removeCarver(GenerationStep.Carver, RegistryKey)
for built-in carvers (seeaddBuiltInCarver(GenerationStep.Carver, ConfiguredCarver)
).default boolean
removeBuiltInFeature
(PlacedFeature placedFeature) removeFeature(RegistryKey)
for built-in features (seeaddBuiltInFeature(GenerationStep.Feature, PlacedFeature)
).default boolean
removeBuiltInFeature
(GenerationStep.Feature step, PlacedFeature placedFeature) removeFeature(GenerationStep.Feature, RegistryKey)
for built-in features (seeaddBuiltInFeature(GenerationStep.Feature, PlacedFeature)
).default boolean
removeCarver
(RegistryKey<ConfiguredCarver<?>> configuredCarverKey) Removes all carvers with the given key from all of this biomes generation steps.boolean
removeCarver
(GenerationStep.Carver step, RegistryKey<ConfiguredCarver<?>> configuredCarverKey) Removes all carvers with the given key from one of this biomes generation steps.default boolean
removeFeature
(RegistryKey<PlacedFeature> placedFeatureKey) Removes a feature from all of this biomes generation steps, and returns if any features were removed.boolean
removeFeature
(GenerationStep.Feature step, RegistryKey<PlacedFeature> placedFeatureKey) Removes a feature from one of this biomes generation steps, and returns if any features were removed.
-
Method Details
-
removeFeature
Removes a feature from one of this biomes generation steps, and returns if any features were removed. -
removeFeature
Removes a feature from all of this biomes generation steps, and returns if any features were removed. -
removeBuiltInFeature
removeFeature(RegistryKey)
for built-in features (seeaddBuiltInFeature(GenerationStep.Feature, PlacedFeature)
). -
removeBuiltInFeature
removeFeature(GenerationStep.Feature, RegistryKey)
for built-in features (seeaddBuiltInFeature(GenerationStep.Feature, PlacedFeature)
). -
addFeature
Adds a feature to one of this biomes generation steps, identified by the placed feature's registry key.- See Also:
-
addBuiltInFeature
Adds a placed feature fromBuiltinRegistries.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 data pack, the data pack's version will be used.
-
addCarver
Adds a configured carver to one of this biomes generation steps. -
addBuiltInCarver
Adds a configured carver fromBuiltinRegistries.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 data pack, the data pack's version will be used.
-
removeCarver
boolean removeCarver(GenerationStep.Carver step, RegistryKey<ConfiguredCarver<?>> configuredCarverKey) Removes all carvers with the given key from one of this biomes generation steps.- Returns:
- True if any carvers were removed.
-
removeCarver
Removes all carvers with the given key from all of this biomes generation steps.- Returns:
- True if any carvers were removed.
-
removeBuiltInCarver
removeCarver(RegistryKey)
for built-in carvers (seeaddBuiltInCarver(GenerationStep.Carver, ConfiguredCarver)
). -
removeBuiltInCarver
default boolean removeBuiltInCarver(GenerationStep.Carver step, ConfiguredCarver<?> configuredCarver) removeCarver(GenerationStep.Carver, RegistryKey)
for built-in carvers (seeaddBuiltInCarver(GenerationStep.Carver, ConfiguredCarver)
).
-