@Deprecated public final class BiomeModifications extends Object
Any modifications made to biomes will not be available for use in server.properties (as of 1.16.1), or the demo level.
Experimental feature, may be removed or changed without further notice.
Constructor and Description |
---|
BiomeModifications()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
addCarver(Predicate<BiomeSelectionContext> biomeSelector,
net.minecraft.world.gen.GenerationStep.Carver step,
net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.carver.ConfiguredCarver<?>> configuredCarverKey)
Deprecated.
Convenience method to add a carver to one or more biomes.
|
static void |
addFeature(Predicate<BiomeSelectionContext> biomeSelector,
net.minecraft.world.gen.GenerationStep.Feature step,
net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> configuredFeatureKey)
Deprecated.
Convenience method to add a feature to one or more biomes.
|
static void |
addSpawn(Predicate<BiomeSelectionContext> biomeSelector,
net.minecraft.entity.SpawnGroup spawnGroup,
net.minecraft.entity.EntityType<?> entityType,
int weight,
int minGroupSize,
int maxGroupSize)
Deprecated.
Convenience method to add an entity spawn to one or more biomes.
|
static void |
addStructure(Predicate<BiomeSelectionContext> biomeSelector,
net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,?>> configuredStructureKey)
Deprecated.
Convenience method to add a structure to one or more biomes.
|
static BiomeModification |
create(net.minecraft.util.Identifier id)
Deprecated.
Create a new biome modification which will be applied whenever biomes are loaded from datapacks.
|
public static void addFeature(Predicate<BiomeSelectionContext> biomeSelector, net.minecraft.world.gen.GenerationStep.Feature step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredFeature<?,?>> configuredFeatureKey)
BiomeSelectors
public static void addStructure(Predicate<BiomeSelectionContext> biomeSelector, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.feature.ConfiguredStructureFeature<?,?>> configuredStructureKey)
BiomeSelectors
public static void addCarver(Predicate<BiomeSelectionContext> biomeSelector, net.minecraft.world.gen.GenerationStep.Carver step, net.minecraft.util.registry.RegistryKey<net.minecraft.world.gen.carver.ConfiguredCarver<?>> configuredCarverKey)
BiomeSelectors
public static void addSpawn(Predicate<BiomeSelectionContext> biomeSelector, net.minecraft.entity.SpawnGroup spawnGroup, net.minecraft.entity.EntityType<?> entityType, int weight, int minGroupSize, int maxGroupSize)
BiomeSelectors
,
SpawnSettings.Builder.spawn(SpawnGroup, SpawnSettings.SpawnEntry)
public static BiomeModification create(net.minecraft.util.Identifier id)
id
- An identifier for the new set of biome modifications that is returned. Is used for
guaranteeing consistent ordering between the biome modifications added by different mods
(assuming they otherwise have the same phase).