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>

public interface StorageNBTComponent
extends NBTComponent<StorageNBTComponent,​StorageNBTComponent.Builder>, ScopedComponent<StorageNBTComponent>
An storage NBT component.
Since:
4.0.0
  • Method Details

    • storage

      @NonNull Key storage()
      Gets the NBT storage's ID.
      Returns:
      the NBT storage
      Since:
      4.0.0
    • storage

      @NonNull StorageNBTComponent storage​(@NonNull Key storage)
      Sets the NBT storage.
      Parameters:
      storage - the identifier of the NBT storage
      Returns:
      a storage NBT component
      Since:
      4.0.0