Package net.minecraft.util.text
Class NBTTextComponent
- java.lang.Object
-
- net.minecraft.util.text.TextComponent
-
- net.minecraft.util.text.NBTTextComponent
-
- All Implemented Interfaces:
com.mojang.brigadier.Message,IFormattableTextComponent,ITargetedTextComponent,ITextComponent,ITextProperties
- Direct Known Subclasses:
NBTTextComponent.Block,NBTTextComponent.Entity,NBTTextComponent.Storage
public abstract class NBTTextComponent extends TextComponent implements ITargetedTextComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNBTTextComponent.Blockstatic classNBTTextComponent.Entitystatic classNBTTextComponent.Storage-
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextComponent
ITextComponent.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextProperties
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected NBTPathArgument.NBTPathcompiledNbtPathprotected booleaninterpretingprivate static org.apache.logging.log4j.LoggerLOGGERprotected java.lang.StringnbtPathPattern-
Fields inherited from class net.minecraft.util.text.TextComponent
siblings
-
Fields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION
-
-
Constructor Summary
Constructors Modifier Constructor Description NBTTextComponent(java.lang.String p_i50781_1_, boolean p_i50781_2_)protectedNBTTextComponent(java.lang.String p_i50782_1_, NBTPathArgument.NBTPath p_i50782_2_, boolean p_i50782_3_)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private static NBTPathArgument.NBTPathcompileNbtPath(java.lang.String p_218672_0_)protected abstract java.util.stream.Stream<CompoundNBT>getData(CommandSource p_218673_1_)java.lang.StringgetNbtPath()booleanisInterpreting()IFormattableTextComponentresolve(CommandSource p_230535_1_, Entity p_230535_2_, int p_230535_3_)-
Methods inherited from class net.minecraft.util.text.TextComponent
append, copy, equals, getContents, getSiblings, getStyle, getVisualOrderText, hashCode, plainCopy, setStyle, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
interpreting
protected final boolean interpreting
-
nbtPathPattern
protected final java.lang.String nbtPathPattern
-
compiledNbtPath
@Nullable protected final NBTPathArgument.NBTPath compiledNbtPath
-
-
Constructor Detail
-
NBTTextComponent
public NBTTextComponent(java.lang.String p_i50781_1_, boolean p_i50781_2_)
-
NBTTextComponent
protected NBTTextComponent(java.lang.String p_i50782_1_, @Nullable NBTPathArgument.NBTPath p_i50782_2_, boolean p_i50782_3_)
-
-
Method Detail
-
compileNbtPath
@Nullable private static NBTPathArgument.NBTPath compileNbtPath(java.lang.String p_218672_0_)
-
getData
protected abstract java.util.stream.Stream<CompoundNBT> getData(CommandSource p_218673_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNbtPath
public java.lang.String getNbtPath()
-
isInterpreting
public boolean isInterpreting()
-
resolve
public IFormattableTextComponent resolve(@Nullable CommandSource p_230535_1_, @Nullable Entity p_230535_2_, int p_230535_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
resolvein interfaceITargetedTextComponent- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-