Package org.spongepowered.api.adventure
Interface ChatType.Builder
- All Superinterfaces:
AbstractBuilder<ChatType>
,Builder<ChatType,
,ChatType.Builder> CopyableBuilder<ChatType,
,ChatType.Builder> ResettableBuilder<ChatType,
ChatType.Builder>
- Enclosing interface:
ChatType
public static interface ChatType.Builder
extends Builder<ChatType,ChatType.Builder>, CopyableBuilder<ChatType,ChatType.Builder>
A builder to create
ChatType
s.-
Method Summary
Modifier and TypeMethodDescriptionAdds a content parameter.Adds a sender parameter.Adds a target parameter.Sets the style.translationKey
(String translationKey) Sets the translation key or custom format mask.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
Method Details
-
translationKey
Sets the translation key or custom format mask.- Parameters:
translationKey
- The translation key or format mask- Returns:
- this builder, for chaining
-
style
Sets the style.- Parameters:
style
- The style- Returns:
- this builder, for chaining
-
addSender
ChatType.Builder addSender()Adds a sender parameter.- Returns:
- this builder, for chaining
-
addContent
ChatType.Builder addContent()Adds a content parameter.- Returns:
- this builder, for chaining
-
addTarget
ChatType.Builder addTarget()Adds a target parameter.- Returns:
- this builder, for chaining
-