Interface Commands


public interface Commands
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource, T>
    argument(String name, com.mojang.brigadier.arguments.ArgumentType<T> argumentType)
    Creates a new RequiredArgumentBuilder of the required name and type.
    static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource>
    Creates a new LiteralArgumentBuilder of the required name.
  • Method Details

    • literal

      static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> literal(String name)
      Creates a new LiteralArgumentBuilder of 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 new RequiredArgumentBuilder of the required name and type.
      Type Parameters:
      T - the argument type
      Parameters:
      name - the argument name
      argumentType - the argument type required
      Returns:
      a new required argument builder