Package net.minecraft.text
Class NbtText.BlockNbtText
java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.NbtText
net.minecraft.text.NbtText.BlockNbtText
- All Implemented Interfaces:
com.mojang.brigadier.Message,MutableText,ParsableText,StringVisitable,Text
- Enclosing class:
- NbtText
public static class NbtText.BlockNbtText extends NbtText
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.text.NbtText
NbtText.BlockNbtText, NbtText.EntityNbtText, NbtText.StorageNbtTextNested 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 PosArgumentposprivate StringrawPosFields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT -
Constructor Summary
Constructors Modifier Constructor Description BlockNbtText(String rawPath, boolean rawJson, String rawPos)privateBlockNbtText(String rawPath, NbtPathArgumentType.NbtPath path, boolean interpret, String rawPos, PosArgument pos) -
Method Summary
Modifier and Type Method Description NbtText.BlockNbtTextcopy()Copies the text itself, excluding the styles or siblings.booleanequals(Object obj)StringgetPos()private PosArgumentparsePos(String rawPos)protected Stream<CompoundTag>toNbt(ServerCommandSource source)StringtoString()Methods inherited from class net.minecraft.text.NbtText
getPath, parse, shouldInterpretMethods inherited from class net.minecraft.text.BaseText
append, asOrderedText, asString, getSiblings, getStyle, hashCode, setStyle, shallowCopyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
rawPos
-
pos
-
-
Constructor Details
-
BlockNbtText
-
BlockNbtText
private BlockNbtText(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret, String rawPos, @Nullable PosArgument pos)
-
-
Method Details
-
parsePos
-
getPos
-
copy
Description copied from interface:TextCopies the text itself, excluding the styles or siblings. -
toNbt
-
equals
-
toString
-