Package net.kyori.adventure.text
Interface NBTComponentBuilder<C extends NBTComponent<C,B>,B extends NBTComponentBuilder<C,B>>
-
- All Superinterfaces:
Buildable.Builder<C>
,ComponentBuilder<C,B>
,ComponentBuilderApplicable
,ComponentLike
- All Known Subinterfaces:
BlockNBTComponent.Builder
,EntityNBTComponent.Builder
,StorageNBTComponent.Builder
public interface NBTComponentBuilder<C extends NBTComponent<C,B>,B extends NBTComponentBuilder<C,B>> extends ComponentBuilder<C,B>
An NBT component builder.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull B
interpret(boolean interpret)
Sets whether to interpret.@NonNull B
nbtPath(@NonNull String nbtPath)
Sets the NBT path content.-
Methods inherited from interface net.kyori.adventure.text.ComponentBuilder
append, append, append, append, append, append, applicableApply, apply, applyDeep, asComponent, build, clickEvent, color, colorIfAbsent, componentBuilderApply, decorate, decorate, decoration, decoration, decorations, font, hoverEvent, insertion, mapChildren, mapChildrenDeep, mergeStyle, mergeStyle, mergeStyle, resetStyle, style, style
-
-
-
-
Method Detail
-
nbtPath
@Contract("_ -> this") @NonNull B nbtPath(@NonNull String nbtPath)
Sets the NBT path content.- Parameters:
nbtPath
- the NBT path- Returns:
- this builder
- Since:
- 4.0.0
-
interpret
@Contract("_ -> this") @NonNull B interpret(boolean interpret)
Sets whether to interpret.- Parameters:
interpret
- if we should be interpreting- Returns:
- this builder
- Since:
- 4.0.0
-
-