Class FrozenBiome

java.lang.Object
net.frozenblock.lib.worldgen.biome.api.FrozenBiome

public abstract class FrozenBiome extends Object
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    addBottomBiome(@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 void
    addFeatures(net.minecraft.world.level.biome.BiomeGenerationSettings.Builder features)
    Adds placed features to this biome.
    final void
    addSemiDeepBiome(@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 void
    addSpawns(net.minecraft.world.level.biome.MobSpawnSettings.Builder spawns)
    Adds mob spawns to this biome.
    final void
    addSurfaceBiome(@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 void
    addUndergroundBiome(@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.AmbientAdditionsSettings
     
    abstract @Nullable net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent>
     
    abstract @Nullable net.minecraft.world.level.biome.AmbientMoodSettings
     
    abstract @Nullable net.minecraft.world.level.biome.AmbientParticleSettings
     
    abstract @Nullable net.minecraft.sounds.Music
     
    abstract String
     
    final @NotNull net.minecraft.world.level.biome.Biome
    create(@NotNull net.minecraft.data.worldgen.BootstapContext<net.minecraft.world.level.biome.Biome> entries)
    Builds this biome.
    void
    Disables this biome from being automatically injected into worldgen.
    abstract float
     
    abstract int
     
    abstract @Nullable Integer
     
    static @NotNull com.google.common.collect.ImmutableList<FrozenBiome>
     
    net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>
     
    net.minecraft.world.level.biome.BiomeSpecialEffects.GrassColorModifier
     
    abstract @Nullable Integer
     
    abstract boolean
     
    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.
    boolean
     
    abstract String
     
    abstract int
     
    abstract float
     
    net.minecraft.world.level.biome.Biome.TemperatureModifier
     
    abstract int
     
    abstract int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FrozenBiome

      protected FrozenBiome()
  • Method Details

    • modID

      public abstract String modID()
      Returns:
      the namespace to use for this biome.
    • biomeID

      public abstract String 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

      @Nullable public abstract @Nullable Integer foliageColorOverride()
      Returns:
      the foliage color override to use for this biome.
    • grassColorOverride

      @Nullable public abstract @Nullable Integer grassColorOverride()
      Returns:
      the grass color override to use for the biome.
    • grassColorModifier

      public net.minecraft.world.level.biome.BiomeSpecialEffects.GrassColorModifier grassColorModifier()
      Returns:
      the BiomeSpecialEffects.GrassColorModifier of the biome.
    • ambientParticleSettings

      @Nullable public abstract @Nullable net.minecraft.world.level.biome.AmbientParticleSettings ambientParticleSettings()
      Returns:
      the AmbientParticleSettings of 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 AmbientMoodSettings of the biome.
    • ambientAdditionsSound

      @Nullable public abstract @Nullable net.minecraft.world.level.biome.AmbientAdditionsSettings ambientAdditionsSound()
      Returns:
      the AmbientAdditionsSettings of the biome.
    • backgroundMusic

      @Nullable public abstract @Nullable net.minecraft.sounds.Music backgroundMusic()
      Returns:
      the Music of 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 - The BiomeGenerationSettings.Builder used 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 - The MobSpawnSettings.Builder used 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 by OverworldBiomeBuilder to 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 ResourceKey of 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.