A - The actor typepublic static class VelocityLampConfig.Builder<A extends VelocityCommandActor>
extends java.lang.Object
VelocityLampConfig| Modifier and Type | Method and Description |
|---|---|
@NotNull VelocityLampConfig.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 VelocityLampConfig.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 VelocityLampConfig<A> |
build()
Returns a new
VelocityLampConfig from this builder |
@NotNull public @NotNull VelocityLampConfig.Builder<A> actorFactory(@NotNull @NotNull ActorFactory<A> actorFactory)
ActorFactory. This allows to supply custom implementations for
the VelocityCommandActor interface.actorFactory - The actor factoryActorFactory@NotNull public revxrsal.commands.brigadier.types.ArgumentTypes.Builder<A> argumentTypes()
ArgumentTypes.Builder of this builder@NotNull public @NotNull VelocityLampConfig.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@Contract(value="-> new") @NotNull public @NotNull VelocityLampConfig<A> build()
VelocityLampConfig from this builder