32 lines
825 B
Java
32 lines
825 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.client.resources.sounds;
|
|
|
|
import net.minecraft.client.resources.sounds.AbstractSoundInstance;
|
|
import net.minecraft.client.resources.sounds.TickableSoundInstance;
|
|
import net.minecraft.sounds.SoundEvent;
|
|
import net.minecraft.sounds.SoundSource;
|
|
import net.minecraft.util.RandomSource;
|
|
|
|
public abstract class AbstractTickableSoundInstance
|
|
extends AbstractSoundInstance
|
|
implements TickableSoundInstance {
|
|
private boolean stopped;
|
|
|
|
protected AbstractTickableSoundInstance(SoundEvent event, SoundSource source, RandomSource random) {
|
|
super(event, source, random);
|
|
}
|
|
|
|
@Override
|
|
public boolean isStopped() {
|
|
return this.stopped;
|
|
}
|
|
|
|
protected final void stop() {
|
|
this.stopped = true;
|
|
this.looping = false;
|
|
}
|
|
}
|
|
|