Class CommandUtils

java.lang.Object
io.github.xrickastley.sevenelements.command.CommandUtils

public class CommandUtils extends Object
  • Constructor Details

    • CommandUtils

      public CommandUtils()
  • Method Details

    • sendError

      public static int sendError(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Text text)
    • sendFeedback

      public static int sendFeedback(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Text text, boolean broadcastToOps)
    • sendFeedback

      public static int sendFeedback(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Text text, boolean broadcastToOps, int value)
    • getOrDefault

      public static <T> T getOrDefault(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, Class<T> clazz, T fallback)