Class FluavaLocalizer.Builder
java.lang.Object
io.github.kaktushose.jdac.message.i18n.FluavaLocalizer.Builder
- Enclosing class:
FluavaLocalizer
A builder allowing the customization of
FluavaLocalizer-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newFluavaLocalizerinstance based on the options of this builder.fallbackToString(boolean enable) Whether to useObject.toString()if no fluent function was found to format a placeholder.mentionableFunction(boolean add) Whether to create the defaultIMentionablefunction.
-
Method Details
-
mentionableFunction
Whether to create the defaultIMentionablefunction. SeeFluavaLocalizerJavadocs for more information.- Parameters:
add-trueif the function should be added- Returns:
- this builder
-
fallbackToString
Whether to useObject.toString()if no fluent function was found to format a placeholder.- Parameters:
enable-trueifObject.toString()should be used. Default:true- See Also:
-
build
Builds a newFluavaLocalizerinstance based on the options of this builder.
-