Package net.minecraftforge.fluids
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.
An interface which tests whether a source fluid can interact with its
surroundings.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState) Returns whether the interaction can occur.
-
Method Details
-
test
Returns whether the interaction can occur.- Parameters:
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- Returns:
true
if an interaction can occur,false
otherwise
-