BeeFlyingSoundInstance .java

net.minecraft.client.resources.sounds.BeeFlyingSoundInstance (class): members: getAlternativeSoundInstance, shouldSwitchSounds. imports: Bee, SoundSource.

net.minecraft.client.resources.soundsclass25 linesclientextends BeeSoundInstance678 B

API Surface (2)

AbstractTickableSoundInstance getAlternativeSoundInstance()
boolean shouldSwitchSounds()

Code Graph: Dependencies (5)

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

Full Source

BeeFlyingSoundInstance.java25 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.SoundEvents;
6
import net.minecraft.sounds.SoundSource;
7
import net.minecraft.world.entity.animal.bee.Bee;
8
9
@Environment(EnvType.CLIENT)
10
public class BeeFlyingSoundInstance extends BeeSoundInstance {
11
	public BeeFlyingSoundInstance(final Bee bee) {
12
		super(bee, SoundEvents.BEE_LOOP, SoundSource.NEUTRAL);
13
	}
14
15
	@Override
16
	protected AbstractTickableSoundInstance getAlternativeSoundInstance() {
17
		return new BeeAggressiveSoundInstance(this.bee);
18
	}
19
20
	@Override
21
	protected boolean shouldSwitchSounds() {
22
		return this.bee.isAngry();
23
	}
24
}
25

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