Class StatisticsCommand
java.lang.Object
com.thecsdev.betterstats.command.StatisticsCommand
Logic for the
/statistics (or /stats) command.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleError(@NotNull com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, @NotNull Throwable throwable) Handles errors that occur during command execution.static voidregister(@NotNull com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, @NotNull net.minecraft.commands.CommandBuildContext buildContext) Registers the/statistics(or/stats) command.
-
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- TheCommandDispatcher.buildContext- TheCommandBuildContext.- Throws:
NullPointerException- If aNotNullargument isnull.
-
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- TheCommandContext.throwable- TheThrowablethat occurred.- Throws:
NullPointerException- If aNotNullargument isnull.
-