类 RuleTest
- java.lang.Object
-
- net.minecraft.structure.rule.RuleTest
-
- 直接已知子类:
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.- Mappings:
Namespace Name official dbnintermediary net/minecraft/class_3825named net/minecraft/structure/rule/RuleTest
-
-
字段概要
字段 修饰符和类型 字段 说明 static com.mojang.serialization.Codec<RuleTest>TYPE_CODEC
-
构造器概要
构造器 构造器 说明 RuleTest()
-
-
-
字段详细资料
-
TYPE_CODEC
public static final com.mojang.serialization.Codec<RuleTest> TYPE_CODEC
- Mappings:
Namespace Name Mixin selector official cLdbn;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;
-
-
方法详细资料
-
test
public abstract boolean test(BlockState state, Random random)
- Mappings:
Namespace Name Mixin selector official aLdbn;a(Lcjr;Ljava/util/Random;)Zintermediary method_16768Lnet/minecraft/class_3825;method_16768(Lnet/minecraft/class_2680;Ljava/util/Random;)Znamed testLnet/minecraft/structure/rule/RuleTest;test(Lnet/minecraft/block/BlockState;Ljava/util/Random;)Z
-
getType
protected abstract RuleTestType<?> getType()
- Mappings:
Namespace Name Mixin selector official aLdbn;a()Ldbo;intermediary method_16766Lnet/minecraft/class_3825;method_16766()Lnet/minecraft/class_3827;named getTypeLnet/minecraft/structure/rule/RuleTest;getType()Lnet/minecraft/structure/rule/RuleTestType;
-
-