FluidContainer

interface FluidContainer

Something that contains fluids.

The default value that will be returned instead of null if no fluid is found is Fluids.EMPTY.

Inheritors

Functions

Link copied to clipboard
abstract fun getFluid(position: Vec3i): FluidState

Gets the fluid at the given position.

abstract fun getFluid(x: Int, y: Int, z: Int): FluidState

Gets the fluid at the given x, y, and z coordinates.