Package net.minecraftforge.common.world
Class NoneBiomeModifier
java.lang.Object
net.minecraftforge.common.world.NoneBiomeModifier
- All Implemented Interfaces:
BiomeModifier
Noop biome modifier. Can be used in a biome modifier json with "type": "forge:none".
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.common.world.BiomeModifier
BiomeModifier.Phase -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<NoneBiomeModifier> static final NoneBiomeModifierFields inherited from interface net.minecraftforge.common.world.BiomeModifier
DIRECT_CODEC, LIST_CODEC, REFERENCE_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends BiomeModifier> codec()voidmodify(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) Modifies the information via the provided biome builder.
-
Field Details
-
INSTANCE
-
CODEC
-
-
Constructor Details
-
NoneBiomeModifier
public NoneBiomeModifier()
-
-
Method Details
-
modify
public void modify(Holder<Biome> biome, BiomeModifier.Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) Description copied from interface:BiomeModifierModifies the information via the provided biome builder. Allows mob spawns and world-gen features to be added or removed, and climate and client effects to be modified.- Specified by:
modifyin interfaceBiomeModifier- Parameters:
biome- the named biome being modified (with original data readable).phase- biome modification phase. Biome modifiers apply in each phase in order of the enum constants.builder- mutable biome info builder. Apply changes to this.
-
codec
- Specified by:
codecin interfaceBiomeModifier- Returns:
- the codec which serializes and deserializes this biome modifier
-