Interface FluidInteractionRegistry.FluidInteraction

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.FluidInteraction
An interface which performs an interaction for a source.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    interact(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState)
    Performs the interaction between the source and the surrounding data.
  • Method Details

    • interact

      void interact(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState)
      Performs the interaction between the source and the surrounding data.
      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