EnvironmentAttributeLayer .java

net.minecraft.world.attribute.EnvironmentAttributeLayer (interface, 25 lines): permits E, E, E. members: Positional, TimeBased, Constant. imports: Vec3.

net.minecraft.world.attributeinterface25 linescommon834 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

EnvironmentAttributeLayer.java25 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.attribute;
2
3
import net.minecraft.world.phys.Vec3;
4
import org.jspecify.annotations.Nullable;
5
6
public sealed interface EnvironmentAttributeLayer<Value>
7
	permits EnvironmentAttributeLayer.Constant,
8
	EnvironmentAttributeLayer.Positional,
9
	EnvironmentAttributeLayer.TimeBased {
10
	@FunctionalInterface
11
	non-sealed interface Constant<Value> extends EnvironmentAttributeLayer<Value> {
12
		Value applyConstant(Value baseValue);
13
	}
14
15
	@FunctionalInterface
16
	non-sealed interface Positional<Value> extends EnvironmentAttributeLayer<Value> {
17
		Value applyPositional(Value baseValue, Vec3 pos, @Nullable SpatialAttributeInterpolator biomeInterpolator);
18
	}
19
20
	@FunctionalInterface
21
	non-sealed interface TimeBased<Value> extends EnvironmentAttributeLayer<Value> {
22
		Value applyTimeBased(Value baseValue, int cacheTickId);
23
	}
24
}
25

Decompiled Minecraft 26.3 source of EnvironmentAttributeLayer (net/minecraft/world/attribute/EnvironmentAttributeLayer.java) with Mojang official mappings, stored verbatim on the site.