minecraft_25w45a_unobfuscated/net/minecraft/client/resources/sounds/AbstractTickableSoundInstance.java
2025-11-24 22:52:51 +03:00

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;
}
}