Interface AxisAlignedLinearPosTest
- All Superinterfaces:
PosRuleTest, Wrapper
Passes with a chance that moves linearly with the block's distance from the template's origin, measured along one axis.
- Since:
- 3.4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaxis()The axis distance is measured along.floatThe chance at the maximum distance.intmaxDist()The distance the maximum chance applies at.floatThe chance at the minimum distance.intminDist()The distance the minimum chance applies at.static AxisAlignedLinearPosTestCreates a new test.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
minChance
The chance at the minimum distance.- Returns:
- the minimum chance
- Since:
- 3.4.0
-
maxChance
The chance at the maximum distance.- Returns:
- the maximum chance
- Since:
- 3.4.0
-
minDist
The distance the minimum chance applies at.- Returns:
- the minimum distance
- Since:
- 3.4.0
-
maxDist
The distance the maximum chance applies at.- Returns:
- the maximum distance
- Since:
- 3.4.0
-
axis
-
of
@AsOf("3.4.0") static AxisAlignedLinearPosTest of(float minChance, float maxChance, int minDist, int maxDist, Axis axis) Creates a new test.- Parameters:
minChance- the chance at the minimum distancemaxChance- the chance at the maximum distanceminDist- the distance the minimum chance applies atmaxDist- the distance the maximum chance applies ataxis- the axis distance is measured along- Returns:
- the test
- Since:
- 3.4.0
-