public class RandomBlockStateMatchRuleTest extends RuleTest
Modifier and Type | Field and Description |
---|---|
private BlockState |
blockState |
private float |
probability |
Constructor and Description |
---|
RandomBlockStateMatchRuleTest(BlockState blockState,
float probability) |
RandomBlockStateMatchRuleTest(com.mojang.datafixers.Dynamic<T> dynamic) |
Modifier and Type | Method and Description |
---|---|
protected RuleTestType |
getType() |
protected <T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
boolean |
test(BlockState state,
Random random) |
serializeWithId
private final BlockState blockState
private final float probability
public RandomBlockStateMatchRuleTest(BlockState blockState, float probability)
public RandomBlockStateMatchRuleTest(com.mojang.datafixers.Dynamic<T> dynamic)
public boolean test(BlockState state, Random random)
protected RuleTestType getType()