public interface KeybindComponent extends BuildableComponent<KeybindComponent,KeybindComponent.Builder>, ScopedComponent<KeybindComponent>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
KeybindComponent.Builder
A keybind component builder.
|
| Modifier and Type | Method and Description |
|---|---|
static @NonNull KeybindComponent.Builder |
builder()
Creates a keybind component builder.
|
static @NonNull KeybindComponent.Builder |
builder(@NonNull java.lang.String keybind)
Creates a keybind component builder with a keybind.
|
@NonNull java.lang.String |
keybind()
Gets the keybind.
|
@NonNull KeybindComponent |
keybind(@NonNull java.lang.String keybind)
Sets the keybind.
|
static @NonNull KeybindComponent |
make(@NonNull java.util.function.Consumer<? super KeybindComponent.Builder> consumer)
Creates a keybind component by applying configuration from
consumer. |
static @NonNull KeybindComponent |
make(@NonNull java.lang.String keybind,
@NonNull java.util.function.Consumer<? super KeybindComponent.Builder> consumer)
Creates a keybind component by applying configuration from
consumer. |
static @NonNull KeybindComponent |
of(@NonNull java.lang.String keybind)
Creates a keybind component with a keybind.
|
static @NonNull KeybindComponent |
of(@NonNull java.lang.String keybind,
@Nullable TextColor color)
Creates a keybind component with content, and optional color.
|
static @NonNull KeybindComponent |
of(@NonNull java.lang.String keybind,
@Nullable TextColor color,
@NonNull java.util.Set<TextDecoration> decorations)
Creates a keybind component with content, and optional color and decorations.
|
static @NonNull KeybindComponent |
of(@NonNull java.lang.String content,
@Nullable TextColor color,
TextDecoration... decorations)
Creates a keybind component with content, and optional color and decorations.
|
toBuilderappend, append, children, clickEvent, color, decoration, decoration, hoverEvent, insertion, mergeColor, mergeDecorations, mergeEventschildren, clickEvent, color, contains, decoration, decorations, decorations, detectCycle, hasDecoration, hasStyling, hoverEvent, insertion, style, stylestatic @NonNull KeybindComponent.Builder builder()
static @NonNull KeybindComponent.Builder builder(@NonNull java.lang.String keybind)
keybind - the keybindstatic @NonNull KeybindComponent of(@NonNull java.lang.String keybind)
keybind - the keybindstatic @NonNull KeybindComponent of(@NonNull java.lang.String keybind, @Nullable TextColor color)
keybind - the keybindcolor - the colorstatic @NonNull KeybindComponent of(@NonNull java.lang.String content, @Nullable TextColor color, TextDecoration... decorations)
content - the plain text contentcolor - the colordecorations - the decorationsstatic @NonNull KeybindComponent of(@NonNull java.lang.String keybind, @Nullable TextColor color, @NonNull java.util.Set<TextDecoration> decorations)
keybind - the keybindcolor - the colordecorations - the decorationsstatic @NonNull KeybindComponent make(@NonNull java.util.function.Consumer<? super KeybindComponent.Builder> consumer)
consumer.consumer - the builder configuratorstatic @NonNull KeybindComponent make(@NonNull java.lang.String keybind, @NonNull java.util.function.Consumer<? super KeybindComponent.Builder> consumer)
consumer.keybind - the keybindconsumer - the builder configurator@NonNull java.lang.String keybind()
@NonNull KeybindComponent keybind(@NonNull java.lang.String keybind)
keybind - the keybind