Package net.kyori.adventure.text
Interface StorageNBTComponent
- 
- All Superinterfaces:
- Buildable<StorageNBTComponent,StorageNBTComponent.Builder>,- BuildableComponent<StorageNBTComponent,StorageNBTComponent.Builder>,- Component,- ComponentBuilderApplicable,- ComponentLike,- net.kyori.examination.Examinable,- HoverEventSource<Component>,- NBTComponent<StorageNBTComponent,StorageNBTComponent.Builder>,- ScopedComponent<StorageNBTComponent>,- StyleGetter,- StyleSetter<Component>
 
 public interface StorageNBTComponent extends NBTComponent<StorageNBTComponent,StorageNBTComponent.Builder>, ScopedComponent<StorageNBTComponent> Given aKey, this component reads the NBT of the associated command storage and displays that information.This component consists of: - storage
- a key that represents the resource location of a command storage (eg. my_plugin:actions.punches_entity)
- everything in
- NBTComponent
 - Since:
- 4.0.0
- See Also:
- NBTComponent
- Since Minecraft:
- 1.15
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceStorageNBTComponent.BuilderA command storage NBT component builder.
 - 
Field Summary- 
Fields inherited from interface net.kyori.adventure.text.ComponentEQUALS, EQUALS_IDENTITY, IS_NOT_EMPTY
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty>examinableProperties()@NotNull Keystorage()Gets the NBT storage's ID.@NotNull StorageNBTComponentstorage(@NotNull Key storage)Sets the NBT storage.- 
Methods inherited from interface net.kyori.adventure.text.BuildableComponenttoBuilder
 - 
Methods inherited from interface net.kyori.adventure.text.ComponentapplyFallbackStyle, applyFallbackStyle, asComponent, asHoverEvent, children, clickEvent, color, compact, componentBuilderApply, contains, contains, decoration, decorations, decorations, detectCycle, font, font, hasDecoration, hasStyling, hoverEvent, insertion, iterable, iterable, iterator, iterator, replaceFirstText, replaceFirstText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, spliterator, spliterator, style, style
 - 
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSourceasHoverEvent
 - 
Methods inherited from interface net.kyori.adventure.text.NBTComponentinterpret, interpret, nbtPath, nbtPath, separator, separator
 - 
Methods inherited from interface net.kyori.adventure.text.ScopedComponentappend, append, append, children, clickEvent, color, colorIfAbsent, decorate, decoration, decoration, hoverEvent, insertion, mergeStyle, mergeStyle, mergeStyle, style, style, style
 - 
Methods inherited from interface net.kyori.adventure.text.format.StyleSetterdecorate, decorations
 
- 
 
- 
- 
- 
Method Detail- 
storage@NotNull @NotNull Key storage() Gets the NBT storage's ID.- Returns:
- the NBT storage
- Since:
- 4.0.0
 
 - 
storage@Contract(pure=true) @NotNull @NotNull StorageNBTComponent storage(@NotNull @NotNull Key storage) Sets the NBT storage.- Parameters:
- storage- the identifier of the NBT storage
- Returns:
- a storage NBT component
- Since:
- 4.0.0
 
 - 
examinableProperties@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties() - Specified by:
- examinablePropertiesin interface- Component
- Specified by:
- examinablePropertiesin interface- net.kyori.examination.Examinable
- Specified by:
- examinablePropertiesin interface- NBTComponent<StorageNBTComponent,StorageNBTComponent.Builder>
 
 
- 
 
-