Interface RandomBlockStateMatchTest
Tests is the block for the specified
BlockData. Then only matches with a given probability.- Since:
- 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe block state to match.static RandomBlockStateMatchTestCreates a new random block state match test.static RandomBlockStateMatchTestCreates a new random block state match test.floatThe probability of matching between 0.0 and 1.0.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
blockState
-
probability
The probability of matching between 0.0 and 1.0.- Returns:
- the probability
- Since:
- 3.0.0
-
of
Creates a new random block state match test.- Parameters:
blockState- the block state to matchprobability- the probability of matching- Returns:
- the random block state match test
- Since:
- 3.0.0
-
of
Creates a new random block state match test.- Parameters:
material- the material to matchprobability- the probability of matching- Returns:
- the random block state match test
- Since:
- 3.0.0
-