Package net.minecraft.structure.rule
Class RuleTest
java.lang.Object
net.minecraft.structure.rule.RuleTest
- Direct Known Subclasses:
AlwaysTrueRuleTest,BlockMatchRuleTest,BlockStateMatchRuleTest,RandomBlockMatchRuleTest,RandomBlockStateMatchRuleTest,TagMatchRuleTest
public abstract class RuleTest extends Object
Rule tests are used in structure generation to check if a block state matches some condition.
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<RuleTest>field_25012 -
Constructor Summary
Constructors Constructor Description RuleTest() -
Method Summary
Modifier and Type Method Description protected abstract RuleTestType<?>getType()abstract booleantest(BlockState state, Random random)
-
Field Details
-
field_25012
-
-
Constructor Details
-
RuleTest
public RuleTest()
-
-
Method Details
-
test
-
getType
-