Class RandomBlockStateMatchRuleTest
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.RuleTest
-
- net.minecraft.world.gen.feature.template.RandomBlockStateMatchRuleTest
-
public class RandomBlockStateMatchRuleTest extends RuleTest
-
-
Field Summary
Fields Modifier and Type Field Description private BlockState
blockState
static com.mojang.serialization.Codec<RandomBlockStateMatchRuleTest>
CODEC
private float
probability
-
Constructor Summary
Constructors Constructor Description RandomBlockStateMatchRuleTest(BlockState p_i51322_1_, float p_i51322_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IRuleTestType<?>
getType()
boolean
test(BlockState p_215181_1_, java.util.Random p_215181_2_)
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<RandomBlockStateMatchRuleTest> CODEC
-
blockState
private final BlockState blockState
-
probability
private final float probability
-
-
Constructor Detail
-
RandomBlockStateMatchRuleTest
public RandomBlockStateMatchRuleTest(BlockState p_i51322_1_, float p_i51322_2_)
-
-
Method Detail
-
test
public boolean test(BlockState p_215181_1_, java.util.Random p_215181_2_)
-
getType
protected IRuleTestType<?> getType()
-
-