Package net.kyori.adventure.text
Interface NBTComponent<C extends NBTComponent<C,B>,B extends NBTComponentBuilder<C,B>>
- All Superinterfaces:
Buildable<C,B>
,BuildableComponent<C,B>
,Component
,ComponentBuilderApplicable
,ComponentLike
,net.kyori.examination.Examinable
,HoverEventSource<Component>
- All Known Subinterfaces:
BlockNBTComponent
,EntityNBTComponent
,StorageNBTComponent
public interface NBTComponent<C extends NBTComponent<C,B>,B extends NBTComponentBuilder<C,B>> extends BuildableComponent<C,B>
An NBT component.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.util.Buildable
Buildable.Builder<R>
-
Method Summary
Methods inherited from interface net.kyori.adventure.text.Component
append, append, append, asComponent, asHoverEvent, children, children, clickEvent, clickEvent, color, color, colorIfAbsent, componentBuilderApply, contains, decorate, decoration, decoration, decoration, decorations, decorations, detectCycle, hasDecoration, hasStyling, hoverEvent, hoverEvent, insertion, insertion, mergeStyle, mergeStyle, mergeStyle, replaceFirstText, replaceFirstText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, style, style, style, style, style
-
Method Details
-
nbtPath
@NonNull String nbtPath()Gets the NBT path.- Returns:
- the NBT path
- Since:
- 4.0.0
-
nbtPath
Sets the NBT path.- Parameters:
nbtPath
- the NBT path- Returns:
- an NBT component
- Since:
- 4.0.0
-
interpret
boolean interpret()Gets if we should be interpreting.- Returns:
- if we should be interpreting
- Since:
- 4.0.0
-
interpret
Sets if we should be interpreting.- Parameters:
interpret
- if we should be interpreting.- Returns:
- an NBT component
- Since:
- 4.0.0
-