Interface MatchingBlockTagPredicate
- All Superinterfaces:
BlockPredicate, Wrapper
Checks if the block at the specified offset is in the given block tag.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.static MatchingBlockTagPredicateof(ResourceKey tag) Creates a new matching block tag predicate with a zero offset.static MatchingBlockTagPredicateCreates a new matching block tag predicate with a zero offset from a Bukkit tag.static MatchingBlockTagPredicateof(BlockVector offset, ResourceKey tag) Creates a new matching block tag predicate.static MatchingBlockTagPredicateof(BlockVector offset, Tag<Material> tag) Creates a new matching block tag predicate from a Bukkit tag.offset()The offset from the block to check.tag()The block tag to check for.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
-
tag
-
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 matching block tag predicate.- Parameters:
offset- the offsettag- the tag- Returns:
- the matching block tag predicate
- Since:
- 3.0.0
-
of
Creates a new matching block tag predicate with a zero offset.- Parameters:
tag- the tag- Returns:
- the matching block tag predicate
- Since:
- 3.0.0
-
of
Creates a new matching block tag predicate from a Bukkit tag.- Parameters:
offset- the offsettag- the tag- Returns:
- the matching block tag predicate
- Since:
- 3.0.0
-
of
Creates a new matching block tag predicate with a zero offset from a Bukkit tag.- Parameters:
tag- the tag- Returns:
- the matching block tag predicate
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-