public class RandomBlockMatchRuleTest extends RuleTest
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private float |
probability |
Constructor and Description |
---|
RandomBlockMatchRuleTest(Block block,
float probability) |
RandomBlockMatchRuleTest(com.mojang.datafixers.Dynamic<T> p_i51325_1_) |
Modifier and Type | Method and Description |
---|---|
protected IRuleTestType |
getType() |
protected <T> com.mojang.datafixers.Dynamic<T> |
serialize0(com.mojang.datafixers.types.DynamicOps<T> p_215182_1_) |
boolean |
test(BlockState p_215181_1_,
java.util.Random p_215181_2_) |
private final Block block
private final float probability
public RandomBlockMatchRuleTest(Block block, float probability)
public RandomBlockMatchRuleTest(com.mojang.datafixers.Dynamic<T> p_i51325_1_)
public boolean test(BlockState p_215181_1_, java.util.Random p_215181_2_)
protected IRuleTestType getType()
protected <T> com.mojang.datafixers.Dynamic<T> serialize0(com.mojang.datafixers.types.DynamicOps<T> p_215182_1_)
serialize0
in class RuleTest