Interface BlockInWorldPredicate
A predicate for a
Block
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The predicate result is yielded by theBlockInWorldPredicate
when applied to a block. -
Method Summary
Modifier and TypeMethodDescriptiondefault BlockInWorldPredicate.Result
Checks if the passed block matches the block predicate.Checks if the passed block matches the block predicate.
-
Method Details
-
testBlock
Checks if the passed block matches the block predicate.This method will load the chunk the block is at in a synchronous manner.
- Parameters:
block
- the block instance to check- Returns:
- the predicate result.
-
testBlock
Checks if the passed block matches the block predicate.- Parameters:
block
- the block instance to checkloadChunk
- if the chunk the block is located at should be loaded.- Returns:
- the predicate result.
-