public interface EntityNbtComponent extends NbtComponent<EntityNbtComponent,EntityNbtComponent.Builder>, ScopedComponent<EntityNbtComponent>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EntityNbtComponent.Builder
An entity NBT component builder.
|
| Modifier and Type | Method and Description |
|---|---|
static @NonNull EntityNbtComponent.Builder |
builder()
Creates an entity NBT component builder.
|
static @NonNull EntityNbtComponent |
make(@NonNull java.util.function.Consumer<? super EntityNbtComponent.Builder> consumer)
Creates a entity NBT component by applying configuration from
consumer. |
static @NonNull EntityNbtComponent |
of(@NonNull java.lang.String nbtPath,
@NonNull java.lang.String selector)
Creates a entity NBT component with a position.
|
@NonNull java.lang.String |
selector()
Gets the entity selector.
|
@NonNull EntityNbtComponent |
selector(@NonNull java.lang.String selector)
Sets the entity selector.
|
interpret, interpret, nbtPath, nbtPathtoBuilderappend, append, children, children, clickEvent, clickEvent, color, color, contains, decoration, decoration, decoration, decorations, decorations, detectCycle, hasDecoration, hasStyling, hoverEvent, hoverEvent, insertion, insertion, mergeColor, mergeDecorations, mergeEvents, style, styleappend, append, children, clickEvent, color, decoration, decoration, hoverEvent, insertion, mergeColor, mergeDecorations, mergeEventsstatic @NonNull EntityNbtComponent.Builder builder()
static @NonNull EntityNbtComponent of(@NonNull java.lang.String nbtPath, @NonNull java.lang.String selector)
nbtPath - the nbt pathselector - the selectorstatic @NonNull EntityNbtComponent make(@NonNull java.util.function.Consumer<? super EntityNbtComponent.Builder> consumer)
consumer.consumer - the builder configurator@NonNull java.lang.String selector()
@NonNull EntityNbtComponent selector(@NonNull java.lang.String selector)
selector - the entity selector