CommandBuilder

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val gpuDevice: GpuDevice
Link copied to clipboard
open val interaction: MultiPlayerGameMode
Link copied to clipboard
open val mc: Minecraft
Link copied to clipboard
Link copied to clipboard
open val network: ClientPacketListener
Link copied to clipboard
open val player: LocalPlayer
Link copied to clipboard
open val world: ClientLevel

Functions

Link copied to clipboard
Link copied to clipboard
fun alias(vararg aliases: String): CommandBuilder
Link copied to clipboard
fun build(): Command
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
fun parameter(parameter: Parameter<*>): CommandBuilder
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
fun subcommand(subcommandFactory: Command.Factory): CommandBuilder
Link copied to clipboard

Add a wrapped suspend handler to net.ccbluex.liquidbounce.features.command.builder.CommandBuilder if you don't want to block the render thread.