Class LinearPosTest
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.PosRuleTest
-
- net.minecraft.world.gen.feature.template.LinearPosTest
-
public class LinearPosTest extends PosRuleTest
-
-
Constructor Summary
Constructors Constructor Description LinearPosTest(float p_i232116_1_, float p_i232116_2_, int p_i232116_3_, int p_i232116_4_)
-
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<LinearPosTest> CODEC
-
minChance
private final float minChance
-
maxChance
private final float maxChance
-
minDist
private final int minDist
-
maxDist
private final int maxDist
-
-
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
-
-