Interface MatchingFluidsPredicate
- All Superinterfaces:
BlockPredicate, Wrapper
Checks if the fluid at the specified offset is one of the specified fluids.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.fluids()The fluids to match against.static MatchingFluidsPredicateCreates a new matching fluids predicate with a zero offset.static MatchingFluidsPredicateof(BlockVector offset, List<FluidType> fluids) Creates a new matching fluids predicate.offset()The offset from the block to check.default MatchingFluidsPredicate.BuilderConverts 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
-
fluids
-
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 fluids predicate.- Parameters:
offset- the offsetfluids- the fluids to match against- Returns:
- the matching fluids predicate
- Since:
- 3.0.0
-
of
Creates a new matching fluids predicate with a zero offset.- Parameters:
fluids- the fluids to match against- Returns:
- the matching fluids predicate
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-