AbstractTickableSoundInstance .java

net.minecraft.client.resources.sounds.AbstractTickableSoundInstance (class, 27 lines): members: isStopped, stopped, stop. imports: SoundSource.

net.minecraft.client.resources.soundsclass27 linesclientextends AbstractSoundInstance720 B

Implements

API Surface (2)

boolean isStopped()
void stop()

Fields & Constants (1)

stopped

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

AbstractTickableSoundInstance.java27 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.resources.sounds;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.sounds.SoundEvent;
6
import net.minecraft.sounds.SoundSource;
7
import net.minecraft.util.RandomSource;
8
9
@Environment(EnvType.CLIENT)
10
public abstract class AbstractTickableSoundInstance extends AbstractSoundInstance implements TickableSoundInstance {
11
	private boolean stopped;
12
13
	protected AbstractTickableSoundInstance(final SoundEvent event, final SoundSource source, final RandomSource random) {
14
		super(event, source, random);
15
	}
16
17
	@Override
18
	public boolean isStopped() {
19
		return this.stopped;
20
	}
21
22
	protected final void stop() {
23
		this.stopped = true;
24
		this.looping = false;
25
	}
26
}
27

Decompiled Minecraft 26.3 source of AbstractTickableSoundInstance (net/minecraft/client/resources/sounds/AbstractTickableSoundInstance.java) with Mojang official mappings, stored verbatim on the site.