Interface Commands
public interface Commands
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource, T> Creates a newRequiredArgumentBuilderof the required name and type.static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> Creates a newLiteralArgumentBuilderof the required name.
-
Method Details
-
literal
Creates a newLiteralArgumentBuilderof the required name.- Parameters:
name- the literal name- Returns:
- a new literal argument builder
-
argument
static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource, T> argument(String name, com.mojang.brigadier.arguments.ArgumentType<T> argumentType) Creates a newRequiredArgumentBuilderof the required name and type.- Type Parameters:
T- the argument type- Parameters:
name- the argument nameargumentType- the argument type required- Returns:
- a new required argument builder
-