Interface MatchingFluidsPredicate

All Superinterfaces:
BlockPredicate, Wrapper

@NullMarked @AsOf("3.0.0") public interface MatchingFluidsPredicate extends BlockPredicate
Checks if the fluid at the specified offset is one of the specified fluids.
Since:
3.0.0
See Also:
  • Method Details

    • offset

      @AsOf("3.0.0") BlockVector offset()
      The offset from the block to check.
      Returns:
      the offset
      Since:
      3.0.0
    • fluids

      @AsOf("3.0.0") List<FluidType> fluids()
      The fluids to match against.
      Returns:
      the fluids
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default MatchingFluidsPredicate.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static MatchingFluidsPredicate of(BlockVector offset, List<FluidType> fluids)
      Creates a new matching fluids predicate.
      Parameters:
      offset - the offset
      fluids - the fluids to match against
      Returns:
      the matching fluids predicate
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static MatchingFluidsPredicate of(List<FluidType> fluids)
      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

      @AsOf("3.0.0") static MatchingFluidsPredicate.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0