BeeAggressiveSoundInstance .java

net.minecraft.client.resources.sounds.BeeAggressiveSoundInstance (class, 26 lines): members: getAlternativeSoundInstance, shouldSwitchSounds. imports: Bee.

net.minecraft.client.resources.soundsclass26 linesclientextends BeeSoundInstance712 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

BeeAggressiveSoundInstance.java26 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 BeeAggressiveSoundInstance extends BeeSoundInstance {
11
	public BeeAggressiveSoundInstance(final Bee bee) {
12
		super(bee, SoundEvents.BEE_LOOP_AGGRESSIVE, SoundSource.NEUTRAL);
13
		this.delay = 0;
14
	}
15
16
	@Override
17
	protected AbstractTickableSoundInstance getAlternativeSoundInstance() {
18
		return new BeeFlyingSoundInstance(this.bee);
19
	}
20
21
	@Override
22
	protected boolean shouldSwitchSounds() {
23
		return !this.bee.isAngry();
24
	}
25
}
26

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