Interface RarityFilter
- All Superinterfaces:
PlacementFilter, PlacementModifier, Wrapper
Either returns the current position or empty. The chance of returning the position is
1 / chance.- Since:
- 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintchance()The average chance denominator; the position is kept once on average every this many attempts.static RarityFilterof(int chance) Creates a new rarity filter.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
chance
The average chance denominator; the position is kept once on average every this many attempts.- Returns:
- the chance, a positive integer
- Since:
- 3.0.0
-
of
Creates a new rarity filter.- Parameters:
chance- the average chance denominator, a positive integer- Returns:
- a new rarity filter
- Since:
- 3.0.0
-