Package org.spongepowered.api.adventure
Interface ChatTypeTemplate.Builder
- All Superinterfaces:
AbstractBuilder<ChatTypeTemplate>
,Builder<ChatTypeTemplate,
,ChatTypeTemplate.Builder> CopyableBuilder<ChatTypeTemplate,
,ChatTypeTemplate.Builder> DataPackEntryBuilder<ChatType,
,ChatTypeTemplate, ChatTypeTemplate.Builder> ResettableBuilder<ChatTypeTemplate,
,ChatTypeTemplate.Builder> ResourceKeyedBuilder<ChatTypeTemplate,
ChatTypeTemplate.Builder>
- Enclosing interface:
ChatTypeTemplate
public static interface ChatTypeTemplate.Builder
extends DataPackEntryBuilder<ChatType,ChatTypeTemplate,ChatTypeTemplate.Builder>
-
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
Methods inherited from interface org.spongepowered.api.util.DataPackEntryBuilder
fromDataPack, fromValue, pack
Methods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
key
-
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
ChatTypeTemplate.Builder addSender()Adds a sender parameter.- Returns:
- this builder, for chaining
-
addContent
ChatTypeTemplate.Builder addContent()Adds a content parameter.- Returns:
- this builder, for chaining
-
addTarget
ChatTypeTemplate.Builder addTarget()Adds a target parameter.- Returns:
- this builder, for chaining
-