Class ClientCommandEvents

java.lang.Object
net.ixdarklord.coolcatcore.api.event.v2.client.ClientCommandEvents

public final class ClientCommandEvents extends Object
Client-side commands. The loaders use different command sources (Fabric's FabricClientCommandSource, NeoForge's CommandSourceStack); both are SharedSuggestionProviders, which is the type commands are built with here. Reply through sendFeedback(net.minecraft.network.chat.Component) / sendError(net.minecraft.network.chat.Component).
  • Field Details

  • Method Details

    • sendFeedback

      public static void sendFeedback(net.minecraft.network.chat.Component message)
      A message in the chat, as a command's reply.
    • sendError

      public static void sendError(net.minecraft.network.chat.Component message)
      An error reply, in red.