Package net.minecraft.sound
Class BiomeMoodSound
java.lang.Object
net.minecraft.sound.BiomeMoodSound
- Mappings:
Namespace Name intermediary net/minecraft/class_4968official cngnamed net/minecraft/sound/BiomeMoodSound
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BiomeMoodSoundstatic final com.mojang.serialization.Codec<BiomeMoodSound>private final intprivate final doubleprivate final RegistryEntry<SoundEvent>private final int -
Constructor Summary
ConstructorsConstructorDescriptionBiomeMoodSound(RegistryEntry<SoundEvent> sound, int cultivationTicks, int spawnRange, double extraDistance) -
Method Summary
Modifier 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 intermediary field_24674Lnet/minecraft/class_4968;field_24674:Lcom/mojang/serialization/Codec;official aLcng;a:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/sound/BiomeMoodSound;CODEC:Lcom/mojang/serialization/Codec;
-
CAVE
- Mappings:
Namespace Name Mixin selector intermediary field_23146Lnet/minecraft/class_4968;field_23146:Lnet/minecraft/class_4968;official bLcng;b:Lcng;named CAVELnet/minecraft/sound/BiomeMoodSound;CAVE:Lnet/minecraft/sound/BiomeMoodSound;
-
sound
- Mappings:
Namespace Name Mixin selector intermediary field_23147Lnet/minecraft/class_4968;field_23147:Lnet/minecraft/class_6880;official cLcng;c:Lhe;named soundLnet/minecraft/sound/BiomeMoodSound;sound:Lnet/minecraft/registry/entry/RegistryEntry;
-
cultivationTicks
private final int cultivationTicks- Mappings:
Namespace Name Mixin selector intermediary field_23148Lnet/minecraft/class_4968;field_23148:Iofficial dLcng;d:Inamed cultivationTicksLnet/minecraft/sound/BiomeMoodSound;cultivationTicks:I
-
spawnRange
private final int spawnRange- Mappings:
Namespace Name Mixin selector intermediary field_23149Lnet/minecraft/class_4968;field_23149:Iofficial eLcng;e:Inamed spawnRangeLnet/minecraft/sound/BiomeMoodSound;spawnRange:I
-
extraDistance
private final double extraDistance- Mappings:
Namespace Name Mixin selector intermediary field_23150Lnet/minecraft/class_4968;field_23150:Dofficial fLcng;f:Dnamed extraDistanceLnet/minecraft/sound/BiomeMoodSound;extraDistance:D
-
-
Constructor Details
-
BiomeMoodSound
public BiomeMoodSound(RegistryEntry<SoundEvent> sound, int cultivationTicks, int spawnRange, double extraDistance) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_4968;<init>(Lnet/minecraft/class_6880;IID)Vofficial <init>Lcng;<init>(Lhe;IID)Vnamed <init>Lnet/minecraft/sound/BiomeMoodSound;<init>(Lnet/minecraft/registry/entry/RegistryEntry;IID)V
-
-
Method Details
-
getSound
- Mappings:
Namespace Name Mixin selector intermediary method_26100Lnet/minecraft/class_4968;method_26100()Lnet/minecraft/class_6880;official aLcng;a()Lhe;named getSoundLnet/minecraft/sound/BiomeMoodSound;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
-
getCultivationTicks
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 intermediary method_26101Lnet/minecraft/class_4968;method_26101()Iofficial bLcng;b()Inamed getCultivationTicksLnet/minecraft/sound/BiomeMoodSound;getCultivationTicks()I
-
getSpawnRange
public int getSpawnRange()Returns the chebyshev distance from which the mood sound can play to the player.- Mappings:
Namespace Name Mixin selector intermediary method_26102Lnet/minecraft/class_4968;method_26102()Iofficial cLcng;c()Inamed getSpawnRangeLnet/minecraft/sound/BiomeMoodSound;getSpawnRange()I
-
getExtraDistance
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 intermediary method_26103Lnet/minecraft/class_4968;method_26103()Dofficial dLcng;d()Dnamed getExtraDistanceLnet/minecraft/sound/BiomeMoodSound;getExtraDistance()D
-