Class AxisAlignedLinearPosTest
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.PosRuleTest
-
- net.minecraft.world.gen.feature.template.AxisAlignedLinearPosTest
-
public class AxisAlignedLinearPosTest extends PosRuleTest
-
-
Field Summary
Fields Modifier and Type Field Description private Direction.Axis
axis
static com.mojang.serialization.Codec<AxisAlignedLinearPosTest>
CODEC
private float
maxChance
private int
maxDist
private float
minChance
private int
minDist
-
Constructor Summary
Constructors Constructor Description AxisAlignedLinearPosTest(float p_i232114_1_, float p_i232114_2_, int p_i232114_3_, int p_i232114_4_, Direction.Axis p_i232114_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IPosRuleTests<?>
getType()
boolean
test(BlockPos p_230385_1_, BlockPos p_230385_2_, BlockPos p_230385_3_, java.util.Random p_230385_4_)
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<AxisAlignedLinearPosTest> CODEC
-
minChance
private final float minChance
-
maxChance
private final float maxChance
-
minDist
private final int minDist
-
maxDist
private final int maxDist
-
axis
private final Direction.Axis axis
-
-
Constructor Detail
-
AxisAlignedLinearPosTest
public AxisAlignedLinearPosTest(float p_i232114_1_, float p_i232114_2_, int p_i232114_3_, int p_i232114_4_, Direction.Axis p_i232114_5_)
-
-
Method Detail
-
test
public boolean test(BlockPos p_230385_1_, BlockPos p_230385_2_, BlockPos p_230385_3_, java.util.Random p_230385_4_)
- Specified by:
test
in classPosRuleTest
-
getType
protected IPosRuleTests<?> getType()
- Specified by:
getType
in classPosRuleTest
-
-