Package net.minecraft.text
Class SelectorTextContent
java.lang.Object
net.minecraft.text.SelectorTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name official wointermediary net/minecraft/class_2579named net/minecraft/text/SelectorTextContent
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.TextContent
TextContent.Type<T extends TextContent> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SelectorTextContent>private static final Loggerprivate final Stringprivate final @Nullable EntitySelectorstatic final TextContent.Type<SelectorTextContent> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetType()inthashCode()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 EntitySelectorreadSelector(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 dLwo;d:Lorg/slf4j/Logger;intermediary field_11791Lnet/minecraft/class_2579;field_11791:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/text/SelectorTextContent;LOGGER:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLwo;a:Lcom/mojang/serialization/MapCodec;intermediary field_46629Lnet/minecraft/class_2579;field_46629:Lcom/mojang/serialization/MapCodec;named CODECLnet/minecraft/text/SelectorTextContent;CODEC:Lcom/mojang/serialization/MapCodec;
-
TYPE
- Mappings:
Namespace Name Mixin selector official bLwo;b:Lvg$a;intermediary field_46630Lnet/minecraft/class_2579;field_46630:Lnet/minecraft/class_7417$class_8823;named TYPELnet/minecraft/text/SelectorTextContent;TYPE:Lnet/minecraft/text/TextContent$Type;
-
pattern
- Mappings:
Namespace Name Mixin selector official eLwo;e:Ljava/lang/String;intermediary field_11789Lnet/minecraft/class_2579;field_11789:Ljava/lang/String;named patternLnet/minecraft/text/SelectorTextContent;pattern:Ljava/lang/String;
-
selector
- Mappings:
Namespace Name Mixin selector official fLwo;f:Lge;intermediary field_11790Lnet/minecraft/class_2579;field_11790:Lnet/minecraft/class_2300;named selectorLnet/minecraft/text/SelectorTextContent;selector:Lnet/minecraft/command/EntitySelector;
-
separator
- Mappings:
Namespace Name Mixin selector official cLwo;c:Ljava/util/Optional;intermediary field_33540Lnet/minecraft/class_2579;field_33540:Ljava/util/Optional;named separatorLnet/minecraft/text/SelectorTextContent;separator:Ljava/util/Optional;
-
-
Constructor Details
-
SelectorTextContent
- Mappings:
Namespace Name Mixin selector official <init>Lwo;<init>(Ljava/lang/String;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_2579;<init>(Ljava/lang/String;Ljava/util/Optional;)Vnamed <init>Lnet/minecraft/text/SelectorTextContent;<init>(Ljava/lang/String;Ljava/util/Optional;)V
-
-
Method Details
-
readSelector
- Mappings:
Namespace Name Mixin selector official aLwo;a(Ljava/lang/String;)Lge;intermediary method_43486Lnet/minecraft/class_2579;method_43486(Ljava/lang/String;)Lnet/minecraft/class_2300;named readSelectorLnet/minecraft/text/SelectorTextContent;readSelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;
-
getType
- Specified by:
getTypein interfaceTextContent- Mappings:
Namespace Name Mixin selector official aLvg;a()Lvg$a;intermediary method_54163Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;named getTypeLnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;
-
getPattern
- Mappings:
Namespace Name Mixin selector official bLwo;b()Ljava/lang/String;intermediary method_10932Lnet/minecraft/class_2579;method_10932()Ljava/lang/String;named getPatternLnet/minecraft/text/SelectorTextContent;getPattern()Ljava/lang/String;
-
getSelector
- Mappings:
Namespace Name Mixin selector official cLwo;c()Lge;intermediary method_36138Lnet/minecraft/class_2579;method_36138()Lnet/minecraft/class_2300;named getSelectorLnet/minecraft/text/SelectorTextContent;getSelector()Lnet/minecraft/command/EntitySelector;
-
getSeparator
- Mappings:
Namespace Name Mixin selector official dLwo;d()Ljava/util/Optional;intermediary method_36339Lnet/minecraft/class_2579;method_36339()Ljava/util/Optional;named getSeparatorLnet/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:
parsein interfaceTextContent- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLvg;a(Lds;Lblv;I)Lvt;intermediary method_10890Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;named parseLnet/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:
visitin interfaceTextContent- Returns:
Optional.empty()if the visit finished, or a terminating result from thevisitor- See Also:
- Mappings:
Namespace Name Mixin selector official aLvg;a(Lvk$b;Lwc;)Ljava/util/Optional;intermediary method_27660Lnet/minecraft/class_7417;method_27660(Lnet/minecraft/class_5348$class_5246;Lnet/minecraft/class_2583;)Ljava/util/Optional;named visitLnet/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:
visitin interfaceTextContent- Returns:
Optional.empty()if the visit finished, or a terminating result from thevisitor- See Also:
- Mappings:
Namespace Name Mixin selector official aLvg;a(Lvk$a;)Ljava/util/Optional;intermediary method_27659Lnet/minecraft/class_7417;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;named visitLnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;
-
equals
-
hashCode
public int hashCode() -
toString
-