Interface FluidInteractionRegistry.HasFluidInteraction

Enclosing class:
FluidInteractionRegistry
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface FluidInteractionRegistry.HasFluidInteraction
An interface which tests whether a source fluid can interact with its surroundings.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState)
    Returns whether the interaction can occur.
  • Method Details

    • test

      boolean test(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState)
      Returns whether the interaction can occur.
      Parameters:
      level - the level the interaction takes place in
      currentPos - the position of the source
      relativePos - a position surrounding the source
      currentState - the state of the fluid surrounding the source
      Returns:
      true if an interaction can occur, false otherwise