getComponent

fun CommandContext<CommandSourceStack>.getComponent(name: String): Component

Retrieves a Component from the command context.