Uses of Enum Class
dev.ua.theroer.magicutils.commands.AllowedSender
Packages that use AllowedSender
-
Uses of AllowedSender in dev.ua.theroer.magicutils.commands
Subclasses with type arguments of type AllowedSender in dev.ua.theroer.magicutils.commandsMethods in dev.ua.theroer.magicutils.commands that return AllowedSenderModifier and TypeMethodDescriptionCommandArgument.getAllowedSenders()Allowed sender kinds for this parameter.default AllowedSenderCommandPlatform.inferSenderFromType(Class<?> type) Infers the expected sender kind from a parameter type.static AllowedSenderReturns the enum constant of this class with the specified name.static AllowedSender[]AllowedSender.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in dev.ua.theroer.magicutils.commands with parameters of type AllowedSenderModifier and TypeMethodDescriptiondefault StringCommandPlatform.buildSenderError(Class<?> targetType, AllowedSender[] allowed) Builds a human-readable error message when the sender doesn't match.default StringCommandPlatform.describeSender(AllowedSender sender) Returns a human-readable description of the given sender kind.default booleanCommandPlatform.isAllowedSender(AllowedSender[] allowed, AllowedSender calleeKind) Checks if the caller's sender kind is in the allowed list.CommandArgument.Builder.sender(AllowedSender[] allowed) Mark this parameter as the executing sender and restrict allowed sender types.