Class AxisAlignedLinearPosTest
java.lang.Object
net.minecraft.world.level.levelgen.structure.templatesystem.PosRuleTest
net.minecraft.world.level.levelgen.structure.templatesystem.AxisAlignedLinearPosTest
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Direction.Axis
static final com.mojang.serialization.MapCodec
<AxisAlignedLinearPosTest> private final float
private final int
private final float
private final int
-
Constructor Summary
ConstructorDescriptionAxisAlignedLinearPosTest
(float p_73970_, float p_73971_, int p_73972_, int p_73973_, Direction.Axis p_73974_) -
Method Summary
Modifier and TypeMethodDescriptionprotected PosRuleTestType
<?> getType()
boolean
test
(BlockPos p_230251_, BlockPos p_230252_, BlockPos p_230253_, RandomSource p_230254_)
-
Field Details
-
CODEC
-
minChance
private final float minChance -
maxChance
private final float maxChance -
minDist
private final int minDist -
maxDist
private final int maxDist -
axis
-
-
Constructor Details
-
AxisAlignedLinearPosTest
public AxisAlignedLinearPosTest(float p_73970_, float p_73971_, int p_73972_, int p_73973_, Direction.Axis p_73974_)
-
-
Method Details
-
test
public boolean test(BlockPos p_230251_, BlockPos p_230252_, BlockPos p_230253_, RandomSource p_230254_) - Specified by:
test
in classPosRuleTest
-
getType
- Specified by:
getType
in classPosRuleTest
-