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