类 SelectorText
- java.lang.Object
-
- net.minecraft.text.BaseText
-
- net.minecraft.text.SelectorText
-
- 所有已实现的接口:
com.mojang.brigadier.Message,MutableText,ParsableText,StringVisitable,Text
public class SelectorText extends BaseText implements ParsableText
- Mappings:
Namespace Name official owintermediary net/minecraft/class_2579named net/minecraft/text/SelectorText
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
-
从接口继承的嵌套类/接口 net.minecraft.text.Text
Text.Serializer
-
-
字段概要
字段 修饰符和类型 字段 说明 private static LoggerLOGGERprivate Stringpatternprivate @Nullable EntitySelectorselector-
从接口继承的字段 net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
-
构造器概要
构造器 构造器 说明 SelectorText(String pattern)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()@Nullable EntitySelectorgetSelector()MutableTextparse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth)StringtoString()-
从类继承的方法 net.minecraft.text.BaseText
append, asOrderedText, getSiblings, getStyle, hashCode, setStyle, shallowCopy
-
从接口继承的方法 net.minecraft.text.Text
asTruncatedString, getString, method_36136, visit, visit, visitSelf, visitSelf
-
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official dLow;d:Lorg/apache/logging/log4j/Logger;intermediary field_11791Lnet/minecraft/class_2579;field_11791:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/text/SelectorText;LOGGER:Lorg/apache/logging/log4j/Logger;
-
pattern
private final String pattern
- Mappings:
Namespace Name Mixin selector official eLow;e:Ljava/lang/String;intermediary field_11789Lnet/minecraft/class_2579;field_11789:Ljava/lang/String;named patternLnet/minecraft/text/SelectorText;pattern:Ljava/lang/String;
-
selector
@Nullable private final @Nullable EntitySelector selector
- Mappings:
Namespace Name Mixin selector official fLow;f:Lfh;intermediary field_11790Lnet/minecraft/class_2579;field_11790:Lnet/minecraft/class_2300;named selectorLnet/minecraft/text/SelectorText;selector:Lnet/minecraft/command/EntitySelector;
-
-
构造器详细资料
-
SelectorText
public SelectorText(String pattern)
- Mappings:
Namespace Name Mixin selector official <init>Low;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2579;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/text/SelectorText;<init>(Ljava/lang/String;)V
-
-
方法详细资料
-
getPattern
public String getPattern()
- Mappings:
Namespace Name Mixin selector official hLow;h()Ljava/lang/String;intermediary method_10932Lnet/minecraft/class_2579;method_10932()Ljava/lang/String;named getPatternLnet/minecraft/text/SelectorText;getPattern()Ljava/lang/String;
-
getSelector
@Nullable public @Nullable EntitySelector getSelector()
- Mappings:
Namespace Name Mixin selector official iLow;i()Lfh;intermediary method_36138Lnet/minecraft/class_2579;method_36138()Lnet/minecraft/class_2300;named getSelectorLnet/minecraft/text/SelectorText;getSelector()Lnet/minecraft/command/EntitySelector;
-
parse
public MutableText parse(@Nullable @Nullable ServerCommandSource source, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 指定者:
parse在接口中ParsableText- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLop;a(Ldg;Lasl;I)Lot;intermediary method_10890Lnet/minecraft/class_2566;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;named parseLnet/minecraft/text/ParsableText;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
-
asString
public String asString()
Returns the string representation of this text itself, excluding siblings.
-
copy
public SelectorText copy()
从接口复制的说明:TextCopies the text itself, excluding the styles or siblings.
-
equals
public boolean equals(Object obj)
-
toString
public String toString()
-
-