Package net.minecraft.text
Class SelectorText
java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.SelectorText
- All Implemented Interfaces:
com.mojang.brigadier.Message
,MutableText
,ParsableText
,StringVisitable
,Text
public class SelectorText extends BaseText implements ParsableText
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
Nested classes/interfaces inherited from interface net.minecraft.text.Text
Text.Serializer
-
Field Summary
Fields Modifier and Type Field Description private static Logger
LOGGER
private String
pattern
private EntitySelector
selector
Fields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
Constructor Summary
Constructors Constructor Description SelectorText(String pattern)
-
Method Summary
Modifier and Type Method Description String
asString()
Returns the string representation of this text itself, excluding siblings.SelectorText
copy()
Copies the text itself, excluding the styles or siblings.boolean
equals(Object obj)
String
getPattern()
MutableText
parse(ServerCommandSource source, Entity sender, int depth)
String
toString()
Methods inherited from class net.minecraft.text.BaseText
append, asOrderedText, getSiblings, getStyle, hashCode, setStyle, shallowCopy
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
LOGGER
-
pattern
-
selector
-
-
Constructor Details
-
SelectorText
-
-
Method Details
-
getPattern
-
parse
public MutableText parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfaceParsableText
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
asString
Returns the string representation of this text itself, excluding siblings. -
copy
Description copied from interface:Text
Copies the text itself, excluding the styles or siblings. -
equals
-
toString
-