Class CommandUtils
java.lang.Object
io.github.xrickastley.sevenelements.command.CommandUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TgetOrDefault(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, Class<T> clazz, T fallback) static intsendError(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Text text) static intsendFeedback(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Text text, boolean broadcastToOps) static intsendFeedback(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Text text, boolean broadcastToOps, int value)
-
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)
-