Package studio.mevera.imperat.brigadier
Class BukkitArgumentType<T>
java.lang.Object
studio.mevera.imperat.util.TypeCapturer
studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,T>
studio.mevera.imperat.brigadier.BukkitArgumentType<T>
- All Implemented Interfaces:
studio.mevera.imperat.util.priority.Prioritizable
public class BukkitArgumentType<T>
extends studio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,T>
-
Field Summary
Fields inherited from class studio.mevera.imperat.command.arguments.type.ArgumentType
suggestions, type -
Constructor Summary
ConstructorsConstructorDescriptionBukkitArgumentType(Class<T> type, @NotNull MinecraftArgumentType minecraftArgumentType) BukkitArgumentType(Class<T> type, @NotNull MinecraftArgumentType minecraftArgumentType, com.mojang.brigadier.arguments.ArgumentType<T> argumentType) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.brigadier.arguments.ArgumentType<T>booleanparse(@NotNull studio.mevera.imperat.context.CommandContext<BukkitCommandSource> context, @NonNull studio.mevera.imperat.command.arguments.Argument<BukkitCommandSource> argument, @NotNull String input) parse(@NotNull studio.mevera.imperat.context.ExecutionContext<BukkitCommandSource> context, @NotNull studio.mevera.imperat.context.internal.Cursor<BukkitCommandSource> cursor) Methods inherited from class studio.mevera.imperat.command.arguments.type.ArgumentType
addStaticSuggestions, equalsExactly, getDefaultValueProvider, getNumberOfParametersToConsume, getPriority, getSuggestionProvider, isGreedy, isRelatedToType, type, wrappedTypeMethods inherited from class studio.mevera.imperat.util.TypeCapturer
extractType, extractType
-
Constructor Details
-
BukkitArgumentType
public BukkitArgumentType(Class<T> type, @NotNull @NotNull MinecraftArgumentType minecraftArgumentType) -
BukkitArgumentType
public BukkitArgumentType(Class<T> type, @NotNull @NotNull MinecraftArgumentType minecraftArgumentType, com.mojang.brigadier.arguments.ArgumentType<T> argumentType)
-
-
Method Details
-
parse
public T parse(@NotNull @NotNull studio.mevera.imperat.context.CommandContext<BukkitCommandSource> context, @NonNull studio.mevera.imperat.command.arguments.Argument<BukkitCommandSource> argument, @NotNull @NotNull String input) throws studio.mevera.imperat.exception.CommandException - Specified by:
parsein classstudio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,T> - Throws:
studio.mevera.imperat.exception.CommandException
-
parse
public T parse(@NotNull @NotNull studio.mevera.imperat.context.ExecutionContext<BukkitCommandSource> context, @NotNull @NotNull studio.mevera.imperat.context.internal.Cursor<BukkitCommandSource> cursor) throws studio.mevera.imperat.exception.CommandException - Overrides:
parsein classstudio.mevera.imperat.command.arguments.type.ArgumentType<BukkitCommandSource,T> - Throws:
studio.mevera.imperat.exception.CommandException
-
getMinecraftArgumentType
-
getArgType
-
isSupported
public boolean isSupported()
-