toWaitingChainTail

fun CommandStage.toWaitingChainTail(function: NamedFunctionInfoData = NamedFunctionInfoData.EMPTY): WaitingChainTail

Converts a CommandStage to a WaitingChainTail with optional function criteria. For stages that require function waiting, the provided function is used. For stages that don't require function waiting, an empty function is used.

Return

A WaitingChainTail for this stage.

Parameters

function

The function criteria for stages that require it. Defaults to empty.