Class SimpleSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.SimpleSoundInstance
- All Implemented Interfaces:
SoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance
SoundInstance.Attenuation -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSimpleSoundInstance(ResourceLocation location, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z, boolean relative) privateSimpleSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z) SimpleSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, double x, double y, double z) SimpleSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, BlockPos entity) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleSoundInstanceforAmbientAddition(SoundEvent sound) static SimpleSoundInstanceforAmbientMood(SoundEvent soundEvent, RandomSource random, double x, double y, double z) static SimpleSoundInstanceforJukeboxSong(SoundEvent sound, Vec3 pos) static SimpleSoundInstanceforLocalAmbience(SoundEvent sound, float volume, float pitch) static SimpleSoundInstanceforMusic(SoundEvent sound) static SimpleSoundInstanceforUI(Holder<SoundEvent> soundHolder, float pitch) static SimpleSoundInstanceforUI(SoundEvent sound, float pitch) static SimpleSoundInstanceforUI(SoundEvent sound, float pitch, float volume) Methods inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.sounds.SoundInstance
canPlaySound, canStartSilent, getStream
-
Constructor Details
-
SimpleSoundInstance
public SimpleSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, BlockPos entity) -
SimpleSoundInstance
public SimpleSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, double x, double y, double z) -
SimpleSoundInstance
private SimpleSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z) -
SimpleSoundInstance
public SimpleSoundInstance(ResourceLocation location, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z, boolean relative)
-
-
Method Details
-
forUI
-
forUI
-
forUI
-
forMusic
-
forJukeboxSong
-
forLocalAmbience
-
forAmbientAddition
-
forAmbientMood
public static SimpleSoundInstance forAmbientMood(SoundEvent soundEvent, RandomSource random, double x, double y, double z)
-