A - The actor type@FunctionalInterface
public interface ActorFactory<A extends BukkitCommandActor>
BukkitCommandActor that wrap instances
of CommandSender.| Modifier and Type | Method and Description |
|---|---|
A |
create(@NotNull org.bukkit.command.CommandSender sender,
@NotNull revxrsal.commands.Lamp<A> lamp)
Creates the actor from the given
CommandSender |
static <A extends BukkitCommandActor> |
defaultFactory(@NotNull org.bukkit.plugin.java.JavaPlugin plugin,
@NotNull java.util.Optional<net.kyori.adventure.platform.bukkit.BukkitAudiences> audiences,
@Nullable revxrsal.commands.process.MessageSender<? super A,net.kyori.adventure.text.ComponentLike> messageSender)
Returns the default
ActorFactory that returns a
simple BukkitCommandActor implementation |
static @NotNull ActorFactory<BukkitCommandActor> |
defaultFactory(@NotNull org.bukkit.plugin.Plugin plugin,
@NotNull java.util.Optional<net.kyori.adventure.platform.bukkit.BukkitAudiences> audiences)
Returns the default
ActorFactory that returns a
simple BukkitCommandActor implementation |
@NotNull static @NotNull ActorFactory<BukkitCommandActor> defaultFactory(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull java.util.Optional<net.kyori.adventure.platform.bukkit.BukkitAudiences> audiences)
ActorFactory that returns a
simple BukkitCommandActor implementationplugin - The plugin to create foraudiences - The BukkitAudiences instance for
consrtucting Audience objectsActorFactory.static <A extends BukkitCommandActor> java.lang.Object defaultFactory(@NotNull @NotNull org.bukkit.plugin.java.JavaPlugin plugin, @NotNull @NotNull java.util.Optional<net.kyori.adventure.platform.bukkit.BukkitAudiences> audiences, @Nullable @Nullable revxrsal.commands.process.MessageSender<? super A,net.kyori.adventure.text.ComponentLike> messageSender)
ActorFactory that returns a
simple BukkitCommandActor implementationplugin - The plugin to create foraudiences - The BukkitAudiences instance for
consrtucting Audience objectsmessageSender - How components are sent. This can be used
to add custom prefixes to messages, etc.ActorFactory.