public class RandomBlockStateMatchRuleTest extends RuleTest
Modifier and Type | Field and Description |
---|---|
private BlockState |
blockState |
static com.mojang.serialization.Codec<RandomBlockStateMatchRuleTest> |
CODEC |
private float |
probability |
field_25012
Constructor and Description |
---|
RandomBlockStateMatchRuleTest(BlockState blockState,
float probability) |
Modifier and Type | Method and Description |
---|---|
protected RuleTestType<?> |
getType() |
boolean |
test(BlockState state,
Random random) |
public static final com.mojang.serialization.Codec<RandomBlockStateMatchRuleTest> CODEC
private final BlockState blockState
private final float probability
public RandomBlockStateMatchRuleTest(BlockState blockState, float probability)
public boolean test(BlockState state, Random random)
protected RuleTestType<?> getType()