Interface BlockPredicate
- All Superinterfaces:
Predicate<org.bukkit.block.Block>
A
Predicate for Blocks in a World, parsed from user input.
By default, a parsed BlockPredicate will not load chunks to perform tests. It will simply
return false when attempting to test a block in unloaded chunks.
To get a BlockPredicate which will load chunks, use loadChunks().
- Since:
- 1.5.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull BlockPredicateGet a version of thisBlockPredicatewhich will load chunks in order to perform tests.
-
Method Details
-
loadChunks
@NonNull BlockPredicate loadChunks()Get a version of thisBlockPredicatewhich will load chunks in order to perform tests.If this
BlockPredicatealready loads chunks, it will simply return itself.- Returns:
- a
BlockPredicatewhich loads chunks - Since:
- 1.5.0
-