Package cn.ycraft.limbo.command.context
Class SenderOnlyContextProvider<SENDER>
java.lang.Object
cn.ycraft.limbo.command.context.SenderOnlyContextProvider<SENDER>
- All Implemented Interfaces:
dev.rollczi.litecommands.context.ContextChainedProvider<CommandSender,
,SENDER> dev.rollczi.litecommands.context.ContextProvider<CommandSender,
SENDER>
public class SenderOnlyContextProvider<SENDER>
extends Object
implements dev.rollczi.litecommands.context.ContextProvider<CommandSender,SENDER>
-
Constructor Summary
ConstructorsConstructorDescriptionSenderOnlyContextProvider
(Class<SENDER> senderClass, Supplier<Object> errorMessage) -
Method Summary
Modifier and TypeMethodDescriptiondev.rollczi.litecommands.context.ContextResult<SENDER>
provide
(dev.rollczi.litecommands.invocation.Invocation<CommandSender> invocation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.rollczi.litecommands.context.ContextProvider
provide
-
Constructor Details
-
SenderOnlyContextProvider
-
-
Method Details
-
provide
public dev.rollczi.litecommands.context.ContextResult<SENDER> provide(dev.rollczi.litecommands.invocation.Invocation<CommandSender> invocation) - Specified by:
provide
in interfacedev.rollczi.litecommands.context.ContextProvider<CommandSender,
SENDER>
-