类 BiomeMoodSound
- java.lang.Object
-
- net.minecraft.sound.BiomeMoodSound
-
public class BiomeMoodSound extends Object
- Mappings:
Namespace Name official bwointermediary net/minecraft/class_4968named net/minecraft/sound/BiomeMoodSound
-
-
字段概要
字段 修饰符和类型 字段 说明 static BiomeMoodSoundCAVEstatic com.mojang.serialization.Codec<BiomeMoodSound>CODECprivate intcultivationTicksprivate doubleextraDistanceprivate SoundEventsoundprivate intspawnRange
-
构造器概要
构造器 构造器 说明 BiomeMoodSound(SoundEvent sound, int cultivationTicks, int spawnRange, double extraDistance)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetCultivationTicks()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.doublegetExtraDistance()Returns the extra distance of the sound from the player when the sound plays from the mood position.SoundEventgetSound()intgetSpawnRange()Returns the chebyshev distance from which the mood sound can play to the player.
-
-
-
字段详细资料
-
CODEC
public static final com.mojang.serialization.Codec<BiomeMoodSound> CODEC
- Mappings:
Namespace Name Mixin selector official aLbwo;a:Lcom/mojang/serialization/Codec;intermediary field_24674Lnet/minecraft/class_4968;field_24674:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/sound/BiomeMoodSound;CODEC:Lcom/mojang/serialization/Codec;
-
CAVE
public static final BiomeMoodSound CAVE
- Mappings:
Namespace Name Mixin selector official bLbwo;b:Lbwo;intermediary field_23146Lnet/minecraft/class_4968;field_23146:Lnet/minecraft/class_4968;named CAVELnet/minecraft/sound/BiomeMoodSound;CAVE:Lnet/minecraft/sound/BiomeMoodSound;
-
sound
private final SoundEvent sound
- Mappings:
Namespace Name Mixin selector official cLbwo;c:Laev;intermediary field_23147Lnet/minecraft/class_4968;field_23147:Lnet/minecraft/class_3414;named soundLnet/minecraft/sound/BiomeMoodSound;sound:Lnet/minecraft/sound/SoundEvent;
-
cultivationTicks
private final int cultivationTicks
- Mappings:
Namespace Name Mixin selector official dLbwo;d:Iintermediary field_23148Lnet/minecraft/class_4968;field_23148:Inamed cultivationTicksLnet/minecraft/sound/BiomeMoodSound;cultivationTicks:I
-
spawnRange
private final int spawnRange
- Mappings:
Namespace Name Mixin selector official eLbwo;e:Iintermediary field_23149Lnet/minecraft/class_4968;field_23149:Inamed spawnRangeLnet/minecraft/sound/BiomeMoodSound;spawnRange:I
-
extraDistance
private final double extraDistance
- Mappings:
Namespace Name Mixin selector official fLbwo;f:Dintermediary field_23150Lnet/minecraft/class_4968;field_23150:Dnamed extraDistanceLnet/minecraft/sound/BiomeMoodSound;extraDistance:D
-
-
构造器详细资料
-
BiomeMoodSound
public BiomeMoodSound(SoundEvent sound, int cultivationTicks, int spawnRange, double extraDistance)
- Mappings:
Namespace Name Mixin selector official <init>Lbwo;<init>(Laev;IID)Vintermediary <init>Lnet/minecraft/class_4968;<init>(Lnet/minecraft/class_3414;IID)Vnamed <init>Lnet/minecraft/sound/BiomeMoodSound;<init>(Lnet/minecraft/sound/SoundEvent;IID)V
-
-
方法详细资料
-
getSound
public SoundEvent getSound()
- Mappings:
Namespace Name Mixin selector official aLbwo;a()Laev;intermediary method_26100Lnet/minecraft/class_4968;method_26100()Lnet/minecraft/class_3414;named getSoundLnet/minecraft/sound/BiomeMoodSound;getSound()Lnet/minecraft/sound/SoundEvent;
-
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 official bLbwo;b()Iintermediary method_26101Lnet/minecraft/class_4968;method_26101()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 official cLbwo;c()Iintermediary method_26102Lnet/minecraft/class_4968;method_26102()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 official dLbwo;d()Dintermediary method_26103Lnet/minecraft/class_4968;method_26103()Dnamed getExtraDistanceLnet/minecraft/sound/BiomeMoodSound;getExtraDistance()D
-
-