接口 FluidInteractionRegistry.HasFluidInteraction
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
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
Returns whether the interaction can occur.- 参数:
level
- the level the interaction takes place incurrentPos
- the position of the sourcerelativePos
- a position surrounding the sourcecurrentState
- the state of the fluid surrounding the source- 返回:
true
if an interaction can occur,false
otherwise
-