Weighted .java

net.minecraft.client.sounds.Weighted (interface, 15 lines): members: preloadIfRequired, getWeight, getSound. imports: RandomSource.

net.minecraft.client.soundsinterface15 linesclient315 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (2)

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

Full Source

Weighted.java15 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.sounds;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.util.RandomSource;
6
7
@Environment(EnvType.CLIENT)
8
public interface Weighted<T> {
9
	int getWeight();
10
11
	T getSound(RandomSource random);
12
13
	void preloadIfRequired(SoundEngine soundEngine);
14
}
15

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