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>

Given a Key, 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:
Since Minecraft:
1.15
  • Method Details

    • 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:
      examinableProperties in interface Component
      Specified by:
      examinableProperties in interface net.kyori.examination.Examinable
      Specified by:
      examinableProperties in interface NBTComponent<StorageNBTComponent,StorageNBTComponent.Builder>