Package net.minecraft.sound
Class BiomeMoodSound
java.lang.Object
net.minecraft.sound.BiomeMoodSound
- Mappings:
- Namespace - Name - official - cni- intermediary - net/minecraft/class_4968- named - net/minecraft/sound/BiomeMoodSound
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final BiomeMoodSoundstatic final com.mojang.serialization.Codec<BiomeMoodSound>private final intprivate final doubleprivate final RegistryEntry<SoundEvent>private final int
- 
Constructor SummaryConstructorsConstructorDescriptionBiomeMoodSound(RegistryEntry<SoundEvent> sound, int cultivationTicks, int spawnRange, double extraDistance) 
- 
Method SummaryModifier and TypeMethodDescriptionintReturns 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.doubleReturns the extra distance of the sound from the player when the sound plays from the mood position.getSound()intReturns the chebyshev distance from which the mood sound can play to the player.
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcni;a:Lcom/mojang/serialization/Codec;- intermediary - field_24674- Lnet/minecraft/class_4968;field_24674:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/sound/BiomeMoodSound;CODEC:Lcom/mojang/serialization/Codec;
 
- 
CAVE- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcni;b:Lcni;- intermediary - field_23146- Lnet/minecraft/class_4968;field_23146:Lnet/minecraft/class_4968;- named - CAVE- Lnet/minecraft/sound/BiomeMoodSound;CAVE:Lnet/minecraft/sound/BiomeMoodSound;
 
- 
sound- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcni;c:Lhe;- intermediary - field_23147- Lnet/minecraft/class_4968;field_23147:Lnet/minecraft/class_6880;- named - sound- Lnet/minecraft/sound/BiomeMoodSound;sound:Lnet/minecraft/registry/entry/RegistryEntry;
 
- 
cultivationTicksprivate final int cultivationTicks- Mappings:
- Namespace - Name - Mixin selector - official - d- Lcni;d:I- intermediary - field_23148- Lnet/minecraft/class_4968;field_23148:I- named - cultivationTicks- Lnet/minecraft/sound/BiomeMoodSound;cultivationTicks:I
 
- 
spawnRangeprivate final int spawnRange- Mappings:
- Namespace - Name - Mixin selector - official - e- Lcni;e:I- intermediary - field_23149- Lnet/minecraft/class_4968;field_23149:I- named - spawnRange- Lnet/minecraft/sound/BiomeMoodSound;spawnRange:I
 
- 
extraDistanceprivate final double extraDistance- Mappings:
- Namespace - Name - Mixin selector - official - f- Lcni;f:D- intermediary - field_23150- Lnet/minecraft/class_4968;field_23150:D- named - extraDistance- Lnet/minecraft/sound/BiomeMoodSound;extraDistance:D
 
 
- 
- 
Constructor Details- 
BiomeMoodSoundpublic BiomeMoodSound(RegistryEntry<SoundEvent> sound, int cultivationTicks, int spawnRange, double extraDistance) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lcni;<init>(Lhe;IID)V- intermediary - <init>- Lnet/minecraft/class_4968;<init>(Lnet/minecraft/class_6880;IID)V- named - <init>- Lnet/minecraft/sound/BiomeMoodSound;<init>(Lnet/minecraft/registry/entry/RegistryEntry;IID)V
 
 
- 
- 
Method Details- 
getSound- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcni;a()Lhe;- intermediary - method_26100- Lnet/minecraft/class_4968;method_26100()Lnet/minecraft/class_6880;- named - getSound- Lnet/minecraft/sound/BiomeMoodSound;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
 
- 
getCultivationTickspublic 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 - official - b- Lcni;b()I- intermediary - method_26101- Lnet/minecraft/class_4968;method_26101()I- named - getCultivationTicks- Lnet/minecraft/sound/BiomeMoodSound;getCultivationTicks()I
 
- 
getSpawnRangepublic int getSpawnRange()Returns the chebyshev distance from which the mood sound can play to the player.- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcni;c()I- intermediary - method_26102- Lnet/minecraft/class_4968;method_26102()I- named - getSpawnRange- Lnet/minecraft/sound/BiomeMoodSound;getSpawnRange()I
 
- 
getExtraDistancepublic 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 - official - d- Lcni;d()D- intermediary - method_26103- Lnet/minecraft/class_4968;method_26103()D- named - getExtraDistance- Lnet/minecraft/sound/BiomeMoodSound;getExtraDistance()D
 
 
-