T - the type@FunctionalInterface
public interface SenderProvider<T>
Sender into a specific type.| Modifier and Type | Method and Description |
|---|---|
default @Nullable java.lang.String |
friendlyName(boolean plural)
Provides a friendly name for this sender type, used in error messages.
|
T |
provide(@NotNull Context context,
@NotNull Sender<?> sender)
Converts the given
Sender into the specific type. |
@Nullable T provide(@NotNull @NotNull Context context, @NotNull @NotNull Sender<?> sender) throws BladeParseError
Sender into the specific type.context - the command contextsender - the senderBladeParseError - if an error occurs during conversion (use BladeParseError.fatal(String) or BladeParseError.recoverable(String).)@Nullable default @Nullable java.lang.String friendlyName(boolean plural)
plural - whether the name should be plural