Interface LinearPosTest
- All Superinterfaces:
PosRuleTest, Wrapper
Passes with a chance that moves linearly with the block's distance from the template's origin.
- Since:
- 3.4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfloatThe 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 LinearPosTestof(float minChance, float maxChance, int minDist, int maxDist) Creates 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
-
of
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 at- Returns:
- the test
- Since:
- 3.4.0
-