@ApiStatus.Internal public enum CommandActorSenderResolver extends java.lang.Enum<CommandActorSenderResolver> implements SenderResolver<CommandActor>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.Object |
getSender(@NotNull java.lang.Class<?> customSenderType,
@NotNull CommandActor actor,
@NotNull ExecutableCommand<CommandActor> command)
Returns the custom sender value from the given context
|
boolean |
isSenderType(@NotNull CommandParameter parameter)
Tests whether is the specified type a custom sender type or not
|
static CommandActorSenderResolver |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommandActorSenderResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandActorSenderResolver INSTANCE
public static CommandActorSenderResolver[] values()
for (CommandActorSenderResolver c : CommandActorSenderResolver.values()) System.out.println(c);
public static CommandActorSenderResolver valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isSenderType(@NotNull
@NotNull CommandParameter parameter)
SenderResolverisSenderType in interface SenderResolver<CommandActor>parameter - Type to test@NotNull
public @NotNull java.lang.Object getSender(@NotNull
@NotNull java.lang.Class<?> customSenderType,
@NotNull
@NotNull CommandActor actor,
@NotNull
@NotNull ExecutableCommand<CommandActor> command)
SenderResolvergetSender in interface SenderResolver<CommandActor>customSenderType - The type of the custom sender. This matches
the command parameter type.actor - The command actorcommand - The command being executed