Class BiomeMoodSound

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

public class BiomeMoodSound
extends Object
  • Field Details

  • Constructor Details

    • BiomeMoodSound

      public BiomeMoodSound​(SoundEvent event, int cultivationTicks, int spawnRange, double extraDistance)
  • Method Details

    • getEvent

      @Environment(CLIENT) public SoundEvent getEvent()
    • getCultivationTicks

      @Environment(CLIENT) 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.
    • getSpawnRange

      @Environment(CLIENT) public int getSpawnRange()
      Returns the chebyshev distance from which the mood sound can play to the player.
    • getExtraDistance

      @Environment(CLIENT) 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.