Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
An argument resolver extracts the argument value out of the current CommandContext.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class LiteralCommandBuilder<Source : SharedSuggestionProvider, PermissionSource>(name: String) : CommandBuilder<Source, LiteralArgumentBuilder<Source>, LiteralCommandNode<Source>>
Link copied to clipboard
An enum containing known permission levels. Information taken from the Minecraft wiki
Link copied to clipboard
class RegistrableCommand<Source : SharedSuggestionProvider, PermissionSource>(val commandBuilder: LiteralCommandBuilder<Source>)
A wrapper around mutable command builders, which makes sure they don't get mutated anymore and can be registered.
Link copied to clipboard
typealias SimpleArgumentBuilder<Source, T> = ArgumentCommandBuilder<Source, T>.(argument: ArgumentResolver<Source, T>) -> Unit
The simple argument builder is a variant of an ArgumentCommandBuilder lambda function that supports ArgumentResolver (passed as it).
Properties
Functions
Link copied to clipboard
@Environment(value = EnvType.CLIENT)
Creates a new client command. Opens a LiteralCommandBuilder. This command will work on the client, even if the player is connected to a third party server.
Link copied to clipboard
inline fun command(name: String, register: Boolean = true, builder: LiteralCommandBuilder<CommandSourceStack>.() -> Unit = {}): RegistrableCommand<CommandSourceStack>
Creates a new command. Opens a LiteralCommandBuilder.
Link copied to clipboard
Link copied to clipboard