Interface Facet.Message<V,M>
-
- Type Parameters:
V- a viewer typeM- a message type
- All Superinterfaces:
Facet<V>
- All Known Subinterfaces:
Facet.ActionBar<V,M>,Facet.Book<V,M,B>,Facet.Chat<V,M>,Facet.ChatPacket<V,M>,Facet.TabList<V,M>,Facet.Title<V,M,C,T>,Facet.TitlePacket<V,M,C,T>
public static interface Facet.Message<V,M> extends Facet<V>
A facet that converts components between formats.- Since:
- 4.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet
Facet.ActionBar<V,M>, Facet.Book<V,M,B>, Facet.BossBar<V>, Facet.BossBarEntity<V,P>, Facet.BossBarPacket<V>, Facet.Chat<V,M>, Facet.ChatPacket<V,M>, Facet.EntitySound<V,M>, Facet.FakeEntity<V,P>, Facet.Message<V,M>, Facet.Pointers<V>, Facet.Position<V,P>, Facet.Sound<V,P>, Facet.TabList<V,M>, Facet.Title<V,M,C,T>, Facet.TitlePacket<V,M,C,T>
-
-
Field Summary
Fields Modifier and Type Field Description static intPROTOCOL_HEX_COLORstatic intPROTOCOL_JSON
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description McreateMessage(V viewer, @NotNull net.kyori.adventure.text.Component message)Creates a message.-
Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupported
-
-
-
-
Field Detail
-
PROTOCOL_HEX_COLOR
static final int PROTOCOL_HEX_COLOR
- See Also:
- Constant Field Values
-
PROTOCOL_JSON
static final int PROTOCOL_JSON
- See Also:
- Constant Field Values
-
-
Method Detail
-
createMessage
@Nullable M createMessage(@NotNull V viewer, @NotNull @NotNull net.kyori.adventure.text.Component message)
Creates a message.Messages should not be translated to a viewer's locale, this is done elsewhere.
- Parameters:
viewer- a viewermessage- a message- Returns:
- a message or
null - Since:
- 4.0.0
-
-