Command Builder
Functions
Link copied to clipboard
inline fun <T : Any> CommandBuilder.addParam(block: ParameterBuilder.Companion.() -> ParameterBuilder<T>): Parameter<T>
inline fun <T : Any> CommandBuilder.addParam(name: String, block: ParameterBuilder<T>.() -> ParameterBuilder<T>): Parameter<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
If a command is marked as a hub command, it is impossible to execute it.
Link copied to clipboard
fun <T> CommandBuilder.pagedQuery(pageSize: Int = 8, header: Command.() -> Component, items: () -> Collection<T>, eachRow: Command.(index: Int, T) -> Component): Command
Builds a general paged query command with one optional integer parameter.
Link copied to clipboard
Link copied to clipboard
Doesn't allow the command do be executed if either the world or the player are null.
Link copied to clipboard
Link copied to clipboard
fun CommandBuilder.suspendHandler(allowParallel: Boolean = false, handler: Command.Handler.Suspend): CommandBuilder
Add a wrapped suspend handler to net.ccbluex.liquidbounce.features.command.builder.CommandBuilder if you don't want to block the render thread.