Interface InsideWorldBoundsPredicate
- All Superinterfaces:
BlockPredicate, Wrapper
Checks if the position's y-level (with the specified offset) is within the height limits of the world.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.static InsideWorldBoundsPredicateof()Creates a new inside world bounds predicate with a zero offset.static InsideWorldBoundsPredicateof(BlockVector offset) Creates a new inside world bounds predicate.offset()The offset from the block to check.Converts this object back to a builder.Methods inherited from interface BlockPredicate
notMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
offset
The offset from the block to check.- Returns:
- the offset
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
Creates a new inside world bounds predicate.- Parameters:
offset- the offset- Returns:
- the inside world bounds predicate
- Since:
- 3.0.0
-
of
Creates a new inside world bounds predicate with a zero offset.- Returns:
- the inside world bounds predicate
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-