S - The sender typepublic interface CommandBuilder<S>
| Modifier and Type | Method and Description |
|---|---|
default <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<S,T> |
argument(java.lang.String name,
com.mojang.brigadier.arguments.ArgumentType<T> type)
Create a new required argument builder with the given name and type.
|
default LineArgumentBuilder<S> |
line()
Create a new line argument builder.
|
default <B extends com.mojang.brigadier.builder.ArgumentBuilder<S,?>> |
line(B parent,
java.util.function.Consumer<LineArgumentBuilder<S>> consumer)
Create a new line argument builder with the given parent.
|
default com.mojang.brigadier.builder.LiteralArgumentBuilder<S> |
literal(java.lang.String literal)
Create a new literal argument builder with the given literal.
|
default com.mojang.brigadier.builder.LiteralArgumentBuilder<S> literal(java.lang.String literal)
literal - The literaldefault <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<S,T> argument(java.lang.String name, com.mojang.brigadier.arguments.ArgumentType<T> type)
T - The type of the argumentname - The name of the argumenttype - The argument typedefault LineArgumentBuilder<S> line()
line(ArgumentBuilder, Consumer) to create a line with a parent.default <B extends com.mojang.brigadier.builder.ArgumentBuilder<S,?>> B line(B parent, java.util.function.Consumer<LineArgumentBuilder<S>> consumer)
B - The type of the parentparent - The parent of the lineconsumer - The consumer to configure the line