Class MessageArgument.Message

java.lang.Object
net.minecraft.commands.arguments.MessageArgument.Message
Enclosing class:
MessageArgument

public static class MessageArgument.Message extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getText

      public String getText()
    • getParts

      public MessageArgument.Part[] getParts()
    • resolveDecoratedComponent

      CompletableFuture<Component> resolveDecoratedComponent(CommandSourceStack p_232195_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • resolveComponent

      Component resolveComponent(CommandSourceStack p_232197_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • toComponent

      public Component toComponent(CommandSourceStack p_96850_, boolean p_96851_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • parseText

      public static MessageArgument.Message parseText(com.mojang.brigadier.StringReader p_96847_, boolean p_96848_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException