createFluidPoint

open fun createFluidPoint(type: FluidPointType, face: BlockFace, radius: Float)(source)

Creates a fluid input point. Call in your place constructor. Should be called at most once per block.


open fun createFluidPoint(type: FluidPointType, face: BlockFace, context: BlockCreateContext, allowVerticalFaces: Boolean, radius: Float)(source)
open fun createFluidPoint(type: FluidPointType, face: BlockFace, context: BlockCreateContext, allowVerticalFaces: Boolean)(source)

Creates a fluid input point. Call in your place constructor. Should be called at most once per block.

Parameters

context

If a player placed the block, the point will be rotated to the player's frame of reference, with NORTH considered 'forward'

allowVerticalFaces

Whether up/down should be considered when rotating to the player's frame of reference

See also