public interface ComponentBuilders
| Modifier and Type | Method and Description |
|---|---|
static BlockNbtComponent.Builder |
blockNbt()
Creates a block NBT component builder.
|
static EntityNbtComponent.Builder |
entityNbt()
Creates an entity NBT component builder.
|
static KeybindComponent.Builder |
keybind()
Creates a keybind component builder.
|
static KeybindComponent.Builder |
keybind(@NonNull java.lang.String keybind)
Creates a keybind component builder with a keybind.
|
static ScoreComponent.Builder |
score()
Creates a score component builder.
|
static ScoreComponent.Builder |
score(@NonNull java.lang.String name,
@NonNull java.lang.String objective)
Creates a score component builder with a name and objective.
|
static SelectorComponent.Builder |
selector()
Creates a selector component builder.
|
static SelectorComponent.Builder |
selector(@NonNull java.lang.String pattern)
Creates a selector component builder with a pattern.
|
static TextComponent.Builder |
text()
Creates a text component builder.
|
static TextComponent.Builder |
text(char value)
Creates a text component builder with the content of
String.valueOf(char). |
static TextComponent.Builder |
text(double value)
Creates a text component builder with the content of
String.valueOf(double). |
static TextComponent.Builder |
text(float value)
Creates a text component builder with the content of
String.valueOf(float). |
static TextComponent.Builder |
text(int value)
Creates a text component builder with the content of
String.valueOf(int). |
static TextComponent.Builder |
text(long value)
Creates a text component builder with the content of
String.valueOf(long). |
static TextComponent.Builder |
text(@NonNull java.lang.String content)
Creates a text component builder with content.
|
static TextComponent.Builder |
text(@NonNull java.lang.String content,
@Nullable TextColor color)
Creates a text component builder with content, and optional color.
|
static TranslatableComponent.Builder |
translatable()
Creates a translatable component builder.
|
static TranslatableComponent.Builder |
translatable(@NonNull java.lang.String key)
Creates a translatable component builder with a translation key.
|
static BlockNbtComponent.Builder blockNbt()
static EntityNbtComponent.Builder entityNbt()
static KeybindComponent.Builder keybind()
static KeybindComponent.Builder keybind(@NonNull java.lang.String keybind)
keybind - the keybindstatic ScoreComponent.Builder score()
static ScoreComponent.Builder score(@NonNull java.lang.String name, @NonNull java.lang.String objective)
name - the score nameobjective - the score objectivestatic SelectorComponent.Builder selector()
static SelectorComponent.Builder selector(@NonNull java.lang.String pattern)
pattern - the selector patternstatic TextComponent.Builder text()
static TextComponent.Builder text(@NonNull java.lang.String content, @Nullable TextColor color)
content - the plain text contentcolor - the colorstatic TextComponent.Builder text(char value)
String.valueOf(char).value - the char valuestatic TextComponent.Builder text(double value)
String.valueOf(double).value - the double valuestatic TextComponent.Builder text(float value)
String.valueOf(float).value - the float valuestatic TextComponent.Builder text(int value)
String.valueOf(int).value - the int valuestatic TextComponent.Builder text(long value)
String.valueOf(long).value - the long valuestatic TextComponent.Builder text(@NonNull java.lang.String content)
content - the plain text contentstatic TranslatableComponent.Builder translatable()
static TranslatableComponent.Builder translatable(@NonNull java.lang.String key)
key - the translation key