Interface CommandHelper<SOURCE extends net.minecraft.commands.SharedSuggestionProvider>

All Known Subinterfaces:
ClientCommandHelper<SOURCE>, ServerCommandHelper
All Known Implementing Classes:
FabricClientCommandHelper, FabricServerCommandHelper

public interface CommandHelper<SOURCE extends net.minecraft.commands.SharedSuggestionProvider>
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<SOURCE,T>
    argument(String key, com.mojang.brigadier.arguments.ArgumentType<T> type)
     
    net.minecraft.world.entity.player.Player
    getPlayer(SOURCE source)
     
    com.mojang.brigadier.builder.LiteralArgumentBuilder<SOURCE>
     
    void
    sendFailure(SOURCE source, net.minecraft.network.chat.Component message)
     
    void
    sendSystemMessage(SOURCE source, net.minecraft.network.chat.Component message)
     
  • Method Details

    • literal

      com.mojang.brigadier.builder.LiteralArgumentBuilder<SOURCE> literal(String key)
    • argument

      <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<SOURCE,T> argument(String key, com.mojang.brigadier.arguments.ArgumentType<T> type)
    • getPlayer

      net.minecraft.world.entity.player.Player getPlayer(SOURCE source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • sendSystemMessage

      void sendSystemMessage(SOURCE source, net.minecraft.network.chat.Component message)
    • sendFailure

      void sendFailure(SOURCE source, net.minecraft.network.chat.Component message)