Class CommandUtil

java.lang.Object
dev.booky.cloudcore.commands.CommandUtil

public final class CommandUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.kyori.adventure.text.Component
    asComponent(com.mojang.brigadier.Message message)
     
    static com.mojang.brigadier.Message
    asMessage(net.kyori.adventure.text.Component component)
     
    static com.mojang.brigadier.exceptions.CommandSyntaxException
    buildException(net.kyori.adventure.text.Component message)
     
    static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
    buildExceptionType(net.kyori.adventure.text.Component message)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)