Class BiomeMoodSound

java.lang.Object
net.minecraft.sound.BiomeMoodSound

public class BiomeMoodSound extends Object
Mappings:
Namespace Name
named net/minecraft/sound/BiomeMoodSound
intermediary net/minecraft/class_4968
official dhj
  • Field Details Link icon

    • CODEC Link icon

      public static final com.mojang.serialization.Codec<BiomeMoodSound> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/sound/BiomeMoodSound;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_24674 Lnet/minecraft/class_4968;field_24674:Lcom/mojang/serialization/Codec;
      official a Ldhj;a:Lcom/mojang/serialization/Codec;
    • CAVE Link icon

      public static final BiomeMoodSound CAVE
      Mappings:
      Namespace Name Mixin selector
      named CAVE Lnet/minecraft/sound/BiomeMoodSound;CAVE:Lnet/minecraft/sound/BiomeMoodSound;
      intermediary field_23146 Lnet/minecraft/class_4968;field_23146:Lnet/minecraft/class_4968;
      official b Ldhj;b:Ldhj;
    • sound Link icon

      private final RegistryEntry<SoundEvent> sound
      Mappings:
      Namespace Name Mixin selector
      named sound Lnet/minecraft/sound/BiomeMoodSound;sound:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_23147 Lnet/minecraft/class_4968;field_23147:Lnet/minecraft/class_6880;
      official c Ldhj;c:Ljr;
    • cultivationTicks Link icon

      private final int cultivationTicks
      Mappings:
      Namespace Name Mixin selector
      named cultivationTicks Lnet/minecraft/sound/BiomeMoodSound;cultivationTicks:I
      intermediary field_23148 Lnet/minecraft/class_4968;field_23148:I
      official d Ldhj;d:I
    • spawnRange Link icon

      private final int spawnRange
      Mappings:
      Namespace Name Mixin selector
      named spawnRange Lnet/minecraft/sound/BiomeMoodSound;spawnRange:I
      intermediary field_23149 Lnet/minecraft/class_4968;field_23149:I
      official e Ldhj;e:I
    • extraDistance Link icon

      private final double extraDistance
      Mappings:
      Namespace Name Mixin selector
      named extraDistance Lnet/minecraft/sound/BiomeMoodSound;extraDistance:D
      intermediary field_23150 Lnet/minecraft/class_4968;field_23150:D
      official f Ldhj;f:D
  • Constructor Details Link icon

    • BiomeMoodSound Link icon

      public BiomeMoodSound(RegistryEntry<SoundEvent> sound, int cultivationTicks, int spawnRange, double extraDistance)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/sound/BiomeMoodSound;<init>(Lnet/minecraft/registry/entry/RegistryEntry;IID)V
      intermediary <init> Lnet/minecraft/class_4968;<init>(Lnet/minecraft/class_6880;IID)V
      official <init> Ldhj;<init>(Ljr;IID)V
  • Method Details Link icon

    • getSound Link icon

      public RegistryEntry<SoundEvent> getSound()
      Mappings:
      Namespace Name Mixin selector
      named getSound Lnet/minecraft/sound/BiomeMoodSound;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_26100 Lnet/minecraft/class_4968;method_26100()Lnet/minecraft/class_6880;
      official a Ldhj;a()Ljr;
    • getCultivationTicks Link icon

      public int getCultivationTicks()
      Returns the ticks it takes for entering the mood environment (a totally dark cave) to playing the mood sound, or the inverse of the per-tick.
      Mappings:
      Namespace Name Mixin selector
      named getCultivationTicks Lnet/minecraft/sound/BiomeMoodSound;getCultivationTicks()I
      intermediary method_26101 Lnet/minecraft/class_4968;method_26101()I
      official b Ldhj;b()I
    • getSpawnRange Link icon

      public int getSpawnRange()
      Returns the chebyshev distance from which the mood sound can play to the player.
      Mappings:
      Namespace Name Mixin selector
      named getSpawnRange Lnet/minecraft/sound/BiomeMoodSound;getSpawnRange()I
      intermediary method_26102 Lnet/minecraft/class_4968;method_26102()I
      official c Ldhj;c()I
    • getExtraDistance Link icon

      public double getExtraDistance()
      Returns the extra distance of the sound from the player when the sound plays from the mood position.

      The sound is actually played at a position along the line on the three-dimensional vector from the player to the chosen mood position that is this distance to the mood position and this distance farther from the player.

      Mappings:
      Namespace Name Mixin selector
      named getExtraDistance Lnet/minecraft/sound/BiomeMoodSound;getExtraDistance()D
      intermediary method_26103 Lnet/minecraft/class_4968;method_26103()D
      official d Ldhj;d()D