DensitySamplerSet .java

net.minecraft.world.level.levelgen.densityfunction.DensitySamplerSet (interface, 11 lines): members: sampleValue, get. ann: @FunctionalInterface.

net.minecraft.world.level.levelgen.densityfunctioninterface11 linescommon358 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

DensitySamplerSet.java11 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.levelgen.densityfunction;
2
3
@FunctionalInterface
4
public interface DensitySamplerSet {
5
	DensitySampler.Bound get(DensityFunction function);
6
7
	default float sampleValue(final DensityFunction function, final int blockX, final int blockY, final int blockZ) {
8
		return this.get(function).sampleValue(blockX, blockY, blockZ);
9
	}
10
}
11

Decompiled Minecraft 26.3 source of DensitySamplerSet (net/minecraft/world/level/levelgen/densityfunction/DensitySamplerSet.java) with Mojang official mappings, stored verbatim on the site.