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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NoneBiomeModifier>
static final NoneBiomeModifier
Fields inherited from interface net.minecraftforge.common.world.BiomeModifier
DIRECT_CODEC, LIST_CODEC, REFERENCE_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends BiomeModifier>
codec()
void
modify
(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:BiomeModifier
Modifies 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:
modify
in 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:
codec
in interfaceBiomeModifier
- Returns:
- the codec which serializes and deserializes this biome modifier
-