public interface StorageNbtComponent extends NbtComponent<StorageNbtComponent,StorageNbtComponent.Builder>, ScopedComponent<StorageNbtComponent>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
StorageNbtComponent.Builder
A command storage NBT component builder.
|
| Modifier and Type | Method and Description |
|---|---|
static @NonNull StorageNbtComponent.Builder |
builder()
Creates an storage NBT component builder.
|
static @NonNull StorageNbtComponent |
make(@NonNull java.util.function.Consumer<? super StorageNbtComponent.Builder> consumer)
Creates a storage NBT component by applying configuration from
consumer. |
static @NonNull StorageNbtComponent |
of(@NonNull java.lang.String nbtPath,
@NonNull Key storage)
Creates a storage NBT component with a path and an storage ID.
|
@NonNull Key |
storage()
Gets the NBT storage's ID.
|
@NonNull StorageNbtComponent |
storage(@NonNull Key storage)
Sets the NBT storage.
|
interpret, interpret, nbtPath, nbtPathtoBuilderappend, append, children, children, clickEvent, clickEvent, color, color, colorIfAbsent, contains, decoration, decoration, decoration, decorations, decorations, detectCycle, hasDecoration, hasStyling, hoverEvent, hoverEvent, insertion, insertion, mergeColor, mergeDecorations, mergeEvents, mergeStyle, mergeStyle, mergeStyle, style, style, style, style, styleappend, append, children, clickEvent, color, colorIfAbsent, decoration, decoration, hoverEvent, insertion, mergeColor, mergeDecorations, mergeEvents, mergeStyle, mergeStyle, mergeStyle, style, style, stylestatic @NonNull StorageNbtComponent.Builder builder()
static @NonNull StorageNbtComponent of(@NonNull java.lang.String nbtPath, @NonNull Key storage)
nbtPath - the nbt pathstorage - the identifier of the storagestatic @NonNull StorageNbtComponent make(@NonNull java.util.function.Consumer<? super StorageNbtComponent.Builder> consumer)
consumer.consumer - the builder configurator@NonNull Key storage()
@NonNull StorageNbtComponent storage(@NonNull Key storage)
storage - the identifier of the NBT storage