PosRuleTest .java

net.minecraft.world.level.levelgen.structure.templatesystem.PosRuleTest (class, 17 lines): members: test, getType, CODEC. strings: "predicate_type".

net.minecraft.world.level.levelgen.structure.templatesystemclass17 linescommon632 B

API Surface (0)

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

Fields & Constants (1)

CODEC

String literals (1)

"predicate_type"

Code Graph: Dependencies (4)

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

Full Source

PosRuleTest.java17 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.levelgen.structure.templatesystem;
2
3
import com.mojang.serialization.Codec;
4
import net.minecraft.core.BlockPos;
5
import net.minecraft.core.registries.BuiltInRegistries;
6
import net.minecraft.util.RandomSource;
7
8
public abstract class PosRuleTest {
9
	public static final Codec<PosRuleTest> CODEC = BuiltInRegistries.POS_RULE_TEST
10
		.byNameCodec()
11
		.dispatch("predicate_type", PosRuleTest::getType, PosRuleTestType::codec);
12
13
	public abstract boolean test(final BlockPos inTemplatePos, BlockPos worldPos, BlockPos worldReference, RandomSource random);
14
15
	protected abstract PosRuleTestType<?> getType();
16
}
17

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