Interface ImmutableMinecraftHelp.BuildFinal<C>
- All Known Implementing Classes:
ImmutableMinecraftHelp.Builder
- Enclosing class:
ImmutableMinecraftHelp<C>
@Generated(from="MinecraftHelp",
generator="Immutables")
public static interface ImmutableMinecraftHelp.BuildFinal<C>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableMinecraftHelp.colors(@NonNull MinecraftHelp.HelpColors colors) Initializes the value for thecolorsattribute.commandFilter(@NonNull CommandPredicate<C> commandFilter) Initializes the value for thecommandFilterattribute.descriptionDecorator(@NonNull MinecraftHelp.DescriptionDecorator<C> descriptionDecorator) Initializes the value for thedescriptionDecoratorattribute.headerFooterLength(@org.checkerframework.checker.index.qual.NonNegative int headerFooterLength) Initializes the value for theheaderFooterLengthattribute.maxResultsPerPage(@org.checkerframework.checker.index.qual.NonNegative int maxResultsPerPage) Initializes the value for themaxResultsPerPageattribute.messageProvider(@NonNull MinecraftHelp.MessageProvider<C> messageProvider) Initializes the value for themessageProviderattribute.Put one entry to themessagesmap.Put one entry to themessagesmap.Put all mappings from the specified map as entries tomessagesmap.
-
Method Details
-
commandFilter
Initializes the value for thecommandFilterattribute.If not set, this attribute will have a default value as returned by the initializer of
commandFilter.- Parameters:
commandFilter- The value for commandFilter- Returns:
thisbuilder for use in a chained invocation
-
descriptionDecorator
ImmutableMinecraftHelp.BuildFinal<C> descriptionDecorator(@NonNull MinecraftHelp.DescriptionDecorator<C> descriptionDecorator) Initializes the value for thedescriptionDecoratorattribute.If not set, this attribute will have a default value as returned by the initializer of
descriptionDecorator.- Parameters:
descriptionDecorator- The value for descriptionDecorator- Returns:
thisbuilder for use in a chained invocation
-
messages
Put one entry to themessagesmap.- Parameters:
key- The key in the messages mapvalue- The associated value in the messages map- Returns:
thisbuilder for use in a chained invocation
-
messages
Put one entry to themessagesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
messages
Put all mappings from the specified map as entries tomessagesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the messages map- Returns:
thisbuilder for use in a chained invocation
-
messageProvider
ImmutableMinecraftHelp.BuildFinal<C> messageProvider(@NonNull MinecraftHelp.MessageProvider<C> messageProvider) Initializes the value for themessageProviderattribute.If not set, this attribute will have a default value as returned by the initializer of
messageProvider.- Parameters:
messageProvider- The value for messageProvider- Returns:
thisbuilder for use in a chained invocation
-
colors
Initializes the value for thecolorsattribute.If not set, this attribute will have a default value as returned by the initializer of
colors.- Parameters:
colors- The value for colors- Returns:
thisbuilder for use in a chained invocation
-
maxResultsPerPage
ImmutableMinecraftHelp.BuildFinal<C> maxResultsPerPage(@org.checkerframework.checker.index.qual.NonNegative int maxResultsPerPage) Initializes the value for themaxResultsPerPageattribute.If not set, this attribute will have a default value as returned by the initializer of
maxResultsPerPage.- Parameters:
maxResultsPerPage- The value for maxResultsPerPage- Returns:
thisbuilder for use in a chained invocation
-
build
ImmutableMinecraftHelp<C> build()Builds a newImmutableMinecraftHelp.- Returns:
- An immutable instance of MinecraftHelp
- Throws:
IllegalStateException- if any required attributes are missing
-