Package net.fabricmc.fabric.api.biome.v1
Class BiomeModification
java.lang.Object
net.fabricmc.fabric.api.biome.v1.BiomeModification
Experimental feature, may be removed or changed without further notice.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(ModificationPhase phase, Predicate<BiomeSelectionContext> selector, BiConsumer<BiomeSelectionContext, BiomeModificationContext> modifier) Adds a modifier that is sensitive to the current state of the biome when it is applied.add
(ModificationPhase phase, Predicate<BiomeSelectionContext> selector, Consumer<BiomeModificationContext> modifier) Adds a modifier that is not sensitive to the current state of the biome when it is applied, examples for this are modifiers that simply add or remove features unconditionally, or change other values to constants.
-
Constructor Details
-
BiomeModification
@Internal BiomeModification(net.minecraft.util.Identifier id)
-
-
Method Details
-
add
public BiomeModification add(ModificationPhase phase, Predicate<BiomeSelectionContext> selector, Consumer<BiomeModificationContext> modifier) Adds a modifier that is not sensitive to the current state of the biome when it is applied, examples for this are modifiers that simply add or remove features unconditionally, or change other values to constants. -
add
public BiomeModification add(ModificationPhase phase, Predicate<BiomeSelectionContext> selector, BiConsumer<BiomeSelectionContext, BiomeModificationContext> modifier) Adds a modifier that is sensitive to the current state of the biome when it is applied. Examples for this are modifiers that apply scales to existing values (e.g. half the temperature).For modifiers that should only be applied if a given condition is met for a Biome, please add these conditions to the selector, and use a context-free modifier instead, as this will greatly help with debugging world generation issues.
-