Class BiomeModifierTest
java.lang.Object
net.neoforged.neoforge.oldtest.world.BiomeModifierTest
This tests the following features and requirements of biome modifier jsons::
- Biome modifier jsons are created via datagen.
- Biome modifiers modify all four modifiable fields in biomes, to ensure patches and coremods apply correctly (generation, spawns, climate, and client effects).
- Biome modifiers use biome tags to determine which biomes to modify.
- Biome modifiers add a json feature to modified biomes, to ensure json features are usable in biome modifiers.
If the biome modifiers are applied correctly, then badlands biomes should generate large basalt columns, spawn magma cubes, have red-colored water, and be snowy. Additionally, biomes in the is_forest tag are missing oak trees, pine trees, and skeletons.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ResourceKey
<BiomeModifier> private static final ResourceKey
<BiomeModifier> private static final DeferredRegister
<com.mojang.serialization.MapCodec<? extends BiomeModifier>> private static final RegistrySetBuilder
private static final boolean
private static final ResourceKey
<PlacedFeature> static final String
private static final ResourceKey
<BiomeModifier> private static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends BiomeModifier>, com.mojang.serialization.MapCodec<BiomeModifierTest.TestModifier>> private static final ResourceKey
<BiomeModifier> private static final ResourceKey
<BiomeModifier> -
Constructor Summary
-
Method Summary
-
Field Details
-
MODID
- See Also:
-
ENABLED
private static final boolean ENABLED- See Also:
-
BIOME_MODIFIER_SERIALIZERS
private static final DeferredRegister<com.mojang.serialization.MapCodec<? extends BiomeModifier>> BIOME_MODIFIER_SERIALIZERS -
MODIFY_BIOMES
private static final DeferredHolder<com.mojang.serialization.MapCodec<? extends BiomeModifier>,com.mojang.serialization.MapCodec<BiomeModifierTest.TestModifier>> MODIFY_BIOMES -
LARGE_BASALT_COLUMNS
-
ADD_BASALT_MODIFIER
-
ADD_MAGMA_CUBES_MODIFIER
-
MODIFY_BADLANDS_MODIFIER
-
REMOVE_FOREST_TREES_MODIFIER
-
REMOVE_FOREST_SKELETONS_MODIFIER
-
BUILDER
-
-
Constructor Details
-
BiomeModifierTest
public BiomeModifierTest(net.neoforged.bus.api.IEventBus modBus)
-
-
Method Details
-
onGatherData
-