Package org.incendo.cloud.bukkit.data
Interface BlockPredicate
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 TypeMethodDescriptionGet a version of thisBlockPredicate
which will load chunks in order to perform tests.
-
Method Details
-
loadChunks
@NonNull BlockPredicate loadChunks()Get a version of thisBlockPredicate
which will load chunks in order to perform tests.If this
BlockPredicate
already loads chunks, it will simply return itself.- Returns:
- a
BlockPredicate
which loads chunks - Since:
- 1.5.0
-