net.minecraft.client.sound

public class Sound

implements SoundContainer<Sound>

net.minecraft.client.resources.sounds.Sound
net.minecraft.class_1111
net.minecraft.client.sound.Sound

Field summary

Modifier and TypeField
public static final ResourceFinder
SOUND_LISTER
field_40575
FINDER
private final Identifier
location
field_5469
id
private final FloatSupplier
volume
field_5466
volume
private final FloatSupplier
pitch
field_5464
pitch
private final int
weight
field_5468
weight
private final Sound$RegistrationType
type
field_5470
registrationType
private final boolean
stream
field_5467
stream
private final boolean
preload
field_5465
preload
private final int
attenuationDistance
field_5463
attenuation

Constructor summary

ModifierConstructor
public (Identifier id, FloatSupplier volume, FloatSupplier pitch, int weight, Sound$RegistrationType registrationType, boolean stream, boolean preload, int attenuation)

Method summary

Modifier and TypeMethod
public Identifier
getLocation()
method_4767()
getIdentifier()
public Identifier
getPath()
method_4766()
getLocation()
public FloatSupplier
getVolume()
method_4771()
getVolume()
public FloatSupplier
getPitch()
method_4772()
getPitch()
public int
getWeight()
method_4894()
getWeight()
public Sound
getSound(RandomSource random)
method_4893(class_5819 arg0)
getSound(Random arg0)
public void
preloadIfRequired(SoundEngine soundEngine)
method_18188(class_1140 arg0)
preload(SoundSystem arg0)
public Sound$RegistrationType
getType()
method_4768()
getRegistrationType()
public boolean
shouldStream()
method_4769()
isStreamed()
public boolean
shouldPreload()
method_4764()
isPreloaded()
public int
getAttenuationDistance()
method_4770()
getAttenuation()
public Object
getSound(RandomSource random)
method_4893(class_5819 arg0)
getSound(Random arg0)