Class FrozenBiome
java.lang.Object
net.frozenblock.lib.worldgen.biome.api.FrozenBiome
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddBottomBiome(@NotNull Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> consumer, net.minecraft.world.level.biome.Climate.Parameter temerature, net.minecraft.world.level.biome.Climate.Parameter humidity, net.minecraft.world.level.biome.Climate.Parameter continentalness, net.minecraft.world.level.biome.Climate.Parameter erosion, net.minecraft.world.level.biome.Climate.Parameter weirdness, float offset) Adds this biome to world generation at the depth of a deep cave biome.abstract voidaddFeatures(net.minecraft.world.level.biome.BiomeGenerationSettings.Builder features) Adds placed features to this biome.final voidaddSemiDeepBiome(@NotNull Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> parameters, net.minecraft.world.level.biome.Climate.Parameter temperature, net.minecraft.world.level.biome.Climate.Parameter humidity, net.minecraft.world.level.biome.Climate.Parameter continentalness, net.minecraft.world.level.biome.Climate.Parameter erosion, net.minecraft.world.level.biome.Climate.Parameter weirdness, float offset) Adds this biome to world generation between the depths of a regular and deep cave biome.abstract voidaddSpawns(net.minecraft.world.level.biome.MobSpawnSettings.Builder spawns) Adds mob spawns to this biome.final voidaddSurfaceBiome(@NotNull Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> consumer, net.minecraft.world.level.biome.Climate.Parameter temperature, net.minecraft.world.level.biome.Climate.Parameter humidity, net.minecraft.world.level.biome.Climate.Parameter continentalness, net.minecraft.world.level.biome.Climate.Parameter erosion, net.minecraft.world.level.biome.Climate.Parameter weirdness, float offset) Adds this biome to world generation at the surface, like most other biomes.final voidaddUndergroundBiome(@NotNull Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> consumer, net.minecraft.world.level.biome.Climate.Parameter temperature, net.minecraft.world.level.biome.Climate.Parameter humidity, net.minecraft.world.level.biome.Climate.Parameter continentalness, net.minecraft.world.level.biome.Climate.Parameter erosion, net.minecraft.world.level.biome.Climate.Parameter weirdness, float offset) Adds this biome to world generation at the depth of a regular cave biome.abstract @Nullable net.minecraft.world.level.biome.AmbientAdditionsSettingsabstract @Nullable net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> abstract @Nullable net.minecraft.world.level.biome.AmbientMoodSettingsabstract @Nullable net.minecraft.world.level.biome.AmbientParticleSettingsabstract @Nullable net.minecraft.sounds.Musicabstract StringbiomeID()final @NotNull net.minecraft.world.level.biome.Biomecreate(@NotNull net.minecraft.data.worldgen.BootstapContext<net.minecraft.world.level.biome.Biome> entries) Builds this biome.voiddisable()Disables this biome from being automatically injected into worldgen.abstract floatdownfall()abstract intfogColor()abstract @Nullable Integerstatic @NotNull com.google.common.collect.ImmutableList<FrozenBiome> net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> getKey()net.minecraft.world.level.biome.BiomeSpecialEffects.GrassColorModifierabstract @Nullable Integerabstract booleanabstract voidinjectToOverworld(Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> consumer) Injects this biome to overworld generation.booleanabstract StringmodID()abstract intskyColor()abstract floatnet.minecraft.world.level.biome.Biome.TemperatureModifierabstract intabstract int
-
Constructor Details
-
FrozenBiome
protected FrozenBiome()
-
-
Method Details
-
modID
- Returns:
- the namespace to use for this biome.
-
biomeID
- Returns:
- this biome's name, not including the namespace.
-
temperature
public abstract float temperature()- Returns:
- thetemperature of this biome.
-
downfall
public abstract float downfall()- Returns:
- the chance of downfall in this biome.
-
hasPrecipitation
public abstract boolean hasPrecipitation()- Returns:
- whether this biome has precipitation.
-
temperatureModifier
public net.minecraft.world.level.biome.Biome.TemperatureModifier temperatureModifier()- Returns:
- the temperature modifier to use for this biome.
-
skyColor
public abstract int skyColor()- Returns:
- the sky color to use for this biome.
-
fogColor
public abstract int fogColor()- Returns:
- the fog color to use for this biome.
-
waterColor
public abstract int waterColor()- Returns:
- the water color to use for this biome.
-
waterFogColor
public abstract int waterFogColor()- Returns:
- the water fog color to use for this biome.
-
foliageColorOverride
- Returns:
- the foliage color override to use for this biome.
-
grassColorOverride
- Returns:
- the grass color override to use for the biome.
-
grassColorModifier
public net.minecraft.world.level.biome.BiomeSpecialEffects.GrassColorModifier grassColorModifier()- Returns:
- the
BiomeSpecialEffects.GrassColorModifierof the biome.
-
ambientParticleSettings
@Nullable public abstract @Nullable net.minecraft.world.level.biome.AmbientParticleSettings ambientParticleSettings()- Returns:
- the
AmbientParticleSettingsof the biome.
-
ambientLoopSound
@Nullable public abstract @Nullable net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> ambientLoopSound()- Returns:
- the
net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent>of the biome used for looping ambience.
-
ambientMoodSettings
@Nullable public abstract @Nullable net.minecraft.world.level.biome.AmbientMoodSettings ambientMoodSettings()- Returns:
- the
AmbientMoodSettingsof the biome.
-
ambientAdditionsSound
@Nullable public abstract @Nullable net.minecraft.world.level.biome.AmbientAdditionsSettings ambientAdditionsSound()- Returns:
- the
AmbientAdditionsSettingsof the biome.
-
backgroundMusic
@Nullable public abstract @Nullable net.minecraft.sounds.Music backgroundMusic()- Returns:
- the
Musicof the biome.
-
create
@NotNull public final @NotNull net.minecraft.world.level.biome.Biome create(@NotNull @NotNull net.minecraft.data.worldgen.BootstapContext<net.minecraft.world.level.biome.Biome> entries) Builds this biome.- Parameters:
entries- The boostrap context used for generating biomes.- Returns:
- the finalized
Biome.
-
addFeatures
public abstract void addFeatures(net.minecraft.world.level.biome.BiomeGenerationSettings.Builder features) Adds placed features to this biome.- Parameters:
features- TheBiomeGenerationSettings.Builderused to create the biome's feature placement.
-
addSpawns
public abstract void addSpawns(net.minecraft.world.level.biome.MobSpawnSettings.Builder spawns) Adds mob spawns to this biome.- Parameters:
spawns- TheMobSpawnSettings.Builderused to create the biome's mob spawning lists.
-
injectToOverworld
public abstract void injectToOverworld(Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> consumer) Injects this biome to overworld generation. This will be called automatically by FrozenLib unless the `disable` method is called.- Parameters:
consumer- The consumers used byOverworldBiomeBuilderto add biomes to worldgen.
-
disable
public void disable()Disables this biome from being automatically injected into worldgen.This may be useful in cases where you want to another mod to disable your mod's biomes from generating for the sake of compatibility.
-
isEnabled
public boolean isEnabled()- Returns:
- whether the biome can be automatically injected into worldgen.
-
getKey
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> getKey()- Returns:
- the
ResourceKeyof the biome.
-
addSurfaceBiome
public final void addSurfaceBiome(@NotNull @NotNull Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> consumer, net.minecraft.world.level.biome.Climate.Parameter temperature, net.minecraft.world.level.biome.Climate.Parameter humidity, net.minecraft.world.level.biome.Climate.Parameter continentalness, net.minecraft.world.level.biome.Climate.Parameter erosion, net.minecraft.world.level.biome.Climate.Parameter weirdness, float offset) Adds this biome to world generation at the surface, like most other biomes.This matches the depth of most other Vanilla surface biomes.
-
addSemiDeepBiome
public final void addSemiDeepBiome(@NotNull @NotNull Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> parameters, net.minecraft.world.level.biome.Climate.Parameter temperature, net.minecraft.world.level.biome.Climate.Parameter humidity, net.minecraft.world.level.biome.Climate.Parameter continentalness, net.minecraft.world.level.biome.Climate.Parameter erosion, net.minecraft.world.level.biome.Climate.Parameter weirdness, float offset) Adds this biome to world generation between the depths of a regular and deep cave biome.This is between Vanilla's Lush Caves/Dripstone Caves and Deep Dark depth.
-
addUndergroundBiome
public final void addUndergroundBiome(@NotNull @NotNull Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> consumer, net.minecraft.world.level.biome.Climate.Parameter temperature, net.minecraft.world.level.biome.Climate.Parameter humidity, net.minecraft.world.level.biome.Climate.Parameter continentalness, net.minecraft.world.level.biome.Climate.Parameter erosion, net.minecraft.world.level.biome.Climate.Parameter weirdness, float offset) Adds this biome to world generation at the depth of a regular cave biome.This matches Vanilla's Lush Caves/Dripstone Caves depth.
-
addBottomBiome
public final void addBottomBiome(@NotNull @NotNull Consumer<com.mojang.datafixers.util.Pair<net.minecraft.world.level.biome.Climate.ParameterPoint, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>> consumer, net.minecraft.world.level.biome.Climate.Parameter temerature, net.minecraft.world.level.biome.Climate.Parameter humidity, net.minecraft.world.level.biome.Climate.Parameter continentalness, net.minecraft.world.level.biome.Climate.Parameter erosion, net.minecraft.world.level.biome.Climate.Parameter weirdness, float offset) Adds this biome to world generation at the depth of a deep cave biome.This matches Vanilla's Deep Dark depth.
-
getFrozenBiomes
@NotNull public static @NotNull com.google.common.collect.ImmutableList<FrozenBiome> getFrozenBiomes()- Returns:
- the list of all FrozenBiomes.
-