public class LinearPosRuleTest extends PosRuleTest
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<LinearPosRuleTest> |
CODEC |
private float |
maxChance |
private int |
maxDistance |
private float |
minChance |
private int |
minDistance |
field_25007
Constructor and Description |
---|
LinearPosRuleTest(float minChance,
float maxChance,
int minDistance,
int maxDistance) |
Modifier and Type | Method and Description |
---|---|
protected PosRuleTestType<?> |
getType() |
boolean |
test(BlockPos blockPos,
BlockPos blockPos2,
BlockPos blockPos3,
Random random) |
public static final com.mojang.serialization.Codec<LinearPosRuleTest> CODEC
private final float minChance
private final float maxChance
private final int minDistance
private final int maxDistance
public LinearPosRuleTest(float minChance, float maxChance, int minDistance, int maxDistance)
public boolean test(BlockPos blockPos, BlockPos blockPos2, BlockPos blockPos3, Random random)
test
in class PosRuleTest
protected PosRuleTestType<?> getType()
getType
in class PosRuleTest