getFluid

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

Gets the fluid at the given coordinates.

This method will return the following in specific cases:

  • If the given y coordinate is greater than the maximum height of this world, or there is no chunk loaded at the given coordinates (getChunk was null), this will return Fluids.EMPTY.

  • Else it will return the fluid at the given coordinates.

Return

see above

Parameters

x

the X coordinate

y

the Y coordinate

z

the Z coordinate


abstract override fun getFluid(position: Vec3i): FluidState

Gets the fluid at the given position.

This method has semantics identical to that of getFluid with individual components (X, Y, and Z values).

Return

see above

Parameters

position

the position