Class StatisticsCommand

java.lang.Object
com.thecsdev.betterstats.command.StatisticsCommand

public final class StatisticsCommand extends Object
Logic for the /statistics (or /stats) command.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    handleError(@NotNull com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, @NotNull Throwable throwable)
    Handles errors that occur during command execution.
    static void
    register(@NotNull com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, @NotNull net.minecraft.commands.CommandBuildContext buildContext)
    Registers the /statistics (or /stats) command.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • register

      public static void register(@NotNull @NotNull com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, @NotNull @NotNull net.minecraft.commands.CommandBuildContext buildContext) throws NullPointerException
      Registers the /statistics (or /stats) command.
      Parameters:
      dispatcher - The CommandDispatcher.
      buildContext - The CommandBuildContext.
      Throws:
      NullPointerException - If a NotNull argument is null.
    • handleError

      @Internal public static void handleError(@NotNull @NotNull com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, @NotNull @NotNull Throwable throwable) throws NullPointerException
      Handles errors that occur during command execution.
      Parameters:
      context - The CommandContext.
      throwable - The Throwable that occurred.
      Throws:
      NullPointerException - If a NotNull argument is null.