public interface Waterloggable extends FluidDrainable, FluidFillable
Modifier and Type | Method and Description |
---|---|
default boolean |
canFillWithFluid(BlockView world,
BlockPos pos,
BlockState state,
Fluid fluid) |
default Fluid |
tryDrainFluid(WorldAccess world,
BlockPos pos,
BlockState state) |
default boolean |
tryFillWithFluid(WorldAccess world,
BlockPos pos,
BlockState state,
FluidState fluidState) |
default boolean canFillWithFluid(BlockView world, BlockPos pos, BlockState state, Fluid fluid)
canFillWithFluid
in interface FluidFillable
default boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)
tryFillWithFluid
in interface FluidFillable
default Fluid tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state)
tryDrainFluid
in interface FluidDrainable