Package net.minecraft.structure.rule
Class RuleTest
java.lang.Object
net.minecraft.structure.rule.RuleTest
- Direct Known Subclasses:
 AlwaysTrueRuleTest,BlockMatchRuleTest,BlockStateMatchRuleTest,RandomBlockMatchRuleTest,RandomBlockStateMatchRuleTest,TagMatchRuleTest
Rule tests are used in structure generation to check if a block state matches some condition.
- Mappings:
 Namespace Name official dvnintermediary net/minecraft/class_3825named net/minecraft/structure/rule/RuleTest
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RuleTestType<?>getType()abstract booleantest(BlockState state, Random random)  
- 
Field Details
- 
TYPE_CODEC
- Mappings:
 Namespace Name Mixin selector official cLdvn;c:Lcom/mojang/serialization/Codec;intermediary field_25012Lnet/minecraft/class_3825;field_25012:Lcom/mojang/serialization/Codec;named TYPE_CODECLnet/minecraft/structure/rule/RuleTest;TYPE_CODEC:Lcom/mojang/serialization/Codec;
 
 - 
 - 
Constructor Details
- 
RuleTest
public RuleTest() 
 - 
 - 
Method Details
- 
test
- Mappings:
 Namespace Name Mixin selector official aLdvn;a(Ldcb;Lapf;)Zintermediary method_16768Lnet/minecraft/class_3825;method_16768(Lnet/minecraft/class_2680;Lnet/minecraft/class_5819;)Znamed testLnet/minecraft/structure/rule/RuleTest;test(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/random/Random;)Z
 - 
getType
- Mappings:
 Namespace Name Mixin selector official aLdvn;a()Ldvo;intermediary method_16766Lnet/minecraft/class_3825;method_16766()Lnet/minecraft/class_3827;named getTypeLnet/minecraft/structure/rule/RuleTest;getType()Lnet/minecraft/structure/rule/RuleTestType;
 
 -