A - The Lamp actor typeS - The Brigadier actor typepublic interface BrigadierConverter<A extends revxrsal.commands.command.CommandActor,S>
BrigadierAdapter.| Modifier and Type | Method and Description |
|---|---|
A |
createActor(S sender,
@NotNull revxrsal.commands.Lamp<A> lamp)
Wraps the given Brigadier sender to a Lamp
CommandActor |
@NotNull com.mojang.brigadier.arguments.ArgumentType<?> |
getArgumentType(@NotNull revxrsal.commands.node.ParameterNode<A,?> parameter)
Returns the argument type that corresponds to the given
ParameterNode. |
@NotNull
@NotNull com.mojang.brigadier.arguments.ArgumentType<?> getArgumentType(@NotNull
@NotNull revxrsal.commands.node.ParameterNode<A,?> parameter)
ParameterNode.
In general, adapters should maintain an instance of ArgumentTypes
and delegate the logic of this function to ArgumentTypes.type(ParameterNode),
which is guaranteed to return the correct results
parameter - The parameter to get for