Package net.minecraft.text
Class NbtText.EntityNbtText
java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.NbtText
net.minecraft.text.NbtText.EntityNbtText
- All Implemented Interfaces:
com.mojang.brigadier.Message
,MutableText
,ParsableText
,StringVisitable
,Text
- Enclosing class:
- NbtText
public static class NbtText.EntityNbtText extends NbtText
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.text.NbtText
NbtText.BlockNbtText, NbtText.EntityNbtText, NbtText.StorageNbtText
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 String
rawSelector
private EntitySelector
selector
Fields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
Constructor Summary
Constructors Modifier Constructor Description EntityNbtText(String rawPath, boolean interpret, String rawSelector)
private
EntityNbtText(String rawPath, NbtPathArgumentType.NbtPath path, boolean interpret, String rawSelector, EntitySelector selector)
-
Method Summary
Modifier and Type Method Description NbtText.EntityNbtText
copy()
Copies the text itself, excluding the styles or siblings.boolean
equals(Object obj)
String
getSelector()
private static EntitySelector
parseSelector(String rawSelector)
protected Stream<CompoundTag>
toNbt(ServerCommandSource source)
String
toString()
Methods inherited from class net.minecraft.text.NbtText
getPath, parse, shouldInterpret
Methods inherited from class net.minecraft.text.BaseText
append, asOrderedText, asString, getSiblings, getStyle, hashCode, setStyle, shallowCopy
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
rawSelector
-
selector
-
-
Constructor Details
-
EntityNbtText
-
EntityNbtText
private EntityNbtText(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret, String rawSelector, @Nullable EntitySelector selector)
-
-
Method Details
-
parseSelector
-
getSelector
-
copy
Description copied from interface:Text
Copies the text itself, excluding the styles or siblings. -
toNbt
-
equals
-
toString
-