Class Sound
java.lang.Object
net.minecraft.client.resources.sounds.Sound
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final ResourceLocation
private final SampledFloat
private final boolean
private final boolean
private final Sound.Type
private final SampledFloat
private final int
-
Constructor Summary
ConstructorDescriptionSound
(String p_235134_, SampledFloat p_235135_, SampledFloat p_235136_, int p_235137_, Sound.Type p_235138_, boolean p_235139_, boolean p_235140_, int p_235141_) -
Method Summary
Modifier and TypeMethodDescriptionint
getPath()
getPitch()
getSound
(RandomSource p_235143_) getType()
int
void
preloadIfRequired
(SoundEngine p_119789_) boolean
boolean
toString()
-
Field Details
-
location
-
volume
-
pitch
-
weight
private final int weight -
type
-
stream
private final boolean stream -
preload
private final boolean preload -
attenuationDistance
private final int attenuationDistance
-
-
Constructor Details
-
Sound
public Sound(String p_235134_, SampledFloat p_235135_, SampledFloat p_235136_, int p_235137_, Sound.Type p_235138_, boolean p_235139_, boolean p_235140_, int p_235141_)
-
-
Method Details
-
getLocation
-
getPath
-
getVolume
-
getPitch
-
getWeight
public int getWeight() -
getSound
-
preloadIfRequired
- Specified by:
preloadIfRequired
in interfaceWeighted<Sound>
-
getType
-
shouldStream
public boolean shouldStream() -
shouldPreload
public boolean shouldPreload() -
getAttenuationDistance
public int getAttenuationDistance() -
toString
-