类 NbtText
- java.lang.Object
-
- net.minecraft.text.BaseText
-
- net.minecraft.text.NbtText
-
- 所有已实现的接口:
com.mojang.brigadier.Message,MutableText,ParsableText,StringVisitable,Text
public abstract class NbtText extends BaseText implements ParsableText
- Mappings:
Namespace Name official ouintermediary net/minecraft/class_2574named net/minecraft/text/NbtText
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classNbtText.BlockNbtTextstatic classNbtText.EntityNbtTextstatic classNbtText.StorageNbtText-
从接口继承的嵌套类/接口 net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
-
从接口继承的嵌套类/接口 net.minecraft.text.Text
Text.Serializer
-
-
字段概要
字段 修饰符和类型 字段 说明 private static Stringfield_33289protected booleaninterpretprivate static LoggerLOGGERprotected NbtPathArgumentType.NbtPathpathprotected StringrawPath-
从接口继承的字段 net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
-
构造器概要
构造器 限定符 构造器 说明 NbtText(String rawPath, boolean interpret)protectedNbtText(String rawPath, NbtPathArgumentType.NbtPath path, boolean interpret)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 StringgetPath()MutableTextparse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth)private static NbtPathArgumentType.NbtPathparsePath(String rawPath)booleanshouldInterpret()protected abstract Stream<CompoundTag>toNbt(ServerCommandSource source)-
从类继承的方法 net.minecraft.text.BaseText
append, asOrderedText, asString, copy, equals, getSiblings, getStyle, hashCode, setStyle, shallowCopy, toString
-
从接口继承的方法 net.minecraft.text.Text
asTruncatedString, getString, method_36136, visit, visit, visitSelf, visitSelf
-
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official gLou;g:Lorg/apache/logging/log4j/Logger;intermediary field_11777Lnet/minecraft/class_2574;field_11777:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/text/NbtText;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_33289
private static final String field_33289
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official hLou;h:Ljava/lang/String;intermediary field_33289Lnet/minecraft/class_2574;field_33289:Ljava/lang/String;named field_33289Lnet/minecraft/text/NbtText;field_33289:Ljava/lang/String;
-
interpret
protected final boolean interpret
- Mappings:
Namespace Name Mixin selector official dLou;d:Zintermediary field_11778Lnet/minecraft/class_2574;field_11778:Znamed interpretLnet/minecraft/text/NbtText;interpret:Z
-
rawPath
protected final String rawPath
- Mappings:
Namespace Name Mixin selector official eLou;e:Ljava/lang/String;intermediary field_11776Lnet/minecraft/class_2574;field_11776:Ljava/lang/String;named rawPathLnet/minecraft/text/NbtText;rawPath:Ljava/lang/String;
-
path
@Nullable protected final NbtPathArgumentType.NbtPath path
- Mappings:
Namespace Name Mixin selector official fLou;f:Ldw$g;intermediary field_11779Lnet/minecraft/class_2574;field_11779:Lnet/minecraft/class_2203$class_2209;named pathLnet/minecraft/text/NbtText;path:Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
-
-
构造器详细资料
-
NbtText
public NbtText(String rawPath, boolean interpret)
- Mappings:
Namespace Name Mixin selector official <init>Lou;<init>(Ljava/lang/String;Z)Vintermediary <init>Lnet/minecraft/class_2574;<init>(Ljava/lang/String;Z)Vnamed <init>Lnet/minecraft/text/NbtText;<init>(Ljava/lang/String;Z)V
-
NbtText
protected NbtText(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret)
- Mappings:
Namespace Name Mixin selector official <init>Lou;<init>(Ljava/lang/String;Ldw$g;Z)Vintermediary <init>Lnet/minecraft/class_2574;<init>(Ljava/lang/String;Lnet/minecraft/class_2203$class_2209;Z)Vnamed <init>Lnet/minecraft/text/NbtText;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Z)V
-
-
方法详细资料
-
parsePath
@Nullable private static NbtPathArgumentType.NbtPath parsePath(String rawPath)
- Mappings:
Namespace Name Mixin selector official dLou;d(Ljava/lang/String;)Ldw$g;intermediary method_10919Lnet/minecraft/class_2574;method_10919(Ljava/lang/String;)Lnet/minecraft/class_2203$class_2209;named parsePathLnet/minecraft/text/NbtText;parsePath(Ljava/lang/String;)Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
-
toNbt
protected abstract Stream<CompoundTag> toNbt(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLou;a(Ldg;)Ljava/util/stream/Stream;intermediary method_10916Lnet/minecraft/class_2574;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;named toNbtLnet/minecraft/text/NbtText;toNbt(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/stream/Stream;
-
getPath
public String getPath()
- Mappings:
Namespace Name Mixin selector official hLou;h()Ljava/lang/String;intermediary method_10920Lnet/minecraft/class_2574;method_10920()Ljava/lang/String;named getPathLnet/minecraft/text/NbtText;getPath()Ljava/lang/String;
-
shouldInterpret
public boolean shouldInterpret()
- Mappings:
Namespace Name Mixin selector official iLou;i()Zintermediary method_10921Lnet/minecraft/class_2574;method_10921()Znamed shouldInterpretLnet/minecraft/text/NbtText;shouldInterpret()Z
-
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;
-
-