Package net.minecraft.text
Class SelectorTextContent
java.lang.Object
net.minecraft.text.SelectorTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name official ut
intermediary net/minecraft/class_2579
named net/minecraft/text/SelectorTextContent
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Logger
private final String
private final @Nullable EntitySelector
Fields inherited from interface net.minecraft.text.TextContent
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable EntitySelector
int
hashCode()
parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) Parses this content into a basic mutable text without custom style or siblings.private static @Nullable EntitySelector
readSelector
(String pattern) toString()
<T> Optional<T>
visit
(StringVisitable.StyledVisitor<T> visitor, Style style) Visits this content.<T> Optional<T>
visit
(StringVisitable.Visitor<T> visitor) Visits this content.
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Lut;c:Lorg/slf4j/Logger;
intermediary field_11791
Lnet/minecraft/class_2579;field_11791:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/text/SelectorTextContent;LOGGER:Lorg/slf4j/Logger;
-
pattern
- Mappings:
Namespace Name Mixin selector official d
Lut;d:Ljava/lang/String;
intermediary field_11789
Lnet/minecraft/class_2579;field_11789:Ljava/lang/String;
named pattern
Lnet/minecraft/text/SelectorTextContent;pattern:Ljava/lang/String;
-
selector
- Mappings:
Namespace Name Mixin selector official e
Lut;e:Lgc;
intermediary field_11790
Lnet/minecraft/class_2579;field_11790:Lnet/minecraft/class_2300;
named selector
Lnet/minecraft/text/SelectorTextContent;selector:Lnet/minecraft/command/EntitySelector;
-
separator
- Mappings:
Namespace Name Mixin selector official b
Lut;b:Ljava/util/Optional;
intermediary field_33540
Lnet/minecraft/class_2579;field_33540:Ljava/util/Optional;
named separator
Lnet/minecraft/text/SelectorTextContent;separator:Ljava/util/Optional;
-
-
Constructor Details
-
SelectorTextContent
- Mappings:
Namespace Name Mixin selector official <init>
Lut;<init>(Ljava/lang/String;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_2579;<init>(Ljava/lang/String;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/text/SelectorTextContent;<init>(Ljava/lang/String;Ljava/util/Optional;)V
-
-
Method Details
-
readSelector
- Mappings:
Namespace Name Mixin selector official a
Lut;a(Ljava/lang/String;)Lgc;
intermediary method_43486
Lnet/minecraft/class_2579;method_43486(Ljava/lang/String;)Lnet/minecraft/class_2300;
named readSelector
Lnet/minecraft/text/SelectorTextContent;readSelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;
-
getPattern
- Mappings:
Namespace Name Mixin selector official a
Lut;a()Ljava/lang/String;
intermediary method_10932
Lnet/minecraft/class_2579;method_10932()Ljava/lang/String;
named getPattern
Lnet/minecraft/text/SelectorTextContent;getPattern()Ljava/lang/String;
-
getSelector
- Mappings:
Namespace Name Mixin selector official b
Lut;b()Lgc;
intermediary method_36138
Lnet/minecraft/class_2579;method_36138()Lnet/minecraft/class_2300;
named getSelector
Lnet/minecraft/text/SelectorTextContent;getSelector()Lnet/minecraft/command/EntitySelector;
-
getSeparator
- Mappings:
Namespace Name Mixin selector official c
Lut;c()Ljava/util/Optional;
intermediary method_36339
Lnet/minecraft/class_2579;method_36339()Ljava/util/Optional;
named getSeparator
Lnet/minecraft/text/SelectorTextContent;getSeparator()Ljava/util/Optional;
-
parse
public MutableText parse(@Nullable @Nullable ServerCommandSource source, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException Parses this content into a basic mutable text without custom style or siblings. The resulting text may or may not have this content.- Specified by:
parse
in interfaceTextContent
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ltm;a(Ldt;Lbiq;I)Lty;
intermediary method_10890
Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
named parse
Lnet/minecraft/text/TextContent;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()
if it proceeds.- Specified by:
visit
in interfaceTextContent
- Returns:
Optional.empty()
if the visit finished, or a terminating result from thevisitor
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ltm;a(Ltp$b;Luh;)Ljava/util/Optional;
intermediary method_27660
Lnet/minecraft/class_7417;method_27660(Lnet/minecraft/class_5348$class_5246;Lnet/minecraft/class_2583;)Ljava/util/Optional;
named visit
Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)Ljava/util/Optional;
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()
if it proceeds.- Specified by:
visit
in interfaceTextContent
- Returns:
Optional.empty()
if the visit finished, or a terminating result from thevisitor
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ltm;a(Ltp$a;)Ljava/util/Optional;
intermediary method_27659
Lnet/minecraft/class_7417;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;
named visit
Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;
-
equals
-
hashCode
public int hashCode() -
toString
-