Class RandomBlockMatchRuleTest
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.RuleTest
-
- net.minecraft.world.gen.feature.template.RandomBlockMatchRuleTest
-
public class RandomBlockMatchRuleTest extends RuleTest
-
-
Field Summary
Fields Modifier and Type Field Description private Block
block
static com.mojang.serialization.Codec<RandomBlockMatchRuleTest>
CODEC
private float
probability
-
Constructor Summary
Constructors Constructor Description RandomBlockMatchRuleTest(Block p_i51324_1_, float p_i51324_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<RandomBlockMatchRuleTest> CODEC
-
block
private final Block block
-
probability
private final float probability
-
-
Constructor Detail
-
RandomBlockMatchRuleTest
public RandomBlockMatchRuleTest(Block p_i51324_1_, float p_i51324_2_)
-
-
Method Detail
-
test
public boolean test(BlockState p_215181_1_, java.util.Random p_215181_2_)
-
getType
protected IRuleTestType<?> getType()
-
-