Package dev.booky.cloudcore.commands
Class CommandUtil
java.lang.Object
dev.booky.cloudcore.commands.CommandUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.kyori.adventure.text.ComponentasComponent(com.mojang.brigadier.Message message) static com.mojang.brigadier.MessageasMessage(net.kyori.adventure.text.Component component) static com.mojang.brigadier.exceptions.CommandSyntaxExceptionbuildException(net.kyori.adventure.text.Component message) static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypebuildExceptionType(net.kyori.adventure.text.Component message)
-
Method Details
-
asMessage
public static com.mojang.brigadier.Message asMessage(net.kyori.adventure.text.Component component) -
asComponent
public static net.kyori.adventure.text.Component asComponent(com.mojang.brigadier.Message message) -
buildExceptionType
public static com.mojang.brigadier.exceptions.SimpleCommandExceptionType buildExceptionType(net.kyori.adventure.text.Component message) -
buildException
public static com.mojang.brigadier.exceptions.CommandSyntaxException buildException(net.kyori.adventure.text.Component message)
-