Class BiomeEffects

java.lang.Object
net.minecraft.world.biome.BiomeEffects

public class BiomeEffects extends Object
Mappings:
Namespace Name
official cnq
intermediary net/minecraft/class_4763
named net/minecraft/world/biome/BiomeEffects
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<BiomeEffects> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lcnq;a:Lcom/mojang/serialization/Codec;
      intermediary field_24714 Lnet/minecraft/class_4763;field_24714:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/biome/BiomeEffects;CODEC:Lcom/mojang/serialization/Codec;
    • fogColor

      private final int fogColor
      Mappings:
      Namespace Name Mixin selector
      official b Lcnq;b:I
      intermediary field_22067 Lnet/minecraft/class_4763;field_22067:I
      named fogColor Lnet/minecraft/world/biome/BiomeEffects;fogColor:I
    • waterColor

      private final int waterColor
      Mappings:
      Namespace Name Mixin selector
      official c Lcnq;c:I
      intermediary field_22068 Lnet/minecraft/class_4763;field_22068:I
      named waterColor Lnet/minecraft/world/biome/BiomeEffects;waterColor:I
    • waterFogColor

      private final int waterFogColor
      Mappings:
      Namespace Name Mixin selector
      official d Lcnq;d:I
      intermediary field_22069 Lnet/minecraft/class_4763;field_22069:I
      named waterFogColor Lnet/minecraft/world/biome/BiomeEffects;waterFogColor:I
    • skyColor

      private final int skyColor
      Mappings:
      Namespace Name Mixin selector
      official e Lcnq;e:I
      intermediary field_26418 Lnet/minecraft/class_4763;field_26418:I
      named skyColor Lnet/minecraft/world/biome/BiomeEffects;skyColor:I
    • foliageColor

      private final Optional<Integer> foliageColor
      Mappings:
      Namespace Name Mixin selector
      official f Lcnq;f:Ljava/util/Optional;
      intermediary field_26419 Lnet/minecraft/class_4763;field_26419:Ljava/util/Optional;
      named foliageColor Lnet/minecraft/world/biome/BiomeEffects;foliageColor:Ljava/util/Optional;
    • grassColor

      private final Optional<Integer> grassColor
      Mappings:
      Namespace Name Mixin selector
      official g Lcnq;g:Ljava/util/Optional;
      intermediary field_26420 Lnet/minecraft/class_4763;field_26420:Ljava/util/Optional;
      named grassColor Lnet/minecraft/world/biome/BiomeEffects;grassColor:Ljava/util/Optional;
    • grassColorModifier

      private final BiomeEffects.GrassColorModifier grassColorModifier
      Mappings:
      Namespace Name Mixin selector
      official h Lcnq;h:Lcnq$b;
      intermediary field_26421 Lnet/minecraft/class_4763;field_26421:Lnet/minecraft/class_4763$class_5486;
      named grassColorModifier Lnet/minecraft/world/biome/BiomeEffects;grassColorModifier:Lnet/minecraft/world/biome/BiomeEffects$GrassColorModifier;
    • particleConfig

      private final Optional<BiomeParticleConfig> particleConfig
      Mappings:
      Namespace Name Mixin selector
      official i Lcnq;i:Ljava/util/Optional;
      intermediary field_22070 Lnet/minecraft/class_4763;field_22070:Ljava/util/Optional;
      named particleConfig Lnet/minecraft/world/biome/BiomeEffects;particleConfig:Ljava/util/Optional;
    • loopSound

      private final Optional<RegistryEntry<SoundEvent>> loopSound
      Mappings:
      Namespace Name Mixin selector
      official j Lcnq;j:Ljava/util/Optional;
      intermediary field_22491 Lnet/minecraft/class_4763;field_22491:Ljava/util/Optional;
      named loopSound Lnet/minecraft/world/biome/BiomeEffects;loopSound:Ljava/util/Optional;
    • moodSound

      private final Optional<BiomeMoodSound> moodSound
      Mappings:
      Namespace Name Mixin selector
      official k Lcnq;k:Ljava/util/Optional;
      intermediary field_22492 Lnet/minecraft/class_4763;field_22492:Ljava/util/Optional;
      named moodSound Lnet/minecraft/world/biome/BiomeEffects;moodSound:Ljava/util/Optional;
    • additionsSound

      private final Optional<BiomeAdditionsSound> additionsSound
      Mappings:
      Namespace Name Mixin selector
      official l Lcnq;l:Ljava/util/Optional;
      intermediary field_22493 Lnet/minecraft/class_4763;field_22493:Ljava/util/Optional;
      named additionsSound Lnet/minecraft/world/biome/BiomeEffects;additionsSound:Ljava/util/Optional;
    • music

      private final Optional<MusicSound> music
      Mappings:
      Namespace Name Mixin selector
      official m Lcnq;m:Ljava/util/Optional;
      intermediary field_24113 Lnet/minecraft/class_4763;field_24113:Ljava/util/Optional;
      named music Lnet/minecraft/world/biome/BiomeEffects;music:Ljava/util/Optional;
  • Constructor Details

    • BiomeEffects

      BiomeEffects(int fogColor, int waterColor, int waterFogColor, int skyColor, Optional<Integer> foliageColor, Optional<Integer> grassColor, BiomeEffects.GrassColorModifier grassColorModifier, Optional<BiomeParticleConfig> particleConfig, Optional<RegistryEntry<SoundEvent>> loopSound, Optional<BiomeMoodSound> moodSound, Optional<BiomeAdditionsSound> additionsSound, Optional<MusicSound> music)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcnq;<init>(IIIILjava/util/Optional;Ljava/util/Optional;Lcnq$b;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_4763;<init>(IIIILjava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_4763$class_5486;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/world/biome/BiomeEffects;<init>(IIIILjava/util/Optional;Ljava/util/Optional;Lnet/minecraft/world/biome/BiomeEffects$GrassColorModifier;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • getFogColor

      public int getFogColor()
      Mappings:
      Namespace Name Mixin selector
      official a Lcnq;a()I
      intermediary method_24387 Lnet/minecraft/class_4763;method_24387()I
      named getFogColor Lnet/minecraft/world/biome/BiomeEffects;getFogColor()I
    • getWaterColor

      public int getWaterColor()
      Mappings:
      Namespace Name Mixin selector
      official b Lcnq;b()I
      intermediary method_24388 Lnet/minecraft/class_4763;method_24388()I
      named getWaterColor Lnet/minecraft/world/biome/BiomeEffects;getWaterColor()I
    • getWaterFogColor

      public int getWaterFogColor()
      Mappings:
      Namespace Name Mixin selector
      official c Lcnq;c()I
      intermediary method_24389 Lnet/minecraft/class_4763;method_24389()I
      named getWaterFogColor Lnet/minecraft/world/biome/BiomeEffects;getWaterFogColor()I
    • getSkyColor

      public int getSkyColor()
      Mappings:
      Namespace Name Mixin selector
      official d Lcnq;d()I
      intermediary method_30810 Lnet/minecraft/class_4763;method_30810()I
      named getSkyColor Lnet/minecraft/world/biome/BiomeEffects;getSkyColor()I
    • getFoliageColor

      public Optional<Integer> getFoliageColor()
      Mappings:
      Namespace Name Mixin selector
      official e Lcnq;e()Ljava/util/Optional;
      intermediary method_30811 Lnet/minecraft/class_4763;method_30811()Ljava/util/Optional;
      named getFoliageColor Lnet/minecraft/world/biome/BiomeEffects;getFoliageColor()Ljava/util/Optional;
    • getGrassColor

      public Optional<Integer> getGrassColor()
      Mappings:
      Namespace Name Mixin selector
      official f Lcnq;f()Ljava/util/Optional;
      intermediary method_30812 Lnet/minecraft/class_4763;method_30812()Ljava/util/Optional;
      named getGrassColor Lnet/minecraft/world/biome/BiomeEffects;getGrassColor()Ljava/util/Optional;
    • getGrassColorModifier

      public BiomeEffects.GrassColorModifier getGrassColorModifier()
      Mappings:
      Namespace Name Mixin selector
      official g Lcnq;g()Lcnq$b;
      intermediary method_30814 Lnet/minecraft/class_4763;method_30814()Lnet/minecraft/class_4763$class_5486;
      named getGrassColorModifier Lnet/minecraft/world/biome/BiomeEffects;getGrassColorModifier()Lnet/minecraft/world/biome/BiomeEffects$GrassColorModifier;
    • getParticleConfig

      public Optional<BiomeParticleConfig> getParticleConfig()
      Mappings:
      Namespace Name Mixin selector
      official h Lcnq;h()Ljava/util/Optional;
      intermediary method_24390 Lnet/minecraft/class_4763;method_24390()Ljava/util/Optional;
      named getParticleConfig Lnet/minecraft/world/biome/BiomeEffects;getParticleConfig()Ljava/util/Optional;
    • getLoopSound

      public Optional<RegistryEntry<SoundEvent>> getLoopSound()
      Returns the loop sound.

      A loop sound is played continuously as an ambient sound whenever the player is in the biome with this effect.

      Mappings:
      Namespace Name Mixin selector
      official i Lcnq;i()Ljava/util/Optional;
      intermediary method_24939 Lnet/minecraft/class_4763;method_24939()Ljava/util/Optional;
      named getLoopSound Lnet/minecraft/world/biome/BiomeEffects;getLoopSound()Ljava/util/Optional;
    • getMoodSound

      public Optional<BiomeMoodSound> getMoodSound()
      Returns the mood sound.

      A mood sound is played once every 6000 to 17999 ticks as an ambient sound whenever the player is in the biome with this effect and near a position that has 0 sky light and less than 7 combined light.

      Overworld biomes have the regular cave sound as their mood sound, while three nether biomes in 20w10a have their dedicated mood sounds.

      Mappings:
      Namespace Name Mixin selector
      official j Lcnq;j()Ljava/util/Optional;
      intermediary method_24940 Lnet/minecraft/class_4763;method_24940()Ljava/util/Optional;
      named getMoodSound Lnet/minecraft/world/biome/BiomeEffects;getMoodSound()Ljava/util/Optional;
    • getAdditionsSound

      public Optional<BiomeAdditionsSound> getAdditionsSound()
      Returns the additions sound.

      An additions sound is played at 1.1% chance every tick as an ambient sound whenever the player is in the biome with this effect.

      Mappings:
      Namespace Name Mixin selector
      official k Lcnq;k()Ljava/util/Optional;
      intermediary method_24941 Lnet/minecraft/class_4763;method_24941()Ljava/util/Optional;
      named getAdditionsSound Lnet/minecraft/world/biome/BiomeEffects;getAdditionsSound()Ljava/util/Optional;
    • getMusic

      public Optional<MusicSound> getMusic()
      Mappings:
      Namespace Name Mixin selector
      official l Lcnq;l()Ljava/util/Optional;
      intermediary method_27345 Lnet/minecraft/class_4763;method_27345()Ljava/util/Optional;
      named getMusic Lnet/minecraft/world/biome/BiomeEffects;getMusic()Ljava/util/Optional;