Package org.quiltmc.qkl.wrapper.minecraft.brigadier.util
Functions
Link copied to clipboard
fun CommandContext<ServerCommandSource>.broadcastSystemMessage(message: Text, messageType: RegistryKey<MessageType> = MessageType.SYSTEM)
Content copied to clipboard
Sends message to every player on the server, with messageType if one is given.
Link copied to clipboard
inline fun <S, B1 : ArgumentBuilder<S, *>, B2 : ArgumentBuilder<S, *>, D1 : ArgumentDescriptor<*>, D2 : ArgumentDescriptor<*>> ArgumentBuilder<S, *>.required( first: ArgumentConstructor<S, B1, D1>, second: ArgumentConstructor<S, B2, D2>, action: B2.(ArgumentAccessor<S, D1>, ArgumentAccessor<S, D2>) -> Unit)
Content copied to clipboard
inline fun <S, B1 : ArgumentBuilder<S, *>, B2 : ArgumentBuilder<S, *>, B3 : ArgumentBuilder<S, *>, D1 : ArgumentDescriptor<*>, D2 : ArgumentDescriptor<*>, D3 : ArgumentDescriptor<*>> ArgumentBuilder<S, *>.required( first: ArgumentConstructor<S, B1, D1>, second: ArgumentConstructor<S, B2, D2>, third: ArgumentConstructor<S, B3, D3>, action: B3.(ArgumentAccessor<S, D1>, ArgumentAccessor<S, D2>, ArgumentAccessor<S, D3>) -> Unit)
Content copied to clipboard
Shorthand allowing registering multiple required arguments at once, with no branches between them.
Link copied to clipboard
fun CommandContext<ServerCommandSource>.sendFeedback(message: Text, broadcastToOps: Boolean = false)
Content copied to clipboard
Sends message as a system message to the player. Also sends to operators, if broadcastToOps is true
.