| Package | Description |
|---|---|
| net.md_5.bungee.api.chat | |
| net.md_5.bungee.chat |
| Modifier and Type | Method and Description |
|---|---|
ComponentStyle |
ComponentStyleBuilder.build()
Build the
ComponentStyle using the values set in this builder. |
ComponentStyle |
ComponentStyle.clone() |
ComponentStyle |
BaseComponent.getStyle()
The component's style.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BaseComponent.applyStyle(ComponentStyle style)
Apply the style from the given
ComponentStyle to this component. |
static ComponentStyleBuilder |
ComponentStyle.builder(ComponentStyle other)
Get a new
ComponentStyleBuilder with values initialized to the
style values of the supplied ComponentStyle. |
void |
BaseComponent.setStyle(ComponentStyle style)
Set the
ComponentStyle for this component. |
ComponentBuilder |
ComponentBuilder.style(ComponentStyle style)
Applies the provided
ComponentStyle to the current part. |
| Modifier and Type | Method and Description |
|---|---|
ComponentStyle |
ComponentStyleSerializer.deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
static ComponentStyle |
ComponentSerializer.deserializeStyle(com.google.gson.JsonElement jsonElement)
Deserialize a JSON element as a component style.
|
static ComponentStyle |
ComponentSerializer.deserializeStyle(String json)
Deserialize a JSON-compliant String as a component style.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
ComponentStyleSerializer.serialize(ComponentStyle src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
static com.google.gson.JsonElement |
ComponentSerializer.toJson(ComponentStyle style) |
static String |
ComponentSerializer.toString(ComponentStyle style) |
Copyright © 2012–2024 SpigotMC. All rights reserved.