接口 FluidInteractionRegistry.FluidInteraction

封闭类:
FluidInteractionRegistry
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public static interface FluidInteractionRegistry.FluidInteraction
An interface which performs an interaction for a source.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    interact(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState)
    Performs the interaction between the source and the surrounding data.
  • 方法详细资料

    • interact

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