A - The actor type@FunctionalInterface
public interface ActorFactory<A extends VelocityCommandActor>
VelocityCommandActor that wrap instances
of CommandSource.| Modifier and Type | Method and Description |
|---|---|
A |
create(@NotNull com.velocitypowered.api.command.CommandSource sender,
@NotNull revxrsal.commands.Lamp<A> lamp)
Creates the actor from the given
CommandSource |
static @NotNull ActorFactory<VelocityCommandActor> |
defaultFactory()
Returns the default
ActorFactory that returns a simple VelocityCommandActor
implementation |
static @NotNull ActorFactory<VelocityCommandActor> |
defaultFactory(@NotNull revxrsal.commands.process.MessageSender<VelocityCommandActor,net.kyori.adventure.text.ComponentLike> messageSender,
@NotNull revxrsal.commands.process.MessageSender<VelocityCommandActor,net.kyori.adventure.text.ComponentLike> errorSender)
Returns the default
ActorFactory that returns a simple VelocityCommandActor
implementation, with custom MessageSenders for messages and errors |
@NotNull static @NotNull ActorFactory<VelocityCommandActor> defaultFactory()
ActorFactory that returns a simple VelocityCommandActor
implementationActorFactory.@NotNull static @NotNull ActorFactory<VelocityCommandActor> defaultFactory(@NotNull @NotNull revxrsal.commands.process.MessageSender<VelocityCommandActor,net.kyori.adventure.text.ComponentLike> messageSender, @NotNull @NotNull revxrsal.commands.process.MessageSender<VelocityCommandActor,net.kyori.adventure.text.ComponentLike> errorSender)
ActorFactory that returns a simple VelocityCommandActor
implementation, with custom MessageSenders for messages and errorsActorFactory.