Package net.minecraft.client.audio
Class Sound
java.lang.Object
net.minecraft.client.audio.Sound
- All Implemented Interfaces:
ISoundEventAccessor<Sound>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final ResourceLocation
private final float
private final boolean
private final boolean
private final Sound.Type
private final float
private final int
-
Constructor Summary
ConstructorDescriptionSound
(String p_i49182_1_, float p_i49182_2_, float p_i49182_3_, int p_i49182_4_, Sound.Type p_i49182_5_, boolean p_i49182_6_, boolean p_i49182_7_, int p_i49182_8_) -
Method Summary
Modifier and TypeMethodDescriptionint
getPath()
float
getPitch()
getSound()
getType()
float
int
void
preloadIfRequired
(SoundEngine p_217867_1_) boolean
boolean
toString()
-
Field Details
-
location
-
volume
private final float volume -
pitch
private final float 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_i49182_1_, float p_i49182_2_, float p_i49182_3_, int p_i49182_4_, Sound.Type p_i49182_5_, boolean p_i49182_6_, boolean p_i49182_7_, int p_i49182_8_)
-
-
Method Details
-
getLocation
-
getPath
-
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getWeight
public int getWeight()- Specified by:
getWeight
in interfaceISoundEventAccessor<Sound>
-
getSound
- Specified by:
getSound
in interfaceISoundEventAccessor<Sound>
-
preloadIfRequired
- Specified by:
preloadIfRequired
in interfaceISoundEventAccessor<Sound>
-
getType
-
shouldStream
public boolean shouldStream() -
shouldPreload
public boolean shouldPreload() -
getAttenuationDistance
public int getAttenuationDistance() -
toString
-