类 SimpleSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.SimpleSoundInstance
- 所有已实现的接口:
SoundInstance
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.client.resources.sounds.SoundInstance
SoundInstance.Attenuation
-
字段概要
-
构造器概要
构造器限定符构造器说明SimpleSoundInstance
(ResourceLocation pLocation, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ, boolean pRelative) private
SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ) SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, double pX, double pY, double pZ) SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, BlockPos pEntity) -
方法概要
修饰符和类型方法说明static SimpleSoundInstance
forAmbientAddition
(SoundEvent pSound) static SimpleSoundInstance
forAmbientMood
(SoundEvent pSoundEvent, RandomSource pRandom, double pX, double pY, double pZ) static SimpleSoundInstance
forLocalAmbience
(SoundEvent pSound, float pVolume, float pPitch) static SimpleSoundInstance
forMusic
(SoundEvent pSound) static SimpleSoundInstance
forRecord
(SoundEvent pSound, Vec3 pPos) static SimpleSoundInstance
forUI
(Holder<SoundEvent> pSoundHolder, float pPitch) static SimpleSoundInstance
forUI
(SoundEvent pSound, float pPitch) static SimpleSoundInstance
forUI
(SoundEvent pSound, float pPitch, float pVolume) 从类继承的方法 net.minecraft.client.resources.sounds.AbstractSoundInstance
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toString
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.client.resources.sounds.SoundInstance
canPlaySound, canStartSilent, getStream
-
构造器详细资料
-
SimpleSoundInstance
public SimpleSoundInstance(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, BlockPos pEntity) -
SimpleSoundInstance
public SimpleSoundInstance(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, double pX, double pY, double pZ) -
SimpleSoundInstance
private SimpleSoundInstance(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ) -
SimpleSoundInstance
public SimpleSoundInstance(ResourceLocation pLocation, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ, boolean pRelative)
-
-
方法详细资料
-
forUI
-
forUI
-
forUI
-
forMusic
-
forRecord
-
forLocalAmbience
-
forAmbientAddition
-
forAmbientMood
public static SimpleSoundInstance forAmbientMood(SoundEvent pSoundEvent, RandomSource pRandom, double pX, double pY, double pZ)
-