public abstract class MinecraftTextComponent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected @Nullable MinecraftTextClickEvent |
clickEvent |
protected @Nullable MinecraftTextHoverEvent |
hoverEvent |
protected java.util.List<MinecraftTextComponent> |
siblings |
protected java.util.List<MinecraftTextStyle> |
styles |
| Constructor and Description |
|---|
MinecraftTextComponent() |
| Modifier and Type | Method and Description |
|---|---|
MinecraftTextComponent |
append(@NotNull MinecraftTextComponent text) |
MinecraftTextComponent |
clickEvent(@Nullable MinecraftTextClickEvent clickEvent) |
static MinecraftTextComponent |
empty() |
MinecraftTextComponent |
hoverEvent(@Nullable MinecraftTextHoverEvent hoverEvent) |
static MinecraftLiteralText |
literal(java.lang.String text) |
static MinecraftTranslatableText |
translatable(java.lang.String key,
java.lang.Object... args) |
MinecraftTextComponent |
withStyle(MinecraftTextStyle... styles) |
MinecraftTextComponent |
withStyle(@NotNull MinecraftTextStyle style) |
protected final java.util.List<MinecraftTextStyle> styles
protected final java.util.List<MinecraftTextComponent> siblings
@Nullable protected @Nullable MinecraftTextClickEvent clickEvent
@Nullable protected @Nullable MinecraftTextHoverEvent hoverEvent
public static MinecraftLiteralText literal(java.lang.String text)
public static MinecraftTranslatableText translatable(java.lang.String key, java.lang.Object... args)
public static MinecraftTextComponent empty()
public MinecraftTextComponent append(@NotNull @NotNull MinecraftTextComponent text)
public MinecraftTextComponent withStyle(@NotNull @NotNull MinecraftTextStyle style)
public MinecraftTextComponent withStyle(@NotNull MinecraftTextStyle... styles)
public MinecraftTextComponent clickEvent(@Nullable @Nullable MinecraftTextClickEvent clickEvent)
public MinecraftTextComponent hoverEvent(@Nullable @Nullable MinecraftTextHoverEvent hoverEvent)