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 LoggerLOGGERprivate Stringpatternprivate EntitySelectorselectorFields 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 StringasString()Returns the string representation of this text itself, excluding siblings.SelectorTextcopy()Copies the text itself, excluding the styles or siblings.booleanequals(Object obj)StringgetPattern()MutableTextparse(ServerCommandSource source, Entity sender, int depth)StringtoString()Methods inherited from class net.minecraft.text.BaseText
append, asOrderedText, getSiblings, getStyle, hashCode, setStyle, shallowCopyMethods 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:
parsein interfaceParsableText- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
asString
Returns the string representation of this text itself, excluding siblings. -
copy
Description copied from interface:TextCopies the text itself, excluding the styles or siblings. -
equals
-
toString
-