接口 FluidInteractionRegistry.HasFluidInteraction

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

@FunctionalInterface public static interface FluidInteractionRegistry.HasFluidInteraction
An interface which tests whether a source fluid can interact with its surroundings.
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    test(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState)
    Returns whether the interaction can occur.
  • 方法详细资料

    • test

      boolean test(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState)
      Returns whether the interaction can occur.
      参数:
      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
      返回:
      true if an interaction can occur, false otherwise