public class RandomBlockStateMatchRuleTest extends RuleTest
Modifier and Type | Field and Description |
---|---|
private float |
probability |
private BlockState |
state |
Constructor and Description |
---|
RandomBlockStateMatchRuleTest(BlockState state,
float probability) |
RandomBlockStateMatchRuleTest(com.mojang.datafixers.Dynamic<T> p_i51323_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 BlockState state
private final float probability
public RandomBlockStateMatchRuleTest(BlockState state, float probability)
public RandomBlockStateMatchRuleTest(com.mojang.datafixers.Dynamic<T> p_i51323_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