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
- Mappings:
Namespace Name official or
intermediary net/minecraft/class_2579
named net/minecraft/text/SelectorText
-
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
- Mappings:
Namespace Name Mixin selector official d
Lor;d:Lorg/apache/logging/log4j/Logger;
intermediary field_11791
Lnet/minecraft/class_2579;field_11791:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/text/SelectorText;LOGGER:Lorg/apache/logging/log4j/Logger;
-
pattern
- Mappings:
Namespace Name Mixin selector official e
Lor;e:Ljava/lang/String;
intermediary field_11789
Lnet/minecraft/class_2579;field_11789:Ljava/lang/String;
named pattern
Lnet/minecraft/text/SelectorText;pattern:Ljava/lang/String;
-
selector
- Mappings:
Namespace Name Mixin selector official f
Lor;f:Lfc;
intermediary field_11790
Lnet/minecraft/class_2579;field_11790:Lnet/minecraft/class_2300;
named selector
Lnet/minecraft/text/SelectorText;selector:Lnet/minecraft/command/EntitySelector;
-
-
Constructor Details
-
SelectorText
- Mappings:
Namespace Name Mixin selector official <init>
Lor;<init>(Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_2579;<init>(Ljava/lang/String;)V
named <init>
Lnet/minecraft/text/SelectorText;<init>(Ljava/lang/String;)V
-
-
Method Details
-
getPattern
- Mappings:
Namespace Name Mixin selector official h
Lor;h()Ljava/lang/String;
intermediary method_10932
Lnet/minecraft/class_2579;method_10932()Ljava/lang/String;
named getPattern
Lnet/minecraft/text/SelectorText;getPattern()Ljava/lang/String;
-
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
- Mappings:
Namespace Name Mixin selector official a
Lok;a(Ldb;Laqv;I)Loo;
intermediary method_10890
Lnet/minecraft/class_2566;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
named parse
Lnet/minecraft/text/ParsableText;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
-
asString
Returns the string representation of this text itself, excluding siblings.- Specified by:
asString
in interfaceText
- Overrides:
asString
in classBaseText
- Mappings:
Namespace Name Mixin selector official a
Loi;a()Ljava/lang/String;
intermediary method_10851
Lnet/minecraft/class_2561;method_10851()Ljava/lang/String;
named asString
Lnet/minecraft/text/Text;asString()Ljava/lang/String;
-
copy
Description copied from interface:Text
Copies the text itself, excluding the styles or siblings.- Specified by:
copy
in interfaceText
- Specified by:
copy
in classBaseText
- Mappings:
Namespace Name Mixin selector official j
Lor;j()Lor;
intermediary method_10931
Lnet/minecraft/class_2579;method_10931()Lnet/minecraft/class_2579;
named copy
Lnet/minecraft/text/SelectorText;copy()Lnet/minecraft/text/SelectorText;
-
equals
-
toString
-