Package net.minecraft.command.arguments
Class MessageArgument.Message
- java.lang.Object
-
- net.minecraft.command.arguments.MessageArgument.Message
-
- Enclosing class:
- MessageArgument
public static class MessageArgument.Message extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private MessageArgument.Part[]
parts
private java.lang.String
text
-
Constructor Summary
Constructors Constructor Description Message(java.lang.String p_i48021_1_, MessageArgument.Part[] p_i48021_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageArgument.Message
parseText(com.mojang.brigadier.StringReader p_197113_0_, boolean p_197113_1_)
ITextComponent
toComponent(CommandSource p_201312_1_, boolean p_201312_2_)
-
-
-
Field Detail
-
text
private final java.lang.String text
-
parts
private final MessageArgument.Part[] parts
-
-
Constructor Detail
-
Message
public Message(java.lang.String p_i48021_1_, MessageArgument.Part[] p_i48021_2_)
-
-
Method Detail
-
toComponent
public ITextComponent toComponent(CommandSource p_201312_1_, boolean p_201312_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parseText
public static MessageArgument.Message parseText(com.mojang.brigadier.StringReader p_197113_0_, boolean p_197113_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-