Package net.minecraft.client.sound
Class EntityTrackingSoundInstance
java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
net.minecraft.client.sound.MovingSoundInstance
net.minecraft.client.sound.EntityTrackingSoundInstance
- All Implemented Interfaces:
SoundInstance
,TickableSoundInstance
@Environment(CLIENT) public class EntityTrackingSoundInstance extends MovingSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.sound.SoundInstance
SoundInstance.AttenuationType
-
Field Summary
Fields inherited from class net.minecraft.client.sound.AbstractSoundInstance
attenuationType, category, field_18935, id, looping, pitch, repeat, repeatDelay, sound, volume, x, y, z
-
Constructor Summary
Constructors Constructor Description EntityTrackingSoundInstance(SoundEvent sound, SoundCategory soundCategory, float volume, float pitch, Entity entity)
EntityTrackingSoundInstance(SoundEvent sound, SoundCategory soundCategory, Entity entity)
-
Method Summary
Methods inherited from class net.minecraft.client.sound.MovingSoundInstance
isDone, setDone
Methods inherited from class net.minecraft.client.sound.AbstractSoundInstance
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.sound.SoundInstance
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable, shouldAlwaysPlay
-
Field Details
-
entity
-
-
Constructor Details
-
EntityTrackingSoundInstance
-
EntityTrackingSoundInstance
public EntityTrackingSoundInstance(SoundEvent sound, SoundCategory soundCategory, float volume, float pitch, Entity entity)
-
-
Method Details
-
canPlay
public boolean canPlay() -
tick
public void tick()
-