A - The actor typepublic static class BukkitLampConfig.Builder<A extends BukkitCommandActor>
extends java.lang.Object
BukkitLampConfig| Modifier and Type | Method and Description |
|---|---|
@NotNull BukkitLampConfig.Builder<A> |
actorFactory(@NotNull ActorFactory<A> actorFactory)
Sets the
ActorFactory. |
revxrsal.commands.brigadier.types.ArgumentTypes.Builder<A> |
argumentTypes()
Returns the
ArgumentTypes.Builder of this builder |
@NotNull BukkitLampConfig.Builder<A> |
argumentTypes(@NotNull java.util.function.Consumer<revxrsal.commands.brigadier.types.ArgumentTypes.Builder<A>> consumer)
Applies the given
Consumer on the argumentTypes() instance. |
@NotNull BukkitLampConfig.Builder<A> |
audiences(@NotNull net.kyori.adventure.platform.bukkit.BukkitAudiences audiences)
Sets the audiences for sending components
|
@NotNull BukkitLampConfig<A> |
build()
Returns a new
BukkitLampConfig from this builder |
@NotNull BukkitLampConfig.Builder<A> |
disableAsyncCompletion()
Disables brigadier integration
|
@NotNull BukkitLampConfig.Builder<A> |
disableAsyncCompletion(boolean disabled)
Disables asynchronous tab completion
|
@NotNull BukkitLampConfig.Builder<A> |
disableBrigadier()
Disables brigadier integration
|
@NotNull BukkitLampConfig.Builder<A> |
disableBrigadier(boolean disabled)
Disables brigadier integration
|
@NotNull BukkitLampConfig.Builder<A> |
fallbackPrefix(java.lang.String fallbackPrefix)
Disables brigadier integration
|
@NotNull BukkitLampConfig.Builder<A> |
messageSender(@Nullable revxrsal.commands.process.MessageSender<? super A,net.kyori.adventure.text.ComponentLike> messageSender)
Registers the default message sender used by
BukkitCommandActor.reply(ComponentLike) |
@NotNull public @NotNull BukkitLampConfig.Builder<A> actorFactory(@NotNull @NotNull ActorFactory<A> actorFactory)
ActorFactory. This allows to supply custom implementations for
the BukkitLampConfig interface.actorFactory - The actor factoryActorFactory@NotNull public revxrsal.commands.brigadier.types.ArgumentTypes.Builder<A> argumentTypes()
ArgumentTypes.Builder of this builder@NotNull public @NotNull BukkitLampConfig.Builder<A> argumentTypes(@NotNull @NotNull java.util.function.Consumer<revxrsal.commands.brigadier.types.ArgumentTypes.Builder<A>> consumer)
Consumer on the argumentTypes() instance.
This allows for easy chaining of the builder instancesconsumer - Consumer to apply@NotNull public @NotNull BukkitLampConfig.Builder<A> disableBrigadier()
@NotNull public @NotNull BukkitLampConfig.Builder<A> disableAsyncCompletion()
@NotNull public @NotNull BukkitLampConfig.Builder<A> disableBrigadier(boolean disabled)
@NotNull public @NotNull BukkitLampConfig.Builder<A> disableAsyncCompletion(boolean disabled)
@NotNull public @NotNull BukkitLampConfig.Builder<A> fallbackPrefix(java.lang.String fallbackPrefix)
@NotNull public @NotNull BukkitLampConfig.Builder<A> audiences(@NotNull @NotNull net.kyori.adventure.platform.bukkit.BukkitAudiences audiences)
@NotNull public @NotNull BukkitLampConfig.Builder<A> messageSender(@Nullable @Nullable revxrsal.commands.process.MessageSender<? super A,net.kyori.adventure.text.ComponentLike> messageSender)
BukkitCommandActor.reply(ComponentLike)messageSender - The sender to use@Contract(value="-> new") @NotNull public @NotNull BukkitLampConfig<A> build()
BukkitLampConfig from this builder