Class DirectionalSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
net.minecraft.client.resources.sounds.DirectionalSoundInstance
- All Implemented Interfaces:
SoundInstance,TickableSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance
SoundInstance.Attenuation -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDirectionalSoundInstance(SoundEvent soundEvent, SoundSource source, RandomSource random, Camera camera, float xAngle, float yAngle) -
Method Summary
Methods inherited from class net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
isStopped, stopMethods 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, getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getStream, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
-
Field Details
-
camera
-
xAngle
private final float xAngle -
yAngle
private final float yAngle
-
-
Constructor Details
-
DirectionalSoundInstance
public DirectionalSoundInstance(SoundEvent soundEvent, SoundSource source, RandomSource random, Camera camera, float xAngle, float yAngle)
-
-
Method Details
-
setPosition
private void setPosition() -
tick
public void tick()
-