Class NbtContents
java.lang.Object
net.minecraft.network.chat.contents.NbtContents
- All Implemented Interfaces:
- ComponentContents
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final NbtPathArgument.NbtPathprivate final DataSourceprivate final booleanprivate static final org.slf4j.Loggerprivate final StringFields inherited from interface net.minecraft.network.chat.ComponentContentsEMPTY
- 
Constructor SummaryConstructorsModifierConstructorDescriptionNbtContents(String p_237395_, boolean p_237396_, Optional<Component> p_237397_, DataSource p_237398_) privateNbtContents(String p_237389_, NbtPathArgument.NbtPath p_237390_, boolean p_237391_, Optional<Component> p_237392_, DataSource p_237393_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static NbtPathArgument.NbtPathcompileNbtPath(String p_237410_) booleaninthashCode()booleanresolve(CommandSourceStack p_237401_, Entity p_237402_, int p_237403_) toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.chat.ComponentContentsvisit, visit
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
interpretingprivate final boolean interpreting
- 
separator
- 
nbtPathPattern
- 
dataSource
- 
compiledNbtPath
 
- 
- 
Constructor Details- 
NbtContentspublic NbtContents(String p_237395_, boolean p_237396_, Optional<Component> p_237397_, DataSource p_237398_) 
- 
NbtContentsprivate NbtContents(String p_237389_, @Nullable NbtPathArgument.NbtPath p_237390_, boolean p_237391_, Optional<Component> p_237392_, DataSource p_237393_) 
 
- 
- 
Method Details- 
compileNbtPath
- 
getNbtPath
- 
isInterpretingpublic boolean isInterpreting()
- 
getSeparator
- 
getDataSource
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
resolvepublic MutableComponent resolve(@Nullable CommandSourceStack p_237401_, @Nullable Entity p_237402_, int p_237403_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- resolvein interface- ComponentContents
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
 
-