类 RandomBlockStateMatchRuleTest
- java.lang.Object
-
- net.minecraft.structure.rule.RuleTest
-
- net.minecraft.structure.rule.RandomBlockStateMatchRuleTest
-
public class RandomBlockStateMatchRuleTest extends RuleTest
- Mappings:
Namespace Name official dblintermediary net/minecraft/class_3823named net/minecraft/structure/rule/RandomBlockStateMatchRuleTest
-
-
字段概要
字段 修饰符和类型 字段 说明 private BlockStateblockStatestatic com.mojang.serialization.Codec<RandomBlockStateMatchRuleTest>CODECprivate floatprobability-
从类继承的字段 net.minecraft.structure.rule.RuleTest
TYPE_CODEC
-
-
构造器概要
构造器 构造器 说明 RandomBlockStateMatchRuleTest(BlockState blockState, float probability)
-
-
-
字段详细资料
-
CODEC
public static final com.mojang.serialization.Codec<RandomBlockStateMatchRuleTest> CODEC
- Mappings:
Namespace Name Mixin selector official aLdbl;a:Lcom/mojang/serialization/Codec;intermediary field_25010Lnet/minecraft/class_3823;field_25010:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/structure/rule/RandomBlockStateMatchRuleTest;CODEC:Lcom/mojang/serialization/Codec;
-
blockState
private final BlockState blockState
- Mappings:
Namespace Name Mixin selector official bLdbl;b:Lcjr;intermediary field_16878Lnet/minecraft/class_3823;field_16878:Lnet/minecraft/class_2680;named blockStateLnet/minecraft/structure/rule/RandomBlockStateMatchRuleTest;blockState:Lnet/minecraft/block/BlockState;
-
probability
private final float probability
- Mappings:
Namespace Name Mixin selector official dLdbl;d:Fintermediary field_16877Lnet/minecraft/class_3823;field_16877:Fnamed probabilityLnet/minecraft/structure/rule/RandomBlockStateMatchRuleTest;probability:F
-
-
构造器详细资料
-
RandomBlockStateMatchRuleTest
public RandomBlockStateMatchRuleTest(BlockState blockState, float probability)
- Mappings:
Namespace Name Mixin selector official <init>Ldbl;<init>(Lcjr;F)Vintermediary <init>Lnet/minecraft/class_3823;<init>(Lnet/minecraft/class_2680;F)Vnamed <init>Lnet/minecraft/structure/rule/RandomBlockStateMatchRuleTest;<init>(Lnet/minecraft/block/BlockState;F)V
-
-
方法详细资料
-
test
public boolean test(BlockState state, Random random)
- 指定者:
test在类中RuleTest- 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 RuleTestType<?> getType()
-
-