Package net.minecraft.client.sound
Class MovingSoundInstance
java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
net.minecraft.client.sound.MovingSoundInstance
- All Implemented Interfaces:
SoundInstance
,TickableSoundInstance
- Direct Known Subclasses:
AbstractBeeSoundInstance
,AmbientSoundLoops.MusicLoop
,AmbientSoundLoops.Underwater
,BiomeEffectSoundPlayer.MusicLoop
,ElytraSoundInstance
,EntityTrackingSoundInstance
,GuardianAttackSoundInstance
,MinecartInsideSoundInstance
,MovingMinecartSoundInstance
@Environment(CLIENT) public abstract class MovingSoundInstance extends AbstractSoundInstance implements TickableSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.sound.SoundInstance
SoundInstance.AttenuationType
-
Field Summary
Fields Modifier and Type Field Description private boolean
done
Fields inherited from class net.minecraft.client.sound.AbstractSoundInstance
attenuationType, category, id, looping, pitch, repeat, repeatDelay, sound, volume, x, y, z
-
Constructor Summary
Constructors Modifier Constructor Description protected
MovingSoundInstance(SoundEvent sound, SoundCategory category)
-
Method Summary
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
canPlay, getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable, shouldAlwaysPlay
Methods inherited from interface net.minecraft.client.sound.TickableSoundInstance
tick
-
Field Details
-
done
private boolean done
-
-
Constructor Details
-
MovingSoundInstance
-
-
Method Details
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceTickableSoundInstance
-
setDone
protected final void setDone()
-