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 SoundInstance
SoundInstance.Attenuation -
Field Summary
FieldsFields inherited from class AbstractSoundInstance
attenuation, delay, identifier, looping, pitch, random, relative, sound, source, volume, x, y, z -
Constructor Summary
ConstructorsConstructorDescriptionDirectionalSoundInstance(SoundEvent event, SoundSource source, RandomSource random, Camera camera, float xAngle, float yAngle) -
Method Summary
Methods inherited from class AbstractTickableSoundInstance
isStopped, stopMethods 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, getAttenuation, getDelay, getIdentifier, 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 event, SoundSource source, RandomSource random, Camera camera, float xAngle, float yAngle)
-
-
Method Details
-
setPosition
private void setPosition() -
tick
public void tick()
-