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 SoundInstance
SoundInstance.Attenuation -
Field Summary
Fields inherited from class AbstractSoundInstance
attenuation, delay, identifier, looping, pitch, random, relative, sound, source, volume, x, y, z -
Constructor Summary
ConstructorsModifierConstructorDescriptionSimpleSoundInstance(Identifier 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 sound, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z) SimpleSoundInstance(SoundEvent sound, SoundSource source, float volume, float pitch, RandomSource random, double x, double y, double z) SimpleSoundInstance(SoundEvent sound, SoundSource source, float volume, float pitch, RandomSource random, BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleSoundInstanceforAmbientAddition(SoundEvent sound) static SimpleSoundInstanceforAmbientMood(SoundEvent sound, RandomSource random, double x, double y, double z) static SimpleSoundInstanceforJukeboxSong(SoundEvent sound, Vec3 pos) static SimpleSoundInstanceforLocalAmbience(SoundEvent sound, float pitch, float volume) static SimpleSoundInstanceforMusic(SoundEvent sound) static SimpleSoundInstanceforUI(Holder<SoundEvent> sound, float pitch) static SimpleSoundInstanceforUI(SoundEvent sound, float pitch) static SimpleSoundInstanceforUI(SoundEvent sound, float pitch, float volume) Methods inherited from class AbstractSoundInstance
getAttenuation, getDelay, getIdentifier, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SoundInstance
canPlaySound, canStartSilent, getStream
-
Constructor Details
-
SimpleSoundInstance
public SimpleSoundInstance(SoundEvent sound, SoundSource source, float volume, float pitch, RandomSource random, BlockPos pos) -
SimpleSoundInstance
public SimpleSoundInstance(SoundEvent sound, SoundSource source, float volume, float pitch, RandomSource random, double x, double y, double z) -
SimpleSoundInstance
private SimpleSoundInstance(SoundEvent sound, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z) -
SimpleSoundInstance
public SimpleSoundInstance(Identifier 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 sound, RandomSource random, double x, double y, double z)
-